Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/ui-stencil/extract-scss-vars.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ function createTempColorsFile() {
.replace(/:/g, ':')

const tempColorsContent = `
@import 'colors';
@use 'colors';

:export {
${primitiveColorsToExport}
@each $key, $value in $palette {
@each $key, $value in colors.$palette {
@each $subkey, $subvalue in $value {
--#{$key}-color-#{$subkey}-light: #{$subvalue};
}
}

@each $key, $value in $paletteDark {
@each $key, $value in colors.$paletteDark {
@each $subkey, $subvalue in $value {
--#{$key}-color-#{$subkey}-dark: #{$subvalue};
}
Expand Down
5 changes: 3 additions & 2 deletions packages/ui-stencil/src/styles/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ TODO: We'll make this task automatic in the future
*/

@use 'sass:color';
@use 'sass:map';

/**
* * PRIMITIVE COLORS
Expand Down Expand Up @@ -168,5 +169,5 @@ $elementColorsDark: (
),
);

$palette: map-merge($semanticColors, $elementColors);
$paletteDark: map-merge($semanticColorsDark, $elementColorsDark);
$palette: map.merge($semanticColors, $elementColors);
$paletteDark: map.merge($semanticColorsDark, $elementColorsDark);