Skip to content

Commit 4fa9419

Browse files
committed
add black and white to the bootstrap color map. also add 2 darkened versions of the secondary color. plus formatting in this file
1 parent ab2f56a commit 4fa9419

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

src/assets/theme/bootstrap-preview.scss

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
// 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.
22

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;
88
$danger: #606060;
9-
$light: #f8f9fa;
9+
$light: #F8F9FA;
1010
$dark: #212529;
11-
$white: #ffffff;
11+
$white: #FFFFFF;
12+
$black: #000000;
1213

1314
// 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';
1718

1819
// 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
1920
$custom-colors: (
20-
"light-2": darken($light, 3%),
21-
"light-3": darken($light, 10%)
21+
'light-2': darken($light, 3%),
22+
'light-3': darken($light, 10%),
23+
'secondary-2': darken($secondary, 3%),
24+
'secondary-3': darken($secondary, 10%),
25+
'black': $black,
26+
'white': $white,
2227
);
2328
$theme-colors: map-merge($theme-colors, $custom-colors);
2429

0 commit comments

Comments
 (0)