From brand-guide
Two-mode skill for brand consistency in frontend development. Mode 1 (Builder): interactively helps users create or refine a structured brand guide through visual previews and guided decisions. Mode 2 (Enforcer): reads an existing brand guide and strictly enforces it when building any frontend. Use this skill whenever the user mentions brand guide, brand identity, brand consistency, design system, style guide, design tokens, or wants to ensure visual consistency across frontends. Also trigger when the user has a brand-guide.json file in their uploads or references one. This skill should be used IN COMBINATION with the frontend-design skill — brand-guide constrains the creative choices that frontend-design would otherwise freestyle.
How this skill is triggered — by the user, by Claude, or both
Slash command
/brand-guide:brand-guideThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill ensures frontend work stays visually consistent with a brand identity. It operates in two modes that work together: **Builder** creates the guide, **Enforcer** applies it.
This skill ensures frontend work stays visually consistent with a brand identity. It operates in two modes that work together: Builder creates the guide, Enforcer applies it.
Determine which mode to enter based on context:
Enter Builder mode when:
brand-guide.json exists yet and the user wants to build frontends with consistencyEnter Enforcer mode when:
brand-guide.json file exists (in uploads or referenced by user)Both modes in one session:
The Builder walks the user through creating a comprehensive brand guide. The output is a brand-guide.json file the Enforcer can consume, plus a visual preview artifact.
Before starting the interview, read references/builder-interview.md for the full guided flow.
Show, don't just ask. For every design decision (colors, fonts, spacing), generate a visual HTML preview artifact so the user can see the options. Never ask "what color do you want?" without showing curated choices.
Start from what they have. If the user uploads a logo, screenshot, or existing site, extract colors and visual patterns from it first. Meet them where they are.
Opinionated defaults. When the user is unsure, make a strong recommendation and explain why. "I'd go with this because..." is better than "what would you prefer?"
Build incrementally. After each decision, regenerate the preview artifact so the user sees their guide taking shape in real time.
Output a machine-readable file. The final output is brand-guide.json following the schema in templates/brand-guide-schema.json. Also generate a polished visual Brand Guide artifact (HTML) as a human-friendly reference.
The full flow is in references/builder-interview.md, but at a high level:
brand-guide.json file.Two deliverables:
brand-guide.json — Machine-readable. Follows the schema in templates/brand-guide-schema.json. This is what the Enforcer reads.
Brand Guide Preview — A polished HTML artifact that visually displays the entire brand system: color swatches, typography samples, component examples, spacing visualization. This is the human-friendly reference the user can share with their team.
The Enforcer reads a brand-guide.json and applies it strictly to all frontend output.
Before generating any frontend code, read references/css-generation.md for how to translate the brand guide into code.
These rules are absolute. The brand guide is law.
Colors are locked. Use ONLY colors defined in the brand guide. Every color in the output must trace back to a brand token. No eyeballed hex values. No "close enough."
Typography is locked. Use ONLY the fonts specified. Apply the defined type scale. Import fonts from Google Fonts or the CDN specified in the guide.
Spacing follows the scale. All margin, padding, and gap values must use the brand's spacing scale. No arbitrary pixel values.
Border radii follow the system. Use the defined radius tokens. Don't round-trip between the guide's "md" radius and some other value.
Shadows and depth follow the guide. If the guide defines shadow tokens, use them. Don't invent new shadows.
Component patterns are respected. If the guide specifies "buttons are pill-shaped with no shadow," don't make square buttons with shadows.
Motion follows the philosophy. Use the defined durations and easings. If the guide says "subtle and purposeful," don't add bouncy entrance animations.
Don'ts are hard stops. If the guide says "never use gradients on text," that means never, not "except when it would look cool."
Creative freedom exists within constraints. Layout, content structure, illustration choices, and information hierarchy are still creative decisions — but visual styling is governed by the guide.
When in doubt, reference the guide. If a situation arises not covered by the guide, choose the option most consistent with the guide's overall personality and patterns.
Every time you build a frontend with a brand guide present:
Parse the brand guide. Read brand-guide.json and internalize every token.
Generate CSS custom properties. Start every stylesheet or <style> block with :root { } variables derived from the guide. Follow the pattern in references/css-generation.md.
Import fonts. Add the correct Google Fonts <link> or @import for all specified typefaces.
Build the UI. Make all creative and layout decisions, but constrain every visual property to brand tokens.
Self-audit before delivering. Before presenting the output, scan for:
This skill works WITH the frontend-design skill, not against it. Think of it this way:
frontend-design provides the creative methodology, layout thinking, and implementation qualitybrand-guide constrains the visual palette so that creativity happens within guardrailsWhen both skills are active, the frontend-design skill's instruction to "choose bold, unexpected aesthetics" is tempered by: "bold and unexpected within the brand's defined system." A brand guide doesn't mean boring — it means consistently on-brand.
If the user pastes existing HTML/CSS or shares a URL and asks "does this follow my brand?" or "audit this against my brand guide":
| File | When to Read | Purpose |
|---|---|---|
references/builder-interview.md | Entering Builder mode | Full guided interview flow with visual preview instructions |
references/css-generation.md | Entering Enforcer mode | How to translate brand-guide.json into CSS custom properties |
templates/brand-guide-schema.json | Builder mode (output) | The JSON schema the brand guide must follow |
templates/example-guide.json | Builder mode (reference) | A complete filled-out example for reference |
npx claudepluginhub bmorri13/bmosan-skills --plugin brand-guideGenerates BRAND-IDENTITY.md file defining colors, typography, spacing, components, accessibility, and responsive design for project roots. Guides via discovery questions or uses user-provided tokens.
Defines brand guidelines, design tokens, technology choices, and voice/tone to ensure consistency in UI components, styling, and copy.
Applies brand colors, typography, and spacing via CSS variables to UI elements like buttons, cards, headers, documents, and presentations. Useful for consistent brand styling.