Skip to content

Commit d923107

Browse files
committed
Generate CSS variables
See twbs#23349 Supersedes twbs#23446
1 parent e1a9f63 commit d923107

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

scss/_root.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:root {
2+
@each $color, $value in $colors {
3+
--#{$color}: $value;
4+
}
5+
6+
@each $color, $value in $theme-colors {
7+
--#{$color}: $value;
8+
}
9+
10+
@each $bp, $value in $grid-breakpoints {
11+
--breakpoint-#{$bp}: $value;
12+
}
13+
14+
--font-family-sans-serif: $font-family-sans-serif;
15+
--font-family-monospace: $font-family-monospace;
16+
}

scss/bootstrap.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@import "functions";
99
@import "variables";
1010
@import "mixins";
11+
@import "root";
1112
@import "print";
1213
@import "reboot";
1314
@import "type";

0 commit comments

Comments
 (0)