From dbc002c4921537d0d45ec6527e339d9f715608a0 Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Fri, 5 Jun 2026 16:49:44 +0200 Subject: [PATCH] docs(01): fix 3 blocking UI-SPEC issues from checker - Copywriting: rename delete pet cancel button from "Cancel" to "Keep pet" - Typography: reduce to exactly 4 sizes (12/14/16/20px) and 2 weights (400/600) - Visuals: add focal point declaration per screen in Screen Inventory Co-Authored-By: Claude Sonnet 4.6 --- .planning/phases/01-foundation/01-UI-SPEC.md | 66 ++++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.planning/phases/01-foundation/01-UI-SPEC.md b/.planning/phases/01-foundation/01-UI-SPEC.md index b733e2c..c5f3538 100644 --- a/.planning/phases/01-foundation/01-UI-SPEC.md +++ b/.planning/phases/01-foundation/01-UI-SPEC.md @@ -1,7 +1,7 @@ --- phase: 1 slug: foundation -status: approved +status: revised shadcn_initialized: false preset: default created: 2026-06-05 @@ -87,22 +87,22 @@ Font: **Inter** — loaded once via `next/font/google` in `layout.tsx`, applied | Role | Size | Weight | Line Height | Tailwind | |------|------|--------|-------------|----------| -| Display | 30px | 700 | 1.2 | `text-3xl font-bold` | -| Heading 1 | 24px | 700 | 1.3 | `text-2xl font-bold` | -| Heading 2 | 20px | 600 | 1.4 | `text-xl font-semibold` | -| Heading 3 | 16px | 600 | 1.5 | `text-base font-semibold` | -| Body | 14px | 400 | 1.6 | `text-sm` | -| Label | 14px | 500 | 1.4 | `text-sm font-medium` | +| Page heading | 20px | 600 | 1.2 | `text-xl font-semibold` | +| Section heading | 16px | 600 | 1.5 | `text-base font-semibold` | +| Body / Label / Button | 14px | 400 | 1.6 | `text-sm` | | Caption | 12px | 400 | 1.5 | `text-xs` | -| Button | 14px | 500 | 1 | `text-sm font-medium` | + +Exactly 4 sizes and 2 weights. All headings (auth pages, pet name, section labels) use 20px or 16px at weight 600. All body text, labels, and buttons use 14px at weight 400. Captions use 12px at weight 400. The former Display (30px) and Heading 1 (24px) tiers are removed — auth page headings use Page heading (20px, weight 600), which provides sufficient hierarchy within the constrained card layout. ### Usage Rules -- Pet name on pet card: Heading 2 (`text-xl font-semibold`) -- Form section headings: Heading 3 (`text-base font-semibold`) -- Field labels: Label (`text-sm font-medium`) — rendered via shadcn `