docs: publish the UI standards in docs/contributing

The binding UI rulebook (card anatomy, spacing scale, text colour,
tokens, primitive mapping, enforcement) lived outside the repository,
so a contributor could follow a code comment to a file they could not
open. It now lives at docs/contributing/ui-standards.md, every comment
that cited it points there, and the docs index and ui-guidelines.md
say which document wins when they disagree.
This commit is contained in:
Marc-André Bombeck committed 2026-10-21 19:37:22 +02:00
1 parent 07f9615dba
commit d44af06467
46 files changed
+244 -55

No files matched your search

+1 -1
View File
@@ -318,7 +318,7 @@ export default function AchievementsPage() {
}
// A failed load must never fall through to the zeroed summary tiles + the
// "none unlocked yet" empty grid (UI-STANDARDS §6). Surface an honest
// "none unlocked yet" empty grid (ui-standards.md §6). Surface an honest
// retry instead.
if (isError) {
return (
+1 -1
View File
@@ -135,7 +135,7 @@
/* The one sanctioned step below `text-xs` (12px). Minted so badges,
tag chips, and tabular-nums micro-labels stop hand-rolling
`text-[0.6875rem]` / `text-[0.65rem]` arbitrary values that drift by a
third of a pixel per site. UI-STANDARDS §5 pins the usage: never for
third of a pixel per site. ui-standards.md §5 pins the usage: never for
muted body or meta text (the muted floor stays `text-xs`) — only for
chips, badges, and tabular micro-labels with verified contrast. */
--text-2xs: 0.6875rem;
+1 -1
View File
@@ -98,7 +98,7 @@ export default function InsightsWorkoutDetailPage({
<Skeleton className="h-60 w-full rounded-lg" />
</div>
) : error ? (
// A failed query must never read as "no data" (UI-STANDARDS §6).
// A failed query must never read as "no data" (ui-standards.md §6).
<QueryErrorCard error={error} onRetry={() => refetch()} />
) : !data ? (
<p