fix(css): set global theme variable first

Fixes #966
This commit is contained in:
metonym 2022-01-03 09:39:21 -08:00
commit 4bc242ea0d
5 changed files with 30 additions and 25 deletions

View file

@ -1,3 +1,9 @@
// Use the "white" (White) Carbon theme
@import "carbon-components/scss/globals/scss/vendor/@carbon/themes/scss";
$carbon--theme: $carbon--theme--white;
@include carbon--theme();
$feature-flags: (
ui-shell: true,
grid-columns-16: true
@ -11,17 +17,12 @@ $css--reset: true;
$css--default-type: true;
$css--plex: true;
// Use the "white" (White) Carbon theme
@import "carbon-components/scss/globals/scss/vendor/@carbon/themes/scss";
@import "carbon-components/scss/globals/scss/component-tokens";
@import "carbon-components/src/components/tag/tag";
@import "carbon-components/src/components/notification/inline-notification";
@import "carbon-components/src/components/notification/toast-notification";
@import "carbon-components-10.47/src/components/popover/popover";
$carbon--theme: $carbon--theme--white;
@include carbon--theme();
@import "carbon-components/scss/globals/scss/_css--reset";
@import "carbon-components/scss/globals/scss/_css--font-face";
@import "carbon-components/scss/globals/scss/_css--helpers";