Skip to content

Instantly share code, notes, and snippets.

@cpylua
Created November 18, 2020 09:40
Show Gist options
  • Save cpylua/247a2ac8da6adfe2354daceb352dcdea to your computer and use it in GitHub Desktop.
Save cpylua/247a2ac8da6adfe2354daceb352dcdea to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// TODO: define your theme overrides here, and that's all!
$theme-overrides: (
--theme-primary-1: #252b6e,
--theme-primary-2: #3c46b1,
--theme-primary-3: #434fc9,
--theme-primary-4: #515ff0,
--theme-primary-5: #6c78f2,
--theme-primary-6: #7e88f3,
--theme-primary-7: #b0b6f8,
--theme-primary-8: #f2f3fe,
);
@mixin theme-css-vars($vars) {
@each $name, $color in $vars {
#{$name}: to-rgb($color);
}
}
@function to-rgb($color) {
@return red($color), green($color), blue($color);
}
:root {
@include theme-css-vars($theme-overrides);
}
:root {
--theme-primary-1: 37, 43, 110;
--theme-primary-2: 60, 70, 177;
--theme-primary-3: 67, 79, 201;
--theme-primary-4: 81, 95, 240;
--theme-primary-5: 108, 120, 242;
--theme-primary-6: 126, 136, 243;
--theme-primary-7: 176, 182, 248;
--theme-primary-8: 242, 243, 254;
}
{
"sass": {
"compiler": "dart-sass/1.26.11",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment