Skip to content

Commit cb9bdaf

Browse files
authored
🤖 fix: improve typography defaults (#636)
_Generated with _ ## Summary - enable standards-based font smoothing defaults (kerning, optical sizing) - avoid synthetic bold while preserving synthetic italics with font-synthesis: style - add heading ligature defaults and gate text-rendering hints behind supports ## Testing - make typecheck
1 parent 26a14e5 commit cb9bdaf

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)