Skip to content

Commit 864d6af

Browse files
jesseabordenJesse Borden
andauthored
Update dark mode styles for getting started components. (#1002)
Co-authored-by: Jesse Borden <jborden@apple.com>
1 parent cfac7f3 commit 864d6af

File tree

3 files changed

+105
-42
lines changed

3 files changed

+105
-42
lines changed
430 KB
Loading

assets/stylesheets/new-stylesheets/_themes.scss

Lines changed: 77 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
21
@mixin light-theme() {
32
--site-text-color: #051416;
4-
--site-navigation-border-bottom: linear-gradient(0deg, #f6b391 0%, #f8ce6e 92%);
5-
--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;
611
--site-navigation-background: rgba(255, 255, 255, 0.5);
7-
--site-navigation-text-color: #3D3D3D;
12+
--site-navigation-text-color: #3d3d3d;
813
--site-navigation-item-background: rgba(0, 0, 0, 0.05);
914
--site-tabs-background: rgba(255, 255, 255, 0.8);
1015
--site-tabs-active-background: #ffffff;
1116
--site-navigation-menu-toggle-invert: invert(0);
1217
--site-navigation-item-border: 1px solid #051416;
13-
--site-code-box-text: #3D3D3D;
18+
--site-code-box-text: #3d3d3d;
1419
--site-link-with-right-arrow-color: #384fea;
1520
--site-link-with-right-arrow-icon-filter: none;
1621
--site-content-link-with-right-arrow-icon-filter: brightness(0);
@@ -25,11 +30,38 @@
2530
--install-release-box-tr-border-bottom: 1px solid #f2f2f2;
2631
--install-release-box-tr-bg: #ffffff;
2732

28-
--homepage-hero-bg: linear-gradient(179deg,#fac685 3%, #fbdab0 87%, #ffffff 100%);
33+
--get-started-page-bg: #fafafa;
34+
--get-started-card-primary-bg: rgba(255, 255, 255, 0.9);
35+
--get-started-card-secondary-bg: rgba(236, 236, 236, 1);
36+
--get-started-boxes-bg: rgba(255, 255, 255, 0.5);
37+
--get-started-code-box-pre-bg: #fff;
38+
--get-started-code-box-pre-border: 1px solid #d5d5d5;
39+
40+
--homepage-hero-bg: linear-gradient(
41+
179deg,
42+
#fac685 3%,
43+
#fbdab0 87%,
44+
#ffffff 100%
45+
);
2946
--homepage-install-text: #3d3d3d;
30-
--homepage-pillar-1-bg: linear-gradient(to bottom, #ffffff 0%, #d9f2ff 75%, #fff3d8 90%);
31-
--homepage-pillar-2-bg: linear-gradient(to top, #e4937f 0%, #fdd9a1 72%, #fff3d8 100%);
32-
--homepage-pillar-3-bg: linear-gradient(180deg, #e4937f 0%, #a268c1 36%, #4b3773 100%);
47+
--homepage-pillar-1-bg: linear-gradient(
48+
to bottom,
49+
#ffffff 0%,
50+
#d9f2ff 75%,
51+
#fff3d8 90%
52+
);
53+
--homepage-pillar-2-bg: linear-gradient(
54+
to top,
55+
#e4937f 0%,
56+
#fdd9a1 72%,
57+
#fff3d8 100%
58+
);
59+
--homepage-pillar-3-bg: linear-gradient(
60+
180deg,
61+
#e4937f 0%,
62+
#a268c1 36%,
63+
#4b3773 100%
64+
);
3365
--home-quicklinks-bg: rgba(255, 177, 100, 0.9);
3466
--home-quicklinks-color: #801a1a;
3567

@@ -77,31 +109,55 @@
77109
--site-navigation-text-color: #ffffff;
78110
--site-navigation-item-background: rgba(0, 0, 0, 0.4);
79111
--site-tabs-background: rgba(35, 52, 74, 1);
80-
--site-tabs-active-background: #505F83;
112+
--site-tabs-active-background: #505f83;
81113
--site-navigation-menu-toggle-invert: invert(1);
82114
--site-navigation-item-border: 1px solid #ffffff;
83115
--site-code-box-text: #ffffff;
84-
--site-link-with-right-arrow-color: #1EC1FD;
85-
--site-link-with-right-arrow-icon-filter: invert(66%) sepia(89%) saturate(602%) hue-rotate(172deg) brightness(102%) contrast(101%);
116+
--site-link-with-right-arrow-color: #1ec1fd;
117+
--site-link-with-right-arrow-icon-filter: invert(66%) sepia(89%)
118+
saturate(602%) hue-rotate(172deg) brightness(102%) contrast(101%);
86119
--site-content-link-with-right-arrow-icon-filter: brightness(0) invert(1);
87120

88121
--page-bg: #fff;
89122

90-
--install-page-bg: linear-gradient(0deg, #FF8115 0%, #B7451B 92%);
91-
--install-site-code-box-bg: #23344A;
123+
--install-page-bg: linear-gradient(0deg, #ff8115 0%, #b7451b 92%);
124+
--install-site-code-box-bg: #23344a;
92125
--install-site-code-box-pre-bg: #111727;
93126
--install-release-box-th-bg: #111727;
94127
--install-release-box-th-color: #ffffff;
95128
--install-release-box-tr-border-bottom: 1px solid #051416;
96129
--install-release-box-tr-bg: #384461;
97130

98-
--homepage-install-text: #DEDEDE;;
99-
--homepage-hero-bg: linear-gradient(180deg, #144173 0%, #141228 68%, #144173 99%);
100-
--homepage-pillar-1-bg: linear-gradient(179deg, #144173 1%, #000000 57%, #350839 88%, #B7451B 99%);
101-
--homepage-pillar-2-bg: linear-gradient(0deg, #A268C1 4%, #FF8115 8%, #B7451B 99%);
102-
--homepage-pillar-3-bg: linear-gradient(180deg, #A268C1 4%, #4B3773 99%);
131+
--get-started-page-bg: rgb(5, 20, 35);
132+
--get-started-card-primary-bg: rgba(35, 52, 74, 0.9);
133+
--get-started-card-secondary-bg: rgba(56, 68, 97, 1);
134+
--get-started-boxes-bg: rgba(25, 52, 74, 0.5);
135+
--get-started-code-box-pre-bg: #111727;
136+
--get-started-code-box-pre-border: 1px solid #575757;
137+
138+
--homepage-install-text: #dedede;
139+
--homepage-hero-bg: linear-gradient(
140+
180deg,
141+
#144173 0%,
142+
#141228 68%,
143+
#144173 99%
144+
);
145+
--homepage-pillar-1-bg: linear-gradient(
146+
179deg,
147+
#144173 1%,
148+
#000000 57%,
149+
#350839 88%,
150+
#b7451b 99%
151+
);
152+
--homepage-pillar-2-bg: linear-gradient(
153+
0deg,
154+
#a268c1 4%,
155+
#ff8115 8%,
156+
#b7451b 99%
157+
);
158+
--homepage-pillar-3-bg: linear-gradient(180deg, #a268c1 4%, #4b3773 99%);
103159

104-
--home-quicklinks-bg: #23344A;
160+
--home-quicklinks-bg: #23344a;
105161
--home-quicklinks-color: #ffffff;
106162

107163
// rubber band
@@ -137,4 +193,4 @@
137193
--color-syntax-strings: rgb(255, 129, 112);
138194
--color-syntax-type-declarations: rgb(107, 223, 255);
139195
--color-syntax-urls: rgb(102, 153, 255);
140-
}
196+
}

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 {
@@ -533,7 +533,7 @@
533533
p {
534534
font-size: 17px;
535535
padding: 0 100px;
536-
margin-bottom: 45px;
536+
margin-bottom: 26px;
537537
}
538538

539539
a {
@@ -575,11 +575,11 @@
575575
&.background {
576576
border-radius: 22px;
577577
padding: 50px;
578-
background: rgba(255, 255, 255, 0.9);
578+
background: var(--get-started-card-primary-bg);
579579
box-sizing: border-box;
580580

581581
.code {
582-
background: #fff;
582+
background: var(--get-started-code-box-pre-bg);
583583
max-height: 400px;
584584
overflow: scroll;
585585
}
@@ -600,13 +600,13 @@
600600
.code {
601601
max-width: none;
602602
width: 100%;
603-
border: 1px solid #d5d5d5;
603+
border: var(--get-started-code-box-pre-border);
604604
border-radius: 22px;
605-
background: #fff;
605+
background: var(--get-started-code-box-pre-bg);
606606
overflow: hidden;
607607

608608
.highlight {
609-
background: #fff;
609+
background: var(--get-started-code-box-pre-bg);
610610
}
611611
}
612612

@@ -650,12 +650,12 @@
650650
.code {
651651
flex: 1;
652652
margin-right: 40px;
653-
border: 1px solid #d5d5d5;
653+
border: var(--get-started-code-box-pre-border);
654654
border-radius: 22px;
655655
height: fit-content;
656656
overflow: hidden;
657657
pre.highlight {
658-
background: #fff;
658+
background: var(--get-started-code-box-pre-bg);
659659
}
660660
}
661661

@@ -743,11 +743,11 @@
743743
.code {
744744
flex: 1;
745745
margin-right: 40px;
746-
border: 1px solid #d5d5d5;
746+
border: var(--get-started-code-box-pre-border);
747747
border-radius: 22px;
748748
overflow: hidden;
749749
pre.highlight {
750-
background: #fff;
750+
background: var(--get-started-code-primary-bg);
751751
}
752752
}
753753

@@ -811,7 +811,7 @@
811811
padding-top: 37px;
812812
margin-bottom: 70px;
813813
border-radius: 22px;
814-
background: rgba(255, 255, 255, 0.9);
814+
background: var(--get-started-card-primary-bg);
815815

816816
h2 {
817817
font-size: 48px;
@@ -855,14 +855,21 @@
855855
}
856856

857857
.stand-alone-link {
858-
background: rgba(255, 255, 255, 0.9);
858+
background: var(--get-started-card-primary-bg);
859859
padding: 20px 50px;
860860
opacity: 0.9;
861861
border-radius: 20px;
862862
width: fit-content;
863863
margin: auto;
864864
display: block;
865865
margin-bottom: 90px;
866+
position: relative;
867+
z-index: 1;
868+
869+
&:hover {
870+
cursor: pointer;
871+
}
872+
866873
a {
867874
@include link-with-right-arrow;
868875
}

0 commit comments

Comments
 (0)