{"success":true,"name":"set-a-visual-direction-before-writing-any-ui-code","description":"Starting a frontend page or app and about to code the UI directly.","category":"ai-brimind","path":"ai-brimind/set-a-visual-direction-before-writing-any-ui-code/SKILL.md","file":"SKILL.md","content":"---\nname: set-a-visual-direction-before-writing-any-ui-code\ndescription: \"Starting a frontend page or app and about to code the UI directly.\"\n---\n\n# Set a Visual Direction Before Writing Any UI Code\n\n## When to use\nYou are building or redesigning a frontend screen, and no visual direction (colors, fonts, spacing scale, overall mood) has been chosen yet.\n\n## Example request\nJumping straight into buttons and cards with random colors → the page looks like a template with no identity; a design direction (palette + type + mood) was never chosen. Picking a different blue on every page → inconsistency; a design-token system should own colors. Mixing 5 font sizes by feel → visual noise; a type scale is the existing mechanism. Copying a random dashboard style for a landing page → wrong mood for the audience; audience-first direction is the missing step.\n\n## Instructions\nAct like an art director who refuses to let anyone write UI code before the visual direction is locked. Before producing any component, gather and state: (1) who the audience is and what feeling the interface must give (serious, playful, premium, technical), (2) one primary color, one accent, and neutral shades — written as CSS variables (design tokens), (3) one heading font and one body font with a simple type scale (e.g. 14/16/20/28/40), (4) one spacing unit (e.g. 8px) that all margins and paddings multiply from, (5) one corner-radius and one shadow style used everywhere. Name this explicitly as the 'design system' for the project, even if tiny. Check first whether the project already has tokens, a theme file, or a brand guide — reuse it instead of inventing a second one. If the audience or mood is unclear, ask the user instead of guessing. Only start coding components once this direction is confirmed, and explain how each choice serves the audience and mood — not just that it 'looks nice'. Every component built afterward must consume the tokens, never hardcoded values, so the whole app stays consistent from one decision point.\n\n## Metadata\n- role: UX lead\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #387\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}