feat: initial commit for Paralax creative engineering system

This commit is contained in:
Itsmemarkmalvar
2026-10-12 21:21:33 +08:00
commit 516886dbe7
599 changed files with 227969 additions and 0 deletions

View File

@@ -0,0 +1,185 @@
---
name: design-spec
description: How to author a DESIGN.md file — the machine-readable design-token + human-rationale format that must exist before any UI is built. YAML front-matter token schema (colors, typography, spacing, rounded, components), type system, token references, and canonical section order.
when_to_use: "BEFORE writing any UI code (web or mobile). Read when creating or updating a project's DESIGN.md, defining design tokens, or when a UI task needs a design source-of-truth. Pair with frontend-design (web aesthetics) or mobile-design (mobile)."
allowed-tools: Read, Write, Edit, Glob, Grep
version: 1.0.0
---
# DESIGN.md Specification
> A DESIGN.md is the **single source of truth** for a project's visual language. Create it BEFORE building UI.
> Two layers: machine-readable **design tokens** (YAML front matter) + human-readable **rationale** (markdown body).
> Tokens are normative; prose gives context. Prose may use descriptive names ("Midnight Forest Green") that map to systematic token names (`primary`).
>
> _Format adapted from the [DESIGN.md spec](https://github.com/google-labs-code/design.md) (Google Labs, Apache-2.0). A linter/exporter exists: `npx @google/design.md`._
>
> 📚 **Reference library:** [collection.md](collection.md) — 70+ real-world DESIGN.md files (Airbnb, Stripe, Linear, Vercel, Apple…) to study or adapt as a starting point.
---
## When to produce a DESIGN.md
This is a **hard gate** for UI work (see `.agents/rules/design-rules.md`): before writing components, pages, or styles, a `DESIGN.md` must exist at the project root. If absent, create it first from the brief; if present, read it and conform.
The token block converts cleanly to/from `tokens.json`, Figma variables, and Tailwind theme config — so it is the bridge between design intent and code.
---
## 1. File structure
```
---
<YAML token front matter>
---
# Project Name (optional title)
## Overview
## Colors
## Typography
## Layout
## Elevation & Depth
## Shapes
## Components
## Do's and Don'ts
```
Front matter MUST begin and end with a line containing exactly `---`. Sections use `##` headings, appear in the order above, and may be omitted if irrelevant. Domain-specific sections may be added.
---
## 2. Token schema (YAML front matter)
```yaml
version: alpha # optional
name: Daylight Prestige
description: ... # optional
colors:
<token-name>: "#RRGGBB"
typography:
<token-name>:
fontFamily: Public Sans
fontSize: 48px
fontWeight: 600
lineHeight: 1.1
letterSpacing: -0.02em
rounded:
<scale>: 8px
spacing:
<scale>: 16px # Dimension or unitless number
components:
<component-name>:
backgroundColor: "{colors.primary}"
rounded: "{rounded.md}"
padding: 12px
```
`<scale>` is a named level: `xs sm md lg xl full` (any descriptive key is valid).
---
## 3. Type system
| Type | Format | Example |
|------|--------|---------|
| Color | `#` + hex (sRGB) | `"#1A1C1E"` |
| Dimension | number + unit (`px`/`em`/`rem`) | `48px`, `-0.02em` |
| Token Reference | `{path.to.token}` | `{colors.primary}` |
| Typography | composite object | see §4 |
**Typography properties:** `fontFamily` (string), `fontSize` (Dimension), `fontWeight` (number — bare or quoted are equivalent in YAML), `lineHeight` (Dimension or unitless multiplier — unitless recommended), `letterSpacing` (Dimension), `fontFeature` (string), `fontVariation` (string).
**Token references:** wrapped in `{}` pointing to another value in the tree. Most groups must reference a **primitive** (`{colors.primary-60}`), not a group. Inside `components`, references to **composite** values are allowed (`{typography.label-md}`).
**Component property tokens:** `backgroundColor`, `textColor` (Color); `typography` (Typography); `rounded`, `padding`, `size`, `height`, `width` (Dimension).
**Variants:** define UI states as separate entries with a related key — `button-primary`, `button-primary-hover`.
---
## 4. Sections (canonical order)
| # | Section | Aliases | Purpose |
|---|---------|---------|---------|
| 1 | Overview | Brand & Style | Brand personality, audience, emotional tone. Fallback context when a token isn't defined. |
| 2 | Colors | | Palettes; at least `primary`. Common: primary/secondary/tertiary/neutral. |
| 3 | Typography | | 9–15 levels, each a semantic role (headline/body/label) × size. |
| 4 | Layout | Layout & Spacing | Grid model, spacing scale, containment. |
| 5 | Elevation & Depth | Elevation | Shadows, OR for flat designs the alternative (borders, tonal layers, contrast). |
| 6 | Shapes | | Corner radii, edge treatment, shape language. |
| 7 | Components | | Per-atom guidance: Buttons, Inputs, Cards, Chips, Lists, etc. |
| 8 | Do's and Don'ts | | Guardrails during generation. |
---
## 5. Recommended token names (guidance, not required)
- **Colors:** `primary secondary tertiary neutral surface on-surface error`
- **Typography:** `headline-display headline-lg headline-md body-lg body-md body-sm label-lg label-md label-sm`
- **Rounded:** `none sm md lg xl full`
---
## 6. Consumer behavior for unknown content
The spec is extensible. When encountering content it doesn't define:
| Scenario | Behavior |
|----------|----------|
| Unknown section heading (`## Iconography`) | Preserve; do not error |
| Unknown color token name | Accept if value is valid |
| Unknown typography token name | Accept as valid typography |
| Unknown spacing value | Accept; store as string if not a valid dimension |
| Unknown component property | Accept with warning |
| **Duplicate section heading** (two `## Colors`) | **Error; reject the file** |
---
## 7. Minimal example
```markdown
---
name: Calm Scheduler
colors:
primary: "#1A1C1E"
tertiary: "#B8422E"
neutral: "#F7F5F2"
typography:
h1: { fontFamily: Public Sans, fontSize: 48px, fontWeight: 600, lineHeight: 1.1 }
body-md: { fontFamily: Public Sans, fontSize: 16px, fontWeight: 400, lineHeight: 1.6 }
rounded: { sm: 4px, md: 8px }
spacing: { sm: 8px, md: 16px, lg: 32px }
components:
button-primary:
backgroundColor: "{colors.tertiary}"
rounded: "{rounded.md}"
padding: 12px
---
# Calm Scheduler
## Overview
A calm, professional interface for a healthcare scheduling platform.
Accessibility-first: high contrast, generous touch targets.
## Colors
- **Primary (#1A1C1E):** Deep ink for headlines and core text.
- **Tertiary (#B8422E):** The sole driver for interaction.
- **Neutral (#F7F5F2):** Warm limestone foundation.
## Do's and Don'ts
- Do use the tertiary color only for the single most important action per screen.
- Don't mix rounded and sharp corners in the same view.
- Do maintain WCAG AA contrast (4.5:1 for normal text).
```
---
## Workflow
1. Read the brief and infer the design direction (see `frontend-design` / `mobile-design`).
2. **ALWAYS read [collection.md](collection.md) first** — 70+ real-world DESIGN.md files. Find the 1–2 closest in vibe/industry to the brief, open their `DESIGN.md` on GitHub, and study how they structure tokens. Adapt, never blindly copy.
3. **Write `DESIGN.md` at the project root** — tokens first, then rationale prose.
4. Build UI strictly against the tokens. Descriptive names in prose must map to token names.
5. Keep DESIGN.md in sync when the visual language changes — it stays the source of truth.

View File

@@ -0,0 +1,106 @@
## Collection
### AI & LLM Platforms
- [**Claude**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/claude/DESIGN.md) - Anthropic's AI assistant. Warm terracotta accent, clean editorial layout
- [**Cohere**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/cohere/DESIGN.md) - Enterprise AI platform. Vibrant gradients, data-rich dashboard aesthetic
- [**ElevenLabs**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/elevenlabs/DESIGN.md) - AI voice platform. Dark cinematic UI, audio-waveform aesthetics
- [**Minimax**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/minimax/DESIGN.md) - AI model provider. Bold dark interface with neon accents
- [**Mistral AI**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/mistral.ai/DESIGN.md) - Open-weight LLM provider. French-engineered minimalism, purple-toned
- [**Ollama**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/ollama/DESIGN.md) - Run LLMs locally. Terminal-first, monochrome simplicity
- [**OpenCode AI**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/opencode.ai/DESIGN.md) - AI coding platform. Developer-centric dark theme
- [**Replicate**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/replicate/DESIGN.md) - Run ML models via API. Clean white canvas, code-forward
- [**Runway**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/runwayml/DESIGN.md) - AI creative-tools platform with an editorial film-festival aesthetic — cinematic dark heroes, paper-white reading bands, single proprietary sans, and pure black pill CTAs.
- [**Together AI**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/together.ai/DESIGN.md) - Open-source AI infrastructure. Technical, blueprint-style design
- [**VoltAgent**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/voltagent/DESIGN.md) - AI agent framework. Void-black canvas, emerald accent, terminal-native
- [**xAI**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/x.ai/DESIGN.md) - Elon Musk's AI lab. Stark monochrome, futuristic minimalism
### Developer Tools & IDEs
- [**Cursor**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/cursor/DESIGN.md) - AI-first code editor. Sleek dark interface, gradient accents
- [**Expo**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/expo/DESIGN.md) - React Native platform. Dark theme, tight letter-spacing, code-centric
- [**Lovable**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/lovable/DESIGN.md) - AI full-stack builder. Playful gradients, friendly dev aesthetic
- [**Raycast**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/raycast/DESIGN.md) - Productivity launcher. Sleek dark chrome, vibrant gradient accents
- [**Superhuman**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/superhuman/DESIGN.md) - Fast email client. Premium dark UI, keyboard-first, purple glow
- [**Vercel**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/vercel/DESIGN.md) - Frontend deployment platform. Black and white precision, Geist font
- [**Warp**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/warp/DESIGN.md) - Modern terminal. Dark IDE-like interface, block-based command UI
### Backend, Database & DevOps
- [**ClickHouse**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/clickhouse/DESIGN.md) - Fast analytics database. Yellow-accented, technical documentation style
- [**Composio**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/composio/DESIGN.md) - Tool integration platform. Modern dark with colorful integration icons
- [**HashiCorp**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/hashicorp/DESIGN.md) - Infrastructure automation. Enterprise-clean, black and white
- [**MongoDB**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/mongodb/DESIGN.md) - Document database. Green leaf branding, developer documentation focus
- [**PostHog**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/posthog/DESIGN.md) - Product analytics. Playful hedgehog branding, developer-friendly dark UI
- [**Sanity**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/sanity/DESIGN.md) - Headless content platform with a dark-first editorial marketing surface — 112px display type, IBM Plex Mono technical eyebrows, and a single coral-red accent reserved for the highest-priority CTA.
- [**Sentry**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/sentry/DESIGN.md) - Error monitoring. Dark dashboard, data-dense, pink-purple accent
- [**Supabase**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/supabase/DESIGN.md) - Open-source Firebase alternative. Dark emerald theme, code-first
### Productivity & SaaS
- [**Cal.com**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/cal/DESIGN.md) - Open-source scheduling. Clean neutral UI, developer-oriented simplicity
- [**Intercom**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/intercom/DESIGN.md) - Customer messaging. Friendly blue palette, conversational UI patterns
- [**Linear**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/linear.app/DESIGN.md) - Project management for engineers. Ultra-minimal, precise, purple accent
- [**Mintlify**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/mintlify/DESIGN.md) - Documentation platform. Clean, green-accented, reading-optimized
- [**Notion**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/notion/DESIGN.md) - All-in-one workspace. Warm minimalism, serif headings, soft surfaces
- [**Resend**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/resend/DESIGN.md) - Email API for developers. Minimal dark theme, monospace accents
- [**Zapier**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/zapier/DESIGN.md) - Automation platform. Warm orange, friendly illustration-driven
### Design & Creative Tools
- [**Airtable**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/airtable/DESIGN.md) - Spreadsheet-database hybrid. Colorful, friendly, structured data aesthetic
- [**Clay**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/clay/DESIGN.md) - Creative agency. Organic shapes, soft gradients, art-directed layout
- [**Figma**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/figma/DESIGN.md) - Collaborative design tool. Vibrant multi-color, playful yet professional
- [**Framer**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/framer/DESIGN.md) - Website builder. Bold black and blue, motion-first, design-forward
- [**Miro**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/miro/DESIGN.md) - Visual collaboration. Bright yellow accent, infinite canvas aesthetic
- [**Webflow**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/webflow/DESIGN.md) - Visual web builder. Blue-accented, polished marketing site aesthetic
### Fintech & Crypto
- [**Binance**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/binance/DESIGN.md) - Crypto exchange. Bold Binance Yellow on monochrome, trading-floor urgency
- [**Coinbase**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/coinbase/DESIGN.md) - Crypto exchange. Clean blue identity, trust-focused, institutional feel
- [**Kraken**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/kraken/DESIGN.md) - Crypto trading platform. Purple-accented dark UI, data-dense dashboards
- [**Mastercard**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/mastercard/DESIGN.md) - Global payments network. Warm cream canvas, orbital pill shapes, editorial warmth
- [**Revolut**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/revolut/DESIGN.md) - Digital banking. Sleek dark interface, gradient cards, fintech precision
- [**Stripe**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/stripe/DESIGN.md) - Payment infrastructure. Signature purple gradients, weight-300 elegance
- [**Wise**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/wise/DESIGN.md) - International money transfer. Bright green accent, friendly and clear
### E-commerce & Retail
- [**Airbnb**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/airbnb/DESIGN.md) - Travel marketplace. Warm coral accent, photography-driven, rounded UI
- [**Meta**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/meta/DESIGN.md) - Tech retail store. Photography-first, binary light/dark surfaces, Meta Blue CTAs
- [**Nike**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/nike/DESIGN.md) - Athletic retail. Monochrome UI, massive uppercase Futura, full-bleed photography
- [**Shopify**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/shopify/DESIGN.md) - E-commerce platform. Dark-first cinematic, neon green accent, ultra-light display type
- [**Starbucks**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/starbucks/DESIGN.md) - Coffee retail flagship. Four-tier earth-green system, warm cream canvas, proprietary SoDoSans typography
### Media & Consumer Tech
- [**Apple**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/apple/DESIGN.md) - Consumer electronics. Premium white space, SF Pro, cinematic imagery
- [**HP**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/hp/DESIGN.md) - PC and printer maker. Pure white canvas, HP Electric Blue signal CTA, geometric Forma DJR Micro, blue chevron decorations
- [**IBM**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/ibm/DESIGN.md) - Enterprise technology. Carbon design system, structured blue palette
- [**NVIDIA**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/nvidia/DESIGN.md) - GPU computing. Green-black energy, technical power aesthetic
- [**Pinterest**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/pinterest/DESIGN.md) - Visual discovery platform. Red accent, masonry grid, image-first
- [**PlayStation**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/playstation/DESIGN.md) - Gaming console retail. Three-surface channel layout, cyan hover-scale interaction
- [**SpaceX**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/spacex/DESIGN.md) - Space technology. Stark black and white, full-bleed imagery, futuristic
- [**Spotify**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/spotify/DESIGN.md) - Music streaming. Vibrant green on dark, bold type, album-art-driven
- [**The Verge**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/theverge/DESIGN.md) - Tech editorial media. Acid-mint and ultraviolet accents, Manuka display type
- [**Uber**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/uber/DESIGN.md) - Mobility platform. Bold black and white, tight type, urban energy
- [**Vodafone**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/vodafone/DESIGN.md) - Global telecom brand. Monumental uppercase display, Vodafone Red chapter bands
- [**WIRED**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/wired/DESIGN.md) - Tech magazine. Paper-white broadsheet density, custom serif, ink-blue links
### Automotive
- [**BMW**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/bmw/DESIGN.md) - Luxury automotive. Dark premium surfaces, precise German engineering aesthetic
- [**BMW M**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/bmw-m/DESIGN.md) - Performance automotive. Motorsport-inspired contrast, M color accents, precision-driven layout
- [**Bugatti**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/bugatti/DESIGN.md) - Luxury hypercar. Cinema-black canvas, monochrome austerity, monumental display type
- [**Ferrari**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/ferrari/DESIGN.md) - Luxury automotive. Chiaroscuro black-white editorial, Ferrari Red with extreme sparseness
- [**Lamborghini**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/lamborghini/DESIGN.md) - Luxury automotive. True black cathedral, gold accent, LamboType custom Neo-Grotesk
- [**Renault**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/renault/DESIGN.md) - French automotive. Vivid aurora gradients, NouvelR proprietary typeface, zero-radius buttons
- [**Tesla**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/tesla/DESIGN.md) - Electric vehicles. Radical subtraction, cinematic full-viewport photography, Universal Sans
### Retro Web · DESIGN.md Nostalgia
A Saturday series — DESIGN.md files extracted from the web of the 1990s. Drop one in and tell your AI agent to build a period-accurate vintage UI.
- [**Dell (1996)**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/dell-1996/DESIGN.md) - Catalog-era enterprise web. Literal black page frame, flat color-block "ribbon cards", chunky Helvetica-Black titles over Times Roman body, and hand-cut GIF stickers (NEW! bursts, award seals, beveled product photos).
- [**Nintendo.com (2001)**](https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/nintendo-2001/DESIGN.md) - Y2K "console chrome" web. Brushed-periwinkle beveled metal panels, a halftone-dotted carbon nav glowing amber, outlined Arial-Black box-art wordmarks over circuit-board hero fields, and a pixel Mario welcome bubble.