diff --git a/ACCESSIBILITY.md b/ACCESSIBILITY.md index d46f42f7f..5b9422d69 100644 --- a/ACCESSIBILITY.md +++ b/ACCESSIBILITY.md @@ -104,7 +104,7 @@ Apply this to every component you write or modify. - Large text (18px+ or bold 14px+): minimum 3:1. - UI components and focus indicators: minimum 3:1 against adjacent colors. - Focus indicators (WCAG 2.4.11): the focus indicator area must be at least as large as a 2px perimeter outline of the component, and the focused/unfocused contrast ratio must be at least 3:1. -- Never use `hsl(41 100% 60%)` (`#ffc034` yellow) as text in light mode — fails contrast. +- Never use `hsl(41 100% 60%)` (`#ffc034` yellow) as text in light mode. Fails contrast. - Never place text on `bg-primary` without verifying light mode contrast. - Never use `opacity-*` on an element that contains visible text. Use an explicit CSS color token instead (e.g. `text-[hsl(var(--text-faint))]`). - Always verify contrast in both light and dark mode. diff --git a/CLAUDE.md b/CLAUDE.md index 16214c98d..a0c51d7f5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -27,7 +27,7 @@ Community activity happens on a separate Discourse instance. Its display name is ## Stack - **Framework:** React 19 with TypeScript, bundled via Vite. Check `package.json` for current versions. -- **Styling:** Tailwind CSS 4, configured CSS-first via `src/index.css` (`@theme` block). There is no `tailwind.config.ts` — it was deleted as part of the Tailwind 4 migration. +- **Styling:** Tailwind CSS 4, configured CSS-first via `src/index.css` (`@theme` block). There is no `tailwind.config.ts`; it was deleted as part of the Tailwind 4 migration. - **Components:** Minimal shadcn/ui surface. `src/components/ui/` contains only `badge.tsx` and `tooltip.tsx`. Most Radix UI packages were intentionally removed. - **Routing:** React Router v7 framework mode (static prerendering with `ssr: false`) - **Testing:** Vitest + @testing-library/react (unit/component); Playwright (smoke tests in `e2e/`) @@ -196,9 +196,9 @@ When diagnosing a bug, especially in the production build, follow these rules wi - **Buttons:** use raw `