Skip to content

Commit f1c7666

Browse files
committed
♿️ Fix highlight color contrasts
1 parent da4a6ae commit f1c7666

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/Tweet.module.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
width: 1080px;
88
box-sizing: border-box;
99
overflow: hidden;
10+
11+
/* --brand-primary: #00345f; */
12+
--brand-primary: #002f52;
13+
14+
--brand-highlight: #008b9e;
15+
--brand-highlight-darker: #007381;
16+
--brand-highlight-lighter: #0099ad;
1017
}
1118

1219
.overlay {
@@ -77,7 +84,7 @@
7784
.userName {
7885
font-family: "WDRSansVZ";
7986
font-weight: bold;
80-
color: #002f52;
87+
color: var(--brand-primary);
8188
font-size: 22px;
8289
}
8390

@@ -97,7 +104,7 @@
97104
.userScreenName {
98105
font-family: "WDRSansVZ";
99106
font-weight: 500;
100-
color: #008b9e;
107+
color: var(--brand-highlight-darker);
101108
font-size: 18px;
102109
}
103110

@@ -106,7 +113,7 @@
106113
margin-bottom: 20px;
107114
font-family: "WDRSlabVZ";
108115
font-weight: 500;
109-
color: #002f52;
116+
color: var(--brand-primary);
110117
font-size: 48px;
111118
overflow-wrap: break-word;
112119
}
@@ -118,19 +125,20 @@
118125
}
119126

120127
.highlightText {
121-
color: #008b9e;
128+
color: var(--brand-highlight);
122129
}
123130

124131
.timestamp {
125132
display: block;
126133
font-family: "WDRSansVZ";
127134
font-weight: 500;
128135
font-size: 18px;
129-
color: #008b9e;
136+
color: var(--brand-highlight-darker);
130137
margin-bottom: -5px;
131138
}
132139

133140
.timestampBelow {
141+
color: var(--brand-highlight-lighter);
134142
padding-top: 10px;
135143
padding-left: 20px;
136144
}

0 commit comments

Comments
 (0)