Created
December 2, 2019 12:21
-
-
Save a2nt/5b5a53d288dca5c055bab47061e24eaa to your computer and use it in GitHub Desktop.
Integration of material colors into bootstrap 4
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
// Google material colors Ref: https://material.io/design/color/ | |
// npm install material-design-color | |
@import "~material-design-color/material-color.scss"; | |
// Bootstrap Color system adapter | |
$white: $clr-white !default; | |
$gray-100: map-get($clr-grey-list, "100") !default; | |
$gray-200: map-get($clr-grey-list, "200") !default; | |
$gray-300: map-get($clr-grey-list, "300") !default; | |
$gray-400: map-get($clr-grey-list, "400") !default; | |
$gray-500: map-get($clr-grey-list, "500") !default; | |
$gray-600: map-get($clr-grey-list, "600") !default; | |
$gray-700: map-get($clr-grey-list, "700") !default; | |
$gray-800: map-get($clr-grey-list, "800") !default; | |
$gray-900: map-get($clr-grey-list, "900") !default; | |
$black: $clr-black !default; | |
$grays: () !default; | |
// stylelint-disable-next-line scss/dollar-variable-default | |
$grays: map-merge(("100": $gray-100, "200": $gray-200, "300": $gray-300, "400": $gray-400, "500": $gray-500, "600": $gray-600, "700": $gray-700, "800": $gray-800, "900": $gray-900), $grays) !default; | |
$blue: $clr-blue !default; | |
$indigo: $clr-indigo !default; | |
$purple: $clr-purple !default; | |
$pink: $clr-pink !default; | |
$red: $clr-red !default; | |
$orange: $clr-orange !default; | |
$yellow: $clr-yellow !default; | |
$green: $clr-green !default; | |
$teal: $clr-teal !default; | |
$cyan: $clr-cyan !default; | |
$colors: () !default; | |
// stylelint-disable-next-line scss/dollar-variable-default | |
$colors: map-merge(("blue": $blue, "indigo": $indigo, "purple": $purple, "pink": $pink, "red": $red, "orange": $orange, "yellow": $yellow, "green": $green, "teal": $teal, "cyan": $cyan, "white": $white, "gray": $gray-600, "gray-dark": $gray-800), $colors) !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-900 !default; | |
$theme-colors: () !default; | |
// stylelint-disable-next-line scss/dollar-variable-default | |
$theme-colors: map-merge(("primary": $primary, "secondary": $secondary, "success": $success, "info": $info, "warning": $warning, "danger": $danger, "light": $light, "dark": $dark), $theme-colors) !default; | |
// UI color variables | |
//$primary: $dark !default; | |
$bg-alt: $yellow !default; | |
$body-color: $gray-900 !default; | |
$navbar-light-active-color: $blue !default; | |
$navbar-dark-hover-background: $dark !default; | |
$navbar-dark-active-background: $dark !default; | |
$navbar-dark-show-color: $blue !default; | |
$navbar-dark-show-background: $dark !default; | |
$dropdown-border-color: $white !default; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment