mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Generate CSS variables for colors, breakpoints, fonts (#23761)
* Generate CSS variables See #23349 Supersedes #23446 * Ignore _root.scss for linting
This commit is contained in:
committed by
Mark Otto
parent
3ca4d3f88d
commit
67d7e26e05
@@ -0,0 +1,16 @@
|
||||
: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;
|
||||
}
|
||||
Reference in New Issue
Block a user