Skip to content

Commit c4dc933

Browse files
committed
Add dark mode colours
1 parent bc008b5 commit c4dc933

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dotcom-rendering/src/components/LabsSection.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ type Props = {
7575

7676
const leftColumnBackground = css`
7777
background-color: ${sourcePalette.labs[400]};
78+
@media (prefers-color-scheme: dark) {
79+
background-color: ${sourcePalette.labs[200]};
80+
}
7881
`;
7982

8083
const contentBackground = css`
@@ -170,6 +173,9 @@ const contentSidePaddingFromLeftCol = css`
170173
const linkStyles = css`
171174
text-decoration: none;
172175
color: ${sourcePalette.neutral[100]};
176+
@media (prefers-color-scheme: dark) {
177+
color: ${sourcePalette.neutral[97]};
178+
}
173179
174180
:hover {
175181
text-decoration: underline;
@@ -180,6 +186,9 @@ const headerStyles = css`
180186
${textSansBold20};
181187
color: ${sourcePalette.neutral[100]};
182188
overflow-wrap: break-word; /*if a single word is too long, this will break the word up rather than have the display be affected*/
189+
@media (prefers-color-scheme: dark) {
190+
color: ${sourcePalette.neutral[97]};
191+
}
183192
`;
184193

185194
const containerMargins = css`
@@ -200,6 +209,9 @@ const paidForByStyles = css`
200209
color: ${sourcePalette.neutral[46]};
201210
margin-top: ${space[3]}px;
202211
margin-bottom: ${space[1]}px;
212+
@media (prefers-color-scheme: dark) {
213+
color: ${sourcePalette.neutral[38]};
214+
}
203215
`;
204216

205217
const GuardianLabsTitle = ({ title, url }: { title: string; url?: string }) => {

0 commit comments

Comments
 (0)