Skip to content

Commit f88b697

Browse files
make text color a tiny bit lighter in light mode (#498)
* make text color a tiny bit lighter in dark mode I feel like this will be easier on the eyes for prolonged sessions * tiny bit darker, only for georgia --------- Co-authored-by: Rich Harris <[email protected]>
1 parent e1a1d16 commit f88b697

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

packages/site-kit/src/lib/styles/tokens.css

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@
4141

4242
--sk-line-height-body: 1.7;
4343

44-
@media (resolution: 2x) {
45-
--sk-font-family-body: 'EB Garamond', Georgia, serif;
46-
--sk-font-size-body: 2.1rem;
47-
--sk-font-size-body-small: 1.8rem;
48-
--sk-line-height-body: 1.5;
49-
}
50-
5144
--sk-font-h1: 500 var(--sk-font-size-h1) / 1.2 var(--sk-font-family-heading);
5245
--sk-font-h2: 500 var(--sk-font-size-h2) / 1.2 var(--sk-font-family-heading);
5346
--sk-font-h3: 500 var(--sk-font-size-h3) / 1.2 var(--sk-font-family-heading);
@@ -72,9 +65,9 @@
7265
--sk-back-5: hsl(0, 0%, 92%);
7366
--sk-back-6: hsl(0, 0%, 86%);
7467

75-
--sk-text-1: hsl(0, 0%, 5%);
76-
--sk-text-2: hsl(0, 0%, 12%);
77-
--sk-text-3: hsl(0, 0%, 27%);
68+
--sk-text-1: hsl(0, 0%, 12%);
69+
--sk-text-2: hsl(0, 0%, 20%);
70+
--sk-text-3: hsl(0, 0%, 30%);
7871
--sk-text-4: hsl(0, 0%, 45%);
7972
--sk-scrollbar: rgba(0, 0, 0, 0.3);
8073
--sk-shadow: drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.1));
@@ -127,6 +120,16 @@
127120
the 0.01 prevents Vite from optimising it to `translate(0, 0)`, which doesn't fix anything */
128121
--safari-fix: translate3d(0, 0, 0.01);
129122

123+
@media (resolution: 2x) {
124+
--sk-font-family-body: 'EB Garamond', Georgia, serif;
125+
--sk-font-size-body: 2.1rem;
126+
--sk-font-size-body-small: 1.8rem;
127+
--sk-line-height-body: 1.5;
128+
--sk-text-1: hsl(0, 0%, 5%);
129+
--sk-text-2: hsl(0, 0%, 12%);
130+
--sk-text-3: hsl(0, 0%, 27%);
131+
}
132+
130133
&.dark {
131134
color-scheme: dark;
132135
-webkit-font-smoothing: antialiased;

0 commit comments

Comments
 (0)