Last active
February 11, 2021 17:02
-
-
Save mdo/89886b1f1917dfd5307df1c315e8ef67 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$white: #fff !default; | |
$gray-100: #f8f9fa !default; | |
$gray-200: #e9ecef !default; | |
$gray-300: #dee2e6 !default; | |
$gray-400: #ced4da !default; | |
$gray-500: #adb5bd !default; | |
$gray-600: #6c757d !default; | |
$gray-700: #495057 !default; | |
$gray-800: #343a40 !default; | |
$gray-900: #212529 !default; | |
$black: #000 !default; | |
$blue: #007bff !default; | |
$indigo: #6610f2 !default; | |
$purple: #6f42c1 !default; | |
$pink: #e83e8c !default; | |
$red: #dc3545 !default; | |
$orange: #fd7e14 !default; | |
$yellow: #ffc107 !default; | |
$green: #28a745 !default; | |
$teal: #20c997 !default; | |
$cyan: #17a2b8 !default; | |
$primary: $blue !default; | |
$secondary: $gray-600 !default; | |
$success: $green !default; | |
$info: $cyan !default; | |
$warning: $yellow !default; | |
$danger: $red !default; | |
$light: $gray-100 !default; | |
$dark: $gray-800 !default; | |
// $theme-colors: () !default; | |
// $theme-colors: map-merge( | |
// ( | |
// "primary": $primary, | |
// "secondary": $secondary, | |
// "success": $success, | |
// "info": $info, | |
// "warning": $warning, | |
// "danger": $danger, | |
// "light": $light, | |
// "dark": $dark | |
// ), | |
// $theme-colors | |
// ); | |
$theme-colors: ( | |
"primary": $primary, | |
"secondary": $secondary, | |
"success": $success, | |
"info": $info, | |
"warning": $warning, | |
"danger": $danger, | |
"light": $light, | |
"dark": $dark | |
) !default; | |
@function theme-color($key: "primary") { | |
@return map-get($theme-colors, $key); | |
} | |
$primary: red; | |
// $theme-colors: map-merge( | |
// ( | |
// "primary": $primary, | |
// ), | |
// $theme-colors | |
// ); | |
.test { | |
color: theme-color("primary"); | |
background-color: $primary; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.test { | |
color: #007bff; | |
background-color: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.26.11", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment