-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This fixes the current `Theme` component. Note that the canonical implementation uses `GlobalTheme` for the same concept. See carbon-design-system#1702. Static CSS files are updated to use @carbon/styles including fonts via CDN. (cherry picked from commit 50f24b8)
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Use all Carbon themes | ||
@use '@carbon/styles/scss/config' with ( | ||
$use-akamai-cdn: true, | ||
$use-flexbox-grid: true, | ||
$prefix: 'bx' | ||
); | ||
@use "@carbon/styles" as styles; | ||
|
||
:root { | ||
@include styles.theme(styles.$white); | ||
} | ||
|
||
[theme='g10'] { | ||
@include styles.theme(styles.$g10); | ||
} | ||
|
||
[theme='g90'] { | ||
@include styles.theme(styles.$g90); | ||
} | ||
|
||
[theme='g100'] { | ||
@include styles.theme(styles.$g100); | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@use '@carbon/styles/scss/config' with ( | ||
$use-akamai-cdn: true, | ||
$use-flexbox-grid: true, | ||
$prefix: 'bx' | ||
); | ||
@use "@carbon/styles" as styles; | ||
|
||
:root { | ||
@include styles.theme(styles.$g10); | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@use '@carbon/styles/scss/config' with ( | ||
$use-akamai-cdn: true, | ||
$use-flexbox-grid: true, | ||
$prefix: 'bx' | ||
); | ||
@use "@carbon/styles" as styles; | ||
|
||
:root { | ||
@include styles.theme(styles.$g100); | ||
} |
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@use '@carbon/styles/scss/config' with ( | ||
$use-akamai-cdn: true, | ||
$use-flexbox-grid: true, | ||
$prefix: 'bx' | ||
); | ||
@use "@carbon/styles" as styles; | ||
|
||
:root { | ||
@include styles.theme(styles.$g90); | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@use '@carbon/styles/scss/config' with ( | ||
$use-akamai-cdn: true, | ||
$use-flexbox-grid: true, | ||
$prefix: 'bx' | ||
); | ||
@use "@carbon/styles" as styles; | ||
|
||
:root { | ||
@include styles.theme(styles.$white); | ||
} |
This file was deleted.