Skip to content

Commit 0199b2c

Browse files
author
Jesse Borden
committed
Update dark mode styles for getting started components.
1 parent 138d2e5 commit 0199b2c

File tree

3 files changed

+59
-31
lines changed

3 files changed

+59
-31
lines changed
430 KB
Loading
Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
@mixin light-theme() {
22
--site-text-color: #051416;
3-
--site-navigation-border-bottom: linear-gradient(0deg, #f6b391 0%, #f8ce6e 92%);
4-
--site-navigation-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
3+
--site-navigation-border-bottom: linear-gradient(
4+
0deg,
5+
#f6b391 0%,
6+
#f8ce6e 92%
7+
);
8+
--site-navigation-box-shadow:
9+
rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
10+
rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
511
--site-navigation-background: rgba(255, 255, 255, 0.5);
6-
--site-navigation-text-color: #3D3D3D;
12+
--site-navigation-text-color: #3d3d3d;
713
--site-navigation-item-background: rgba(0, 0, 0, 0.05);
814
--site-tabs-background: rgba(255, 255, 255, 0.8);
915
--site-tabs-active-background: #ffffff;
1016
--site-navigation-menu-toggle-invert: invert(0);
1117
--site-navigation-item-border: 1px solid #051416;
12-
--site-code-box-text: #3D3D3D;
18+
--site-code-box-text: #3d3d3d;
1319
--site-link-with-right-arrow-color: #384fea;
1420
--site-link-with-right-arrow-icon-filter: none;
1521
--site-content-link-with-right-arrow-icon-filter: brightness(0);
@@ -21,6 +27,13 @@
2127
--install-release-box-th-color: #333;
2228
--install-release-box-tr-border-bottom: 1px solid #f2f2f2;
2329
--install-release-box-tr-bg: #ffffff;
30+
31+
--get-started-page-bg: #fafafa;
32+
--get-started-card-primary-bg: rgba(255, 255, 255, 0.9);
33+
--get-started-card-secondary-bg: rgba(236, 236, 236, 1);
34+
--get-started-boxes-bg: rgba(255, 255, 255, 0.5);
35+
--get-started-code-box-pre-bg: #fff;
36+
--get-started-code-box-pre-border: 1px solid #d5d5d5;
2437
}
2538

2639
@mixin dark-theme() {
@@ -31,19 +44,27 @@
3144
--site-navigation-text-color: #ffffff;
3245
--site-navigation-item-background: rgba(0, 0, 0, 0.4);
3346
--site-tabs-background: rgba(35, 52, 74, 1);
34-
--site-tabs-active-background: #505F83;
47+
--site-tabs-active-background: #505f83;
3548
--site-navigation-menu-toggle-invert: invert(1);
3649
--site-navigation-item-border: 1px solid #ffffff;
3750
--site-code-box-text: #ffffff;
38-
--site-link-with-right-arrow-color: #1EC1FD;
39-
--site-link-with-right-arrow-icon-filter: invert(66%) sepia(89%) saturate(602%) hue-rotate(172deg) brightness(102%) contrast(101%);
51+
--site-link-with-right-arrow-color: #1ec1fd;
52+
--site-link-with-right-arrow-icon-filter: invert(66%) sepia(89%)
53+
saturate(602%) hue-rotate(172deg) brightness(102%) contrast(101%);
4054
--site-content-link-with-right-arrow-icon-filter: brightness(0) invert(1);
4155

42-
--install-page-bg: linear-gradient(0deg, #FF8115 0%, #B7451B 92%);
43-
--install-site-code-box-bg: #23344A;
56+
--install-page-bg: linear-gradient(0deg, #ff8115 0%, #b7451b 92%);
57+
--install-site-code-box-bg: #23344a;
4458
--install-site-code-box-pre-bg: #111727;
4559
--install-release-box-th-bg: #111727;
4660
--install-release-box-th-color: #ffffff;
4761
--install-release-box-tr-border-bottom: 1px solid #051416;
4862
--install-release-box-tr-bg: #384461;
49-
}
63+
64+
--get-started-page-bg: rgb(5, 20, 35);
65+
--get-started-card-primary-bg: rgba(35, 52, 74, 0.9);
66+
--get-started-card-secondary-bg: rgba(56, 68, 97, 1);
67+
--get-started-boxes-bg: rgba(25, 52, 74, 0.5);
68+
--get-started-code-box-pre-bg: #111727;
69+
--get-started-code-box-pre-border: 1px solid #575757;
70+
}

assets/stylesheets/new-stylesheets/pages/_get-started.scss

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
@use '../helpers' as *;
22

33
.get-started {
4+
color: var(--site-text-color);
45
position: relative;
5-
background: #f2f2f2;
6+
background: var(--get-started-page-bg);
67
@include noise();
78
}
89

@@ -18,7 +19,6 @@
1819
aspect-ratio: 980 / 473;
1920
border-radius: 22px;
2021
overflow: hidden;
21-
background-color: rgba(255, 255, 255, 0.8);
2222
margin-bottom: 50px;
2323
position: relative;
2424
z-index: 2;
@@ -79,18 +79,16 @@
7979

8080
li {
8181
display: inline-block;
82-
color: #801a1a;
8382
font-weight: 400;
8483
padding: 16px 16px 20px;
85-
background-color: rgba(97, 75, 138, 0.8);
84+
background-color: var(--get-started-boxes-bg);
8685
border-radius: 20px;
8786
font-size: 14px;
8887
white-space: nowrap;
8988

9089
span {
9190
display: block;
9291
text-align: left;
93-
color: white;
9492

9593
&.title {
9694
font-size: 24px;
@@ -102,7 +100,7 @@
102100
&.text {
103101
font-size: 14px;
104102
white-space: normal;
105-
line-height: 1.14;
103+
line-height: 1.3;
106104
}
107105
}
108106
}
@@ -136,7 +134,7 @@
136134
margin-bottom: 50px;
137135

138136
.content {
139-
background-color: white;
137+
background-color: var(--get-started-card-primary-bg);
140138
padding: 53px 50px 40px;
141139
max-width: 980px;
142140
margin: 0 auto;
@@ -159,6 +157,7 @@
159157
text-align: center;
160158
font-size: 48px;
161159
margin-bottom: 52px;
160+
color: var(--site-text-color);
162161
}
163162

164163
a {
@@ -180,7 +179,7 @@
180179
gap: 20px;
181180

182181
li {
183-
background-color: #f9f9f9;
182+
background-color: var(--get-started-card-secondary-bg);
184183
display: flex;
185184
align-items: center;
186185
gap: 20px;
@@ -235,7 +234,7 @@
235234
// padding: 0 0 40px;
236235

237236
li {
238-
background-color: #f9f9f9;
237+
background-color: var(--get-started-card-secondary-bg);
239238
padding: 20px 30px 20px 20px;
240239
display: flex;
241240
text-align: left;
@@ -388,6 +387,7 @@
388387

389388
pre {
390389
max-height: 400px;
390+
border: var(--get-started-code-box-pre-border);
391391
}
392392

393393
&.code-box-with-tabs {
@@ -523,7 +523,7 @@
523523
p {
524524
font-size: 17px;
525525
padding: 0 100px;
526-
margin-bottom: 45px;
526+
margin-bottom: 26px;
527527
}
528528

529529
a {
@@ -565,11 +565,11 @@
565565
&.background {
566566
border-radius: 22px;
567567
padding: 50px;
568-
background: rgba(255, 255, 255, 0.9);
568+
background: var(--get-started-card-primary-bg);
569569
box-sizing: border-box;
570570

571571
.code {
572-
background: #fff;
572+
background: var(--get-started-code-box-pre-bg);
573573
max-height: 400px;
574574
overflow: scroll;
575575
}
@@ -590,13 +590,13 @@
590590
.code {
591591
max-width: none;
592592
width: 100%;
593-
border: 1px solid #d5d5d5;
593+
border: var(--get-started-code-box-pre-border);
594594
border-radius: 22px;
595-
background: #fff;
595+
background: var(--get-started-code-box-pre-bg);
596596
overflow: hidden;
597597

598598
.highlight {
599-
background: #fff;
599+
background: var(--get-started-code-box-pre-bg);
600600
}
601601
}
602602

@@ -640,12 +640,12 @@
640640
.code {
641641
flex: 1;
642642
margin-right: 40px;
643-
border: 1px solid #d5d5d5;
643+
border: var(--get-started-code-box-pre-border);
644644
border-radius: 22px;
645645
height: fit-content;
646646
overflow: hidden;
647647
pre.highlight {
648-
background: #fff;
648+
background: var(--get-started-code-box-pre-bg);
649649
}
650650
}
651651

@@ -733,11 +733,11 @@
733733
.code {
734734
flex: 1;
735735
margin-right: 40px;
736-
border: 1px solid #d5d5d5;
736+
border: var(--get-started-code-box-pre-border);
737737
border-radius: 22px;
738738
overflow: hidden;
739739
pre.highlight {
740-
background: #fff;
740+
background: var(--get-started-code-primary-bg);
741741
}
742742
}
743743

@@ -801,7 +801,7 @@
801801
padding-top: 37px;
802802
margin-bottom: 70px;
803803
border-radius: 22px;
804-
background: rgba(255, 255, 255, 0.9);
804+
background: var(--get-started-card-primary-bg);
805805

806806
h2 {
807807
font-size: 48px;
@@ -845,14 +845,21 @@
845845
}
846846

847847
.stand-alone-link {
848-
background: rgba(255, 255, 255, 0.9);
848+
background: var(--get-started-card-primary-bg);
849849
padding: 20px 50px;
850850
opacity: 0.9;
851851
border-radius: 20px;
852852
width: fit-content;
853853
margin: auto;
854854
display: block;
855855
margin-bottom: 90px;
856+
position: relative;
857+
z-index: 1;
858+
859+
&:hover {
860+
cursor: pointer;
861+
}
862+
856863
a {
857864
@include link-with-right-arrow;
858865
}

0 commit comments

Comments
 (0)