fix(design): stop synthesizing bold on Hedvig display headings (#1555)
* fix(design): stop synthesizing bold on Hedvig display headings Hedvig Letters Serif ships weight 400 only, but the h1-h3 base rule forced font-weight 500 and DialogTitle/SheetTitle stacked font-semibold on top, so every display heading rendered browser-synthesized bold: the smudged heavy look on dialog titles and page headings. Drop the base rule to 400, remove the weight utilities from the title primitives, and sweep the 41 files that hand-set font-medium/semibold/bold on serif headings (a pattern design.md already forbids). Headings that opt into font-sans keep their weight. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(design): drop empty className left by the weight sweep Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
Jakob Wennberg
parent
e51a2c8102
commit
314efe8b22
@@ -224,7 +224,7 @@ export default function NewUserChecklist({
|
||||
return (
|
||||
<section className={className} aria-label={t('title', { count: stepCount })}>
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<h2 className="text-sm font-medium">{t('title', { count: stepCount })}</h2>
|
||||
<h2 className="text-sm">{t('title', { count: stepCount })}</h2>
|
||||
<button
|
||||
type="button"
|
||||
disabled={saving !== null}
|
||||
|
||||
@@ -279,7 +279,7 @@ export default function ReviewCard({
|
||||
check dry registry facts. */}
|
||||
<section>
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground">
|
||||
<h2 className="text-sm uppercase tracking-wider text-muted-foreground">
|
||||
Så här har jag förstått dig
|
||||
</h2>
|
||||
{!editingSummary && summary && (
|
||||
@@ -313,7 +313,7 @@ export default function ReviewCard({
|
||||
"atoms/specialiteter" framing. */}
|
||||
{(horizontal.length > 0 || vertical.length > 0 || modifier.length > 0) && (
|
||||
<section>
|
||||
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-1">
|
||||
<h2 className="text-sm uppercase tracking-wider text-muted-foreground mb-1">
|
||||
Vad jag kan hjälpa dig med
|
||||
</h2>
|
||||
<p className="text-xs text-muted-foreground mb-3">
|
||||
@@ -338,7 +338,7 @@ export default function ReviewCard({
|
||||
|
||||
{/* Inferred facts to confirm */}
|
||||
<section>
|
||||
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-4">
|
||||
<h2 className="text-sm uppercase tracking-wider text-muted-foreground mb-4">
|
||||
Uppgifter
|
||||
</h2>
|
||||
<dl className="divide-y divide-border">
|
||||
@@ -403,7 +403,7 @@ export default function ReviewCard({
|
||||
authoritative legal text. Hidden when TIC didn't return one. */}
|
||||
{fields.purpose && (
|
||||
<section>
|
||||
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-3">
|
||||
<h2 className="text-sm uppercase tracking-wider text-muted-foreground mb-3">
|
||||
Verksamhet
|
||||
</h2>
|
||||
<p className="text-sm leading-6 text-muted-foreground italic">
|
||||
@@ -416,7 +416,7 @@ export default function ReviewCard({
|
||||
one thing than chat. The Phase C intake will draw the rest
|
||||
out conversationally. */}
|
||||
<section>
|
||||
<h2 className="text-sm font-medium uppercase tracking-wider text-muted-foreground mb-1">
|
||||
<h2 className="text-sm uppercase tracking-wider text-muted-foreground mb-1">
|
||||
Bra att veta
|
||||
</h2>
|
||||
<p className="text-xs text-muted-foreground mb-3">
|
||||
|
||||
Reference in New Issue
Block a user