diff --git a/docs/ui/ui-redesign-tokens.md b/docs/ui/ui-redesign-tokens.md index d9dfde0..34453eb 100644 --- a/docs/ui/ui-redesign-tokens.md +++ b/docs/ui/ui-redesign-tokens.md @@ -31,6 +31,17 @@ Dark: Success, warning, destructive, and info remain semantic. Custom palette choice continues to override `--ui-accent`, which feeds `--primary`. +Colored text uses the `*-text` tokens, never the fills: `text-primary-text`, +`text-success-text`, `text-warning-text`, `text-info-text`, +`text-destructive-text`. The fills (`bg-primary`, `bg-warning/10`, dots, +rings) keep their bright values; the text tokens are darker in light mode so +small text reaches WCAG AA (4.5:1) on the `#F7F7F7` page and white cards — +the brand fill as text measured 2.5:1 and warning 2.0:1. Light-mode primary +text is `--brand-ink`, or for a custom palette color the darkest-needed step +of that hue (`accentTextLightness` in `preferences-context.tsx`). In dark mode +the text tokens equal the fills. Opacity variants like `text-primary/30` stay +on the fill for decoration only. + ## Typography - UI: native system sans (`ui-sans-serif`, `system-ui`, `-apple-system`, diff --git a/src/app.tsx b/src/app.tsx index 44d626e..10c9847 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -34,7 +34,7 @@ function RootErrorFallback(props: { error: unknown; reset: () => void }) { return (
-
+
diff --git a/src/components/ai/celebi-launcher.tsx b/src/components/ai/celebi-launcher.tsx index 5e855a2..caa5429 100644 --- a/src/components/ai/celebi-launcher.tsx +++ b/src/components/ai/celebi-launcher.tsx @@ -47,7 +47,7 @@ export function CelebiLauncher() { return (
-
+
diff --git a/src/components/ai/note-studio-panel.tsx b/src/components/ai/note-studio-panel.tsx index dd89c46..b207152 100644 --- a/src/components/ai/note-studio-panel.tsx +++ b/src/components/ai/note-studio-panel.tsx @@ -79,7 +79,7 @@ export function NoteStudioPanel() { when={selected()} fallback={
-
+
diff --git a/src/components/appointments/book-appointment-form.tsx b/src/components/appointments/book-appointment-form.tsx index 6f16a32..b3869e7 100644 --- a/src/components/appointments/book-appointment-form.tsx +++ b/src/components/appointments/book-appointment-form.tsx @@ -66,7 +66,7 @@ export function BookAppointmentForm(props: { />
- {error() &&

{error()}

} + {error() &&

{error()}

}
- {error() &&

{error()}

} + {error() &&

{error()}

}
- {error() &&

{error()}

} + {error() &&

{error()}

}