From 6bbc08ef527f830c29e51df294374a5da07b2775 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Thu, 30 Jul 2026 17:03:18 +1000 Subject: [PATCH] Update md --- agents.md | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/agents.md b/agents.md index df5c289..8aecf81 100644 --- a/agents.md +++ b/agents.md @@ -332,6 +332,64 @@ Before writing or modifying any feature, **check the existing contract first** t - **Accessibility.** Buttons/links need visible focus rings, tap targets ≥ 44 px on mobile, ARIA labels for icon-only controls, and `sr-only` labels for visually-hidden text. - **Tests are mandatory for API changes.** Add or update a test that pins the contract (status code, body, headers). Run `pytest` before declaring done. +### UI Style Guidelines + +**The home page is the canonical style reference.** Every UI page in this app must align with the Apple-inspired design system defined in `links/templates/links/link_list.html`. Do not introduce ad-hoc Tailwind color palettes (e.g. `red-600`, `gray-200` buttons) or generic card styles on new pages — reuse the home page's tokens and component classes so the whole app shares one visual language. + +#### Canonical reference +- **Home page template**: `links/templates/links/link_list.html` — the `{% block extra_css %}` `