Skip to content

Commit cdc6a01

Browse files
committed
Stop using system colors
1 parent e63087c commit cdc6a01

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

style.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
@media (prefers-color-scheme: light) {
66
:root {
77
--background-color: #fafafa;
8+
--text-color: #black;
9+
--link-color: #00e;
810
--contents-box-shadow: grey;
911
--hero-button-box-shadow: black;
1012
--hero-button-background: #fffb;
@@ -14,6 +16,8 @@
1416
@media (prefers-color-scheme: dark) {
1517
:root {
1618
--background-color: #1b1b1b;
19+
--text-color: #fbfbfe;
20+
--link-color: #8c8cff;
1721
--contents-box-shadow: black;
1822
--hero-button-box-shadow: white;
1923
--hero-button-background: #000b;
@@ -47,7 +51,7 @@ a:link,a:visited {
4751
}
4852

4953
a:visited {
50-
color: LinkText;
54+
color: var(--link-color);
5155
}
5256

5357
a:hover {
@@ -97,7 +101,7 @@ a:hover {
97101

98102
#hero-links p {
99103
float: right;
100-
color: CanvasText;
104+
color: var(--text-color);
101105
margin: 0px 0px 0px 4px;
102106
font-size: 24px;
103107
}

0 commit comments

Comments
 (0)