Skip to content

Instantly share code, notes, and snippets.

Last active Feb 11, 2021
What would you like to do?
Generated by
$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;
.test {
color: #007bff;
background-color: red;
"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