Skip to content

Commit 7b3ab37

Browse files
committed
chore: unify color vars against s2 spec
1 parent 6b99daa commit 7b3ab37

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

blocks/footer/footer.css

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
footer {
22
padding: 2rem;
3-
background-color: var(--light-color);
43
font-size: var(--body-font-size-s);
54
}
65

blocks/header/header.css

-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ header nav .nav-sections {
158158
flex: 1 1 auto;
159159
display: none;
160160
visibility: hidden;
161-
background-color: var(--overlay-color);
162161
}
163162

164163
header nav[aria-expanded='true'] .nav-sections {

blocks/hero/hero.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ main .hero-container {
1616
max-width: 1200px;
1717
margin-left: auto;
1818
margin-right: auto;
19-
color: white;
19+
color: var(--background-color);
2020
}
2121

2222
.hero picture {

styles/styles.css

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
:root {
1414
/* colors */
15-
--link-color: #035fe6;
16-
--link-hover-color: #136ff6;
1715
--background-color: white;
18-
--light-color: #eee;
19-
--dark-color: #ccc;
20-
--text-color: black;
16+
--light-color: #e1e1e1;
17+
--dark-color: #c6c6c6;
18+
--text-color: #292929;
19+
--link-color: #274dea;
20+
--link-hover-color: #1d3ecf;
2121

2222
/* fonts */
2323
--body-font-family: roboto, roboto-fallback;
@@ -63,8 +63,8 @@ body {
6363
margin: 0;
6464
font-family: var(--body-font-family);
6565
line-height: 1.6;
66-
color: var(--text-color);
6766
background-color: var(--background-color);
67+
color: var(--text-color);
6868
display: none;
6969
}
7070

@@ -152,8 +152,8 @@ button {
152152
font-style: normal;
153153
font-weight: 600;
154154
cursor: pointer;
155-
color: var(--background-color);
156155
background-color: var(--link-color);
156+
color: var(--background-color);
157157
margin: 16px 0;
158158
white-space: nowrap;
159159
overflow: hidden;

0 commit comments

Comments
 (0)