Skip to content

Commit

Permalink
Generate CSS variables
Browse files Browse the repository at this point in the history
See twbs#23349
Supersedes twbs#23446
  • Loading branch information
passcod committed Aug 31, 2017
1 parent e1a9f63 commit d923107
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scss/_root.scss
@@ -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;
}
1 change: 1 addition & 0 deletions scss/bootstrap.scss
Expand Up @@ -8,6 +8,7 @@
@import "functions";
@import "variables";
@import "mixins";
@import "root";
@import "print";
@import "reboot";
@import "type";
Expand Down

0 comments on commit d923107

Please sign in to comment.