Skip to content

Commit c9f53aa

Browse files
fix: refactored css and twig, plus color update
1 parent 98273f7 commit c9f53aa

File tree

13 files changed

+155
-197
lines changed

13 files changed

+155
-197
lines changed

src/_data/bolt-brand-colors.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"xdark": "rgb(6, 9, 35)",
44
"dark": "rgb(22, 26, 60)",
55
"base": "rgb(31, 38, 86)",
6-
"light": "rgb(68, 76, 136)",
7-
"xlight": "rgb(199, 205, 255)"
6+
"light": "rgb(84, 93, 166)",
7+
"xlight": "rgb(171, 179, 242)"
88
},
99
"blue": {
1010
"dark": "rgb(0, 83, 128)",

src/_data/bolt-colors.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"xdark": "rgb(6, 9, 35)",
44
"dark": "rgb(22, 26, 60)",
55
"base": "rgb(31, 38, 86)",
6-
"light": "rgb(68, 76, 136)",
7-
"xlight": "rgb(199, 205, 255)"
6+
"light": "rgb(84, 93, 166)",
7+
"xlight": "rgb(171, 179, 242)"
88
},
99
"blue": {
1010
"dark": "rgb(0, 83, 128)",

src/_patterns/01-core/01-settings/settings-colors/src/scss/_settings.colors.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ $bolt-brand-colors: (
1212
xdark: hsl(233, 71%, 8%),
1313
dark: hsl(233, 47%, 16%),
1414
base: hsl(233, 47%, 23%),
15-
light: hsl(233, 33%, 40%),
16-
xlight: hsl(233, 100%, 89%)
15+
light: hsl(233, 33%, 49%),
16+
xlight: hsl(233, 73%, 81%)
1717
),
1818
blue: (
1919
dark: hsl(201, 100%, 25%),

src/_patterns/01-core/01-settings/settings-global/_settings.global.scss

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,39 @@
33
/// @author Mike Mai
44
////
55

6+
@import '@bolt/tools-color-palette';
67

78
/* ------------------------------------ *\
89
Global Settings
910
\* ------------------------------------ */
1011

11-
1212
// Global Min / Max Base Font Size
1313
$bolt-base-font-size--min: 14px;
1414
$bolt-base-font-size--max: 18px;
1515

16-
17-
18-
1916
// Async font loading classes.
2017
$bolt-fonts--subset-loaded-class: 'js-fonts-subset-loaded' !default;
2118
$bolt-fonts--loaded-class: 'js-fonts-loaded' !default;
2219

20+
// Shadows
21+
$bolt-shadow-color: bolt-color(black);
22+
$bolt-shadow--small: 0 1px 0.15rem rgba($bolt-shadow-color, 0.5);
23+
$bolt-shadow--medium: 0 0.15rem 0.3rem rgba($bolt-shadow-color, 0.35);
24+
$bolt-shadow--large: 0 0.35rem 0.6rem rgba($bolt-shadow-color, 0.18);
25+
26+
// Border
27+
$bolt-border-width: 1px;
28+
$bolt-border-style: solid;
29+
$bolt-border-radius: 3px;
30+
31+
// Transition
32+
$bolt-transition: ease-in-out 200ms;
33+
34+
// Effects
35+
$bolt-translate-none: translate3d(0, 0, 0);
36+
$bolt-translate-raised--small: translate3d(0, -1px, 0);
37+
$bolt-translate-raised--medium: translate3d(0, -0.125rem, 0);
38+
$bolt-translate-raised--large: translate3d(0, -0.25rem, 0);
2339

2440
/* ------------------------------------ *\
2541
All block elements

src/_patterns/01-core/01-settings/settings-global/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@
3636
},
3737
"scripts": {
3838
"getName": "echo $npm_package_name"
39+
},
40+
"dependencies": {
41+
"@bolt/tools-color-palette": "^0.4.0"
3942
}
4043
}

src/_patterns/01-core/06-themes/themes-all/_themes.all.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
@if $name == 'xlight' {
9696
@include _bolt-theme-settings(
9797
$background: bolt-color(white),
98-
$primary: bolt-color(blue),
99-
$secondary: bolt-color(blue),
98+
$primary: bolt-color(indigo, light),
99+
$secondary: bolt-color(indigo, light),
100100
$text: null,
101101
$heading: bolt-color(indigo),
102102
$button-text: null,
@@ -105,8 +105,8 @@
105105
@elseif $name == 'light' {
106106
@include _bolt-theme-settings(
107107
$background: bolt-color(gray, xlight),
108-
$primary: bolt-color(blue),
109-
$secondary: bolt-color(blue),
108+
$primary: bolt-color(indigo, light),
109+
$secondary: bolt-color(indigo, light),
110110
$text: null,
111111
$heading: bolt-color(indigo),
112112
$button-text: null,
@@ -125,7 +125,7 @@
125125
@elseif $name == 'xdark' {
126126
@include _bolt-theme-settings(
127127
$background: bolt-color(indigo, dark),
128-
$primary: bolt-color(blue),
128+
$primary: bolt-color(indigo, light),
129129
$secondary: bolt-color(white),
130130
$text: null,
131131
$heading: null,

0 commit comments

Comments
 (0)