brandmd
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 30 GitHub stars
Code Basarisiz
- network request — Outbound network request in package-lock.json
- os.homedir — User home directory access in scripts/render-carousel-pdf.js
- os.homedir — User home directory access in scripts/render-carousel.js
- os.homedir — User home directory access in scripts/render-cover.js
- process.env — Environment variable access in src/cli.js
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Stop Claude Code/Cursor from guessing UI. Extract any website design system into a Stitch-ready DESIGN.md.
brandmd
Stop Claude Code, Cursor, Gemini CLI, and Google Stitch from guessing your UI. brandmd extracts any website's design system into an LLM-readable DESIGN.md.
AI coding agents generate generic screens when they don't know your colors, fonts, spacing, components, and layout rules. Run one command, drop DESIGN.md in your project root, and your agent has brand context before it writes code. Default extraction runs locally with no API key.
npx brandmd https://stripe.com -o DESIGN.md
Pass multiple URLs to merge brand tokens across pages: npx brandmd https://site.com https://site.com/pricing https://site.com/docs -o DESIGN.md
Outputs to whatever your stack reads:
DESIGN.md(default) — for Claude Code, Cursor, Gemini CLI, Codex, Stitch--json— raw extracted tokens for scripts, MCP servers, and agent toolchains--css— CSS custom properties, drop into any project--tailwind— Tailwind v4@themeblock--html— visual, shareable brand guide
Combine with:
--agent— also writes.cursor/rules/brand.mdcand.claude/skills/brand-style/SKILL.mdso Claude Code and Cursor pick up the brand context automatically. No manual wiring.--dark— also extract dark mode tokens--vision— adds illustration style, photography mood, copywriting voice, and microcopy patterns from a screenshot. RequiresGEMINI_API_KEY(free at aistudio.google.com/apikey).
Works as brand context for Claude Code, Cursor rules, Gemini CLI, Codex, Google Stitch, MCP servers, and any coding agent that reads markdown.
Real examples: Stripe · Linear · GitHub · Vercel · Notion · Cursor · Anthropic · Figma · Supabase · Raycast · +20 more in the gallery
## 2. Color Palette & Roles
- **--color-accents-1** (`#FAFAFA`) — Page background
- **--color-blue-600** (`#0075DE`) — Accent background
- **--color-gray-500** (`#78736F`) — Secondary text
## 3. Typography Rules
**Primary font:** sohne-var
- Headings: 26px, 32px, 48px, 56px
- Body / UI: 14px, 16px, 18px, 22px
## 5. Layout Principles
**Spacing scale:** 2px, 4px, 6px, 8px, 12px, 16px, 24px, 32px
**Base unit:** 4px grid
brandmd is for giving Claude Code, Cursor, Gemini CLI, Codex, and Google Stitch real design context. It extracts a live website's colors, typography, spacing, shadows, component patterns, and layout rules into DESIGN.md, so AI coding agents can build on-brand UI instead of generic screens.
- v0.9:
--agentflag writes Cursor rule + Claude Code skill alongside DESIGN.md. CI switched to npm Trusted Publishing. - v0.8: More accurate primary font detection across display, heading, body, and global text roles.
- v0.7: Cloudflare-protected sites handled by waiting up to 20s for the JS challenge.
- v0.6: Optional
--visionadds illustration style, photography mood, copywriting voice, and microcopy notes. Requires a free Gemini API key.
See CHANGELOG.md for the full history.
Examples
See all 31 DESIGN.md examples in the gallery →
Flagship deep links (DESIGN.md):
- Stitch
- Stripe
- Linear
- GitHub
- Vercel
- Notion
- Cursor
- Anthropic
- Figma
- Supabase
- Raycast
- OpenAI
- Tailwind CSS
Other output formats:
Why
Google Stitch introduced DESIGN.md — a markdown file that encodes your design system in a format LLMs can read. Problem is, nobody wants to write one from scratch, and Stitch only generates them through its web UI.
brandmd does it from the terminal. Point it at any URL, get a DESIGN.md back. Drop it in your project root and your AI tools start generating on-brand UI.
Install
# Run directly (no install)
npx brandmd https://linear.app
# Install globally
npm i -g brandmd
# As an agent skill (Claude Code, Cursor, Gemini CLI, Copilot, Codex, 30+ platforms)
npx skills add yuvrajangadsingh/brandmd
Usage
# DESIGN.md (default)
brandmd https://stripe.com
brandmd https://stripe.com -o DESIGN.md
# Multiple pages (merges tokens)
brandmd https://stripe.com https://stripe.com/pricing https://stripe.com/docs
# Dark mode extraction
brandmd https://github.com --dark
# Vision: capture illustration style, photography mood, copywriting voice
# (CSS can't see these — Gemini reads the screenshot.)
export GEMINI_API_KEY=your-key-here # free: https://aistudio.google.com/apikey
brandmd https://linear.app --vision
# Cloudflare-protected sites: brandmd waits up to 20s for the JS challenge
# to auto-resolve. If your site needs longer, pass --cf-wait-ms 30000.
# If the challenge persists, you'll get a clear error rather than garbage tokens.
# CSS custom properties
brandmd https://vercel.com --css
# Tailwind v4 @theme
brandmd https://linear.app --tailwind
# HTML brand guide (visual, shareable)
brandmd https://github.com --html
# Raw tokens as JSON
brandmd https://stripe.com --json
Output formats
DESIGN.md (default)
Follows Google Stitch's DESIGN.md spec with 5 sections. Drop it in your project root and AI coding agents use it to generate on-brand UI.
CSS custom properties (--css)
:root {
--color-accents-1: #FAFAFA;
--color-blue-600: #0075DE;
--font-primary: "Geist";
--space-1: 4px;
--radius-sm: 4px;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
}
Tailwind v4 (--tailwind)
@import "tailwindcss";
@theme {
--color-primary: #0075DE;
--font-sans: "Geist", system-ui, sans-serif;
--spacing-1: 4px;
--radius-sm: 4px;
}
HTML brand guide (--html)
A self-contained dark-themed HTML page with color swatches, font specimens, spacing visualization, and shadow examples. Open it in a browser or share it with stakeholders.
JSON (--json)
Raw extracted tokens for programmatic use.
Multi-page extraction
Pass multiple URLs to merge tokens from different pages into one DESIGN.md. Each page is normalized so long content pages don't dominate.
brandmd https://stripe.com https://stripe.com/pricing https://stripe.com/docs
Failed pages are skipped with a warning. Mixed domains show a warning.
Dark mode
Extract dark theme tokens as a separate section:
brandmd https://github.com --dark
Adds a "Dark Theme Overrides" section to the DESIGN.md with the dark color palette. Uses prefers-color-scheme: dark via Playwright, so it captures what users actually see in dark mode. Only affects DESIGN.md output (ignored for --css, --tailwind, --html).
What it extracts
- CSS custom properties from
:rootand@mediarules (uses actual variable names when available) - Colors with semantic roles (background, text, accent, border)
- Typography with role-aware Primary detection (display > heading > body), per-role font breakdown, and a full "all detected fonts" frequency list. Skips monospace, default fallbacks, and icon fonts when picking Primary.
- Spacing scale and base grid unit
- Border radii and shadow styles
- Component patterns (buttons, cards, inputs)
How it works
- Renders each page in a headless browser (Playwright)
- Scrolls through to trigger lazy-loaded content
- Dismisses cookie banners and overlays
- Extracts CSS custom properties from
:root(recurses into@mediarules) - Extracts computed styles from every visible element
- Clusters similar colors, identifies the spacing scale
- Merges tokens across pages (normalized per page)
- Outputs in your chosen format
No LLM calls, no API keys, runs entirely on your machine.
Agent skill
brandmd ships as an Agent Skill that works across 30+ platforms including Claude Code, Cursor, VS Code/Copilot, Codex, and Gemini CLI.
npx skills add yuvrajangadsingh/brandmd
Then tell your agent: "extract the design system from https://linear.app"
If brandmd saved you time, consider starring the repo.
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi