Commit 67d7e26e authored by Félix Saparelli's avatar Félix Saparelli Committed by Mark Otto
Browse files

Generate CSS variables for colors, breakpoints, fonts (#23761)

* Generate CSS variables

See #23349
Supersedes #23446

* Ignore _root.scss for linting
parent 3ca4d3f8
6 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!25494web pack,!25326Adjust examples,!23207#22402 : modal: new autofocus & keyboardBtnNav options,!17021v4
Showing with 20 additions and 0 deletions
+20 -0
......@@ -3,6 +3,9 @@ scss_files:
- "scss/**/*.scss"
- "docs/assets/scss/**/*.scss"
exclude:
- "scss/_root.scss"
plugin_directories: ['.scss-linters']
# List of gem names to load custom linters from (make sure they are already
......
:root {
@each $color, $value in $colors {
--#{$color}: $value;
}
@each $color, $value in $theme-colors {
--#{$color}: $value;
}
@each $bp, $value in $grid-breakpoints {
--breakpoint-#{$bp}: $value;
}
--font-family-sans-serif: $font-family-sans-serif;
--font-family-monospace: $font-family-monospace;
}
......@@ -8,6 +8,7 @@
@import "functions";
@import "variables";
@import "mixins";
@import "root";
@import "print";
@import "reboot";
@import "type";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment