Skip to content

Commit df7b00b

Browse files
committed
Improve global typographic smoothing defaults
1 parent 76daeda commit df7b00b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/browser/styles/globals.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
:root {
3131
color-scheme: dark;
3232

33+
font-kerning: normal;
34+
font-optical-sizing: auto;
35+
font-synthesis: style;
36+
3337
@theme {
3438
/* Mode Colors */
3539
--color-plan-mode: hsl(210 70% 40%);
@@ -251,6 +255,19 @@
251255
}
252256

253257

258+
h1,
259+
h2,
260+
h3 {
261+
font-variant-ligatures: common-ligatures contextual;
262+
}
263+
264+
@supports (text-rendering: optimizeLegibility) {
265+
h1,
266+
h2 {
267+
text-rendering: optimizeLegibility;
268+
}
269+
}
270+
254271
body {
255272
background-color: var(--color-background);
256273
color: var(--color-foreground);

0 commit comments

Comments
 (0)