-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Colors, themes & more design updates (#261)
* Update demo site to use carbon v10 * Add themes * Fix lint issues * Add padding between slices for pie & donut * Updater innerRadius of donut chart * Show all themes on demo site * Trigger build * Multiply blending mode for line chart lines * Scatter chart fill and point size updates * Fix lint issues * Update main palette * Fix main theme * Add new light themes * Use @carbon/elements, and add a dark theme * Replace with default colors, and add theme selector * feat(Color palettes and design updates):
- Loading branch information
Showing
13 changed files
with
184 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
export const colors = window["isExperimental"] ? | ||
[ | ||
"#418cff", // Blue 60 | ||
"#3dbb61", // Green 40 | ||
"#ee538b", // Magenta 50 | ||
"#0058a1", // Cyan 70 | ||
"#fb4b53", // Red 50 | ||
"#8a3ffc", // Purple 60 | ||
"#00bab6" // Teal 40 | ||
]: | ||
[ | ||
"#00a68f", | ||
"#3b1a40", | ||
"#473793", | ||
"#3c6df0", | ||
"#56D2BB" | ||
]; | ||
import { colorPalettes } from "../../src/index"; | ||
|
||
const urlParams = new URLSearchParams(window.location.search); | ||
|
||
// Grab "theme" param from query string | ||
let themeToUse = colorPalettes.DEFAULT; | ||
if (urlParams.has("theme") && colorPalettes[urlParams.get("theme")]) { | ||
themeToUse = colorPalettes[urlParams.get("theme")]; | ||
} | ||
|
||
export const colors = themeToUse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.