Set colours directly as css vars.
This commit is contained in:
parent
5e709f42cd
commit
99abd54150
1 changed files with 111 additions and 106 deletions
|
|
@ -3,11 +3,7 @@ $max-page-width: $max-content-width !default;
|
|||
|
||||
:root {
|
||||
// Convert sass variables to css4 variables.
|
||||
// Use like this: var(--color-brand).
|
||||
@each $name, $color in $colors {
|
||||
--color-#{$name}: #{$color};
|
||||
}
|
||||
|
||||
// Use like this: var(--color-gutters).
|
||||
@each $name, $size in $font-size {
|
||||
--fs-#{$name}: #{$size};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue