Frontend architecture
Interface conventions for the Vetrix web client: the design-system tokens every component builds against, and the accessibility contract for user-identity imagery. These pages are the reference to consult before adding or restyling a UI surface.
Pages
- Vetrix UI Style Guide — The design system of record: the
vetrix-*Tailwind color tokens (navigation, brand, surface, border, text and semantic status ramps) that replace hardcoded hex values, the type scale and heading/label patterns, the 4px spacing scale, Tailwind's default breakpoints with the mobile-first progressive-disclosure patterns, theAppShell/TopNav/ sidebar layout skeleton and its widths, class recipes for buttons, form inputs, cards, tables, badges, modals and empty states, Heroicons sizing rules, the four-step z-index scale, the two sanctioned transitions, and the Server-Component-versus-Client-Component decision rules includingserverFetch()and theinitialDatahand-off intouseQuery. - Avatar alt-text convention — The two-mode rule for avatar images:
an avatar rendered next to the user's name is decorative and takes
alt="", while a standalone avatar takesalt="{username}"; a parent element that already carries an accessible name keeps the inner image decorative. Covers thestandaloneprop on the@/components/ui/Avatarprimitive, therole="img"+aria-labeltreatment of the initial-letter fallback disc, how to annotate a hand-rolled<img>, and the regression test that scans the web sources and fails the build on a literalaltstring.