|
1 | 1 | // these colors and variables match what is in the webstore's theme.module.scss file. this file enables us to see the preview of what these overrides will look like without actually importing these from here into the webstore project. In order to see a preview in storybook of how components will look with custom colors, these values must be updated.
|
2 | 2 |
|
3 |
| -$primary: #333333; |
4 |
| -$secondary: #CCCCCC; |
5 |
| -$success: #666666; |
6 |
| -$info: #999999; |
7 |
| -$warning: #2a2a2a; |
| 3 | +$primary: #333333; |
| 4 | +$secondary: #CCCCCC; |
| 5 | +$success: #666666; |
| 6 | +$info: #999999; |
| 7 | +$warning: #2A2A2A; |
8 | 8 | $danger: #606060;
|
9 |
| -$light: #f8f9fa; |
| 9 | +$light: #F8F9FA; |
10 | 10 | $dark: #212529;
|
11 |
| -$white: #ffffff; |
| 11 | +$white: #FFFFFF; |
| 12 | +$black: #000000; |
12 | 13 |
|
13 | 14 | // these imports must be AFTER the theme color overrides above in order to properly override bootstrap's colors, but before the theme maps.
|
14 |
| -@import "../../../node_modules/bootstrap/scss/functions"; |
15 |
| -@import "../../../node_modules/bootstrap/scss/variables"; |
16 |
| -@import "../../../node_modules/bootstrap/scss/mixins"; |
| 15 | +@import '../../../node_modules/bootstrap/scss/functions'; |
| 16 | +@import '../../../node_modules/bootstrap/scss/variables'; |
| 17 | +@import '../../../node_modules/bootstrap/scss/mixins'; |
17 | 18 |
|
18 | 19 | // create our own custom colors map, and merge it with bootstrap's theme-colors map to generate utility functions that can be used throughout the map
|
19 | 20 | $custom-colors: (
|
20 |
| - "light-2": darken($light, 3%), |
21 |
| - "light-3": darken($light, 10%) |
| 21 | + 'dark-1': darken($dark, 3%), |
| 22 | + 'dark-2': darken($dark, 5%), |
| 23 | + 'dark-3': darken($dark, 10%), |
| 24 | + 'dark-4': darken($dark, 20%), |
| 25 | + 'dark-5': $dark, |
| 26 | + 'dark-6': lighten($dark, 3%), |
| 27 | + 'dark-7': lighten($dark, 5%), |
| 28 | + 'dark-8': lighten($dark, 10%), |
| 29 | + 'dark-9': lighten($dark, 20%), |
| 30 | + 'light-1': darken($light, 3%), |
| 31 | + 'light-2': darken($light, 5%), |
| 32 | + 'light-3': darken($light, 10%), |
| 33 | + 'light-4': darken($light, 20%), |
| 34 | + 'light-5': $light, |
| 35 | + 'light-6': lighten($light, 3%), |
| 36 | + 'light-7': lighten($light, 5%), |
| 37 | + 'light-8': lighten($light, 10%), |
| 38 | + 'light-9': lighten($light, 20%), |
| 39 | + 'primary-1': darken($primary, 3%), |
| 40 | + 'primary-2': darken($primary, 5%), |
| 41 | + 'primary-3': darken($primary, 10%), |
| 42 | + 'primary-4': darken($primary, 20%), |
| 43 | + 'primary-5': $primary, |
| 44 | + 'primary-6': lighten($primary, 3%), |
| 45 | + 'primary-7': lighten($primary, 5%), |
| 46 | + 'primary-8': lighten($primary, 10%), |
| 47 | + 'primary-9': lighten($primary, 20%), |
| 48 | + 'secondary-1': darken($secondary, 3%), |
| 49 | + 'secondary-2': darken($secondary, 5%), |
| 50 | + 'secondary-3': darken($secondary, 10%), |
| 51 | + 'secondary-4': darken($secondary, 20%), |
| 52 | + 'secondary-5': $secondary, |
| 53 | + 'secondary-6': lighten($secondary, 3%), |
| 54 | + 'secondary-7': lighten($secondary, 5%), |
| 55 | + 'secondary-8': lighten($secondary, 10%), |
| 56 | + 'secondary-9': lighten($secondary, 20%), |
| 57 | + 'black': $black, |
| 58 | + 'white': $white, |
22 | 59 | );
|
23 | 60 | $theme-colors: map-merge($theme-colors, $custom-colors);
|
24 | 61 |
|
|
0 commit comments