Brand Identity
Trigger
- Runs when starting a new web UI (Vue/SSG), unifying styles in an existing repository, generating Typst CV/PDF templates, styling technical Mermaid diagrams, or creating project logos, favicons, README hero banners, header backgrounds, and OpenGraph cards.
Inputs
<target-type>: Artifact category (web, typst, mermaid, logo, or assets).<target-path> (optional): Destination file or directory to generate or update.
Workflow
Step 1: Load Single Source of Truth
- Read
../../standards/visual-identity.md and tokens.json before authoring any styling or visual assets. - Never invent ad-hoc HEX or RGB values outside
tokens.json. - Keep
tokens.css strictly separated from application-specific component styles.
Step 2: Apply Target Playbook
Web / Vue / SSG
- Copy
tokens.css verbatim into the project's base stylesheet entry before any application styles. - Wire
--font-sans, --font-mono, font-variant-numeric: tabular-nums, and the three-tier surface ladder (--bg-base, --bg-surface, --bg-elevated) with 1px --border-default framing. - For favicons, logos, hero banners, and OpenGraph cards (
logo / assets), follow the Brand Marks, Logos & Hero Banners playbook below.
Brand Marks, Logos & Hero Banners (logo / assets)
- Shared Signature Aesthetic: Deep obsidian canvas (
#0b0f19) with luminous hairline optical wave / concentric interference geometry in the semantic.brandMark violet gradient (#c4b5fd core → #a78bfa → #c084fc → #8b5cf6 → #7c3aed → #6d28d9 → #5b21b6 → #4c1d95 outer fade). - 1. Favicon (
favicon.svg, 100×100 viewBox): Transparent background, concentric geometric rings or minimal interference mark stepping stroke width (2 → 1) and opacity (1.0 → 0.3) from #c4b5fd core to #4c1d95 perimeter; omit blur filters when targeting 16×16 px clarity. - 2. Project Logo Lockup (Square/Horizontal SVG or Raster): Concentric or interference optical mark paired with wide-tracked
JetBrains Mono or Inter 600 wordmark (#f8fafc), optionally layered over subtle flowing harmonic sine-wave ribbons (opacity: 0.25–0.6). Provide a flat light/print variant (#0f172a + #0369a1) for PDFs/CVs. - 3. README Hero Banner (
~4:1, e.g. 1600×400) & OpenGraph Card (1200×630): Obsidian #0b0f19 canvas, dual-source wave interference arcs or flowing harmonic wave ribbons with subtle luminous highlights at constructive nodes (#c4b5fd / #c084fc), thin 1px horizontal optical axis (rgba(248, 250, 252, 0.25)), and centered clean wide-tracked monospace project title (#f8fafc). - 4. Raster Generation Prompt Rules (when using image generation for banners/headers): Specify
#0b0f19 pure dark ground, ultra-fine luminous violet (#c4b5fd, #8b5cf6, #4c1d95) mathematical wave interference or oscilloscope ribbon curves, subtle optical bloom at intersections, centered minimal wide-tracked monospace or geometric sans lettering, zero cartoon/3D-plastic clutter.
Typst (CV / PDF Documents)
- Generate
theme.typ mapped directly to tokens.json. - Default to the print- and ATS-friendly
semantic.lightPrint token set (#ffffff page, #0f172a primary text, #475569 muted text, #cbd5e1 hairline rules, #0369a1 primary accent). - Provide an optional dark digital-view mapping using
semantic.dark, preserving Inter / system sans + monospace pairings and tabular-nums alignment.
Documentation / Diagrams (Mermaid)
- Emit Mermaid
%%{init: ...}%% directives using theme: 'base' and themeVariables mapped directly to semantic.dark tokens in tokens.json:background: #0b0f19primaryColor: #0f172aprimaryBorderColor: #38bdf8primaryTextColor: #f8fafclineColor: #94a3b8secondaryColor: #111827tertiaryColor: #1e293bfontFamily: typography.fontFamily.sans
Step 3: Verification Checklist
- Verify WCAG 2.1 AA contrast (
>= 4.5:1 body text, >= 3:1 large text and UI controls) across both dark UI and light/print PDF outputs. - Confirm zero hardcoded HEX literals exist in application components (all visual values consume
var(--*) or theme.typ bindings). - Check readability in dark mode and grayscale/print output.
- Confirm
@media (prefers-reduced-motion: reduce) is preserved and respected.
Constraints
- No Ad-Hoc Colors: Never introduce HEX or RGB values outside
tokens.json. - No Unapproved UI Frameworks: Never install heavy UI component frameworks without explicit user approval.
- Immutable Token Stylesheet: Never mutate
tokens.css with application-specific component classes or external @import url(...) network fetches. - Domain-Agnostic Output: Keep all tokens, classes, and templates generic and free of project-specific terminology.