Brand Profiles
Centralize your design system for consistent AI-generated code.
What are Brand Profiles?
A Brand Profile is a structured collection of your design tokens—colors, typography, spacing, and component styles—that AI tools can reference when generating code.
┌─────────────────────────────────────────┐
│ Brand Profile: Acme Corp │
├─────────────────────────────────────────┤
│ Colors │
│ Primary: #06b6d4 (cyan) │
│ Secondary: #8b5cf6 (purple) │
│ Background: #050505 (void) │
│ │
│ Typography │
│ Headings: Inter, bold │
│ Body: Inter, regular │
│ Code: JetBrains Mono │
│ │
│ Spacing │
│ Base: 4px │
│ Scale: 4, 8, 12, 16, 24, 32, 48, 64 │
│ │
│ Components │
│ Border radius: 8px │
│ Shadows: none (use borders) │
│ Animation: 150ms ease │
└─────────────────────────────────────────┘Benefits
Consistency
Every generated component uses your exact design tokens.
Speed
No need to specify colors/fonts every time you prompt.
Accuracy
AI gets exact hex codes, not “use our brand blue.”
Team Alignment
Everyone’s AI generates matching styles.
Creating a Brand Profile
Navigate to Brands
Go to Dashboard → Brands → New Brand Profile
Basic Information
Name: Acme Corp Design System
Description: Primary brand for web applications
Version: 2.0Define Colors
Add your color palette:
| Name | Value | Usage |
|---|---|---|
| primary | #06b6d4 | Interactive elements |
| secondary | #8b5cf6 | Accents, highlights |
| background | #050505 | Page backgrounds |
| surface | #1a1a1a | Card backgrounds |
| border | #262626 | Borders, dividers |
| text | #ffffff | Primary text |
| text-muted | #a1a1a1 | Secondary text |
Define Typography
Font Family (Sans): Inter
Font Family (Mono): JetBrains Mono
Sizes:
xs: 12px / 16px
sm: 14px / 20px
base: 16px / 24px
lg: 18px / 28px
xl: 20px / 28px
2xl: 24px / 32px
3xl: 30px / 36pxDefine Spacing
Base Unit: 4px
Scale: 1, 2, 3, 4, 6, 8, 12, 16
(Multiplied: 4, 8, 12, 16, 24, 32, 48, 64)Component Defaults
Border Radius:
sm: 4px
md: 8px
lg: 16px
full: 9999px
Transitions:
fast: 150ms ease
normal: 200ms ease
slow: 300ms easeSave Profile
Click Save to create the profile.
Brand Profile Schema
Full JSON schema for brand profiles:
{
"name": "Acme Corp",
"version": "2.0.0",
"colors": {
"primary": {
"value": "#06b6d4",
"description": "Primary brand color, use for CTAs"
},
"secondary": {
"value": "#8b5cf6",
"description": "Accent color for highlights"
},
"background": {
"value": "#050505",
"description": "Page background"
},
"surface": {
"value": "#1a1a1a",
"description": "Elevated surface (cards, modals)"
},
"border": {
"value": "#262626",
"description": "Borders and dividers"
},
"text": {
"value": "#ffffff",
"description": "Primary text"
},
"textMuted": {
"value": "#a1a1a1",
"description": "Secondary/muted text"
},
"error": {
"value": "#ef4444",
"description": "Error states"
},
"success": {
"value": "#22c55e",
"description": "Success states"
},
"warning": {
"value": "#f59e0b",
"description": "Warning states"
}
},
"typography": {
"fontFamily": {
"sans": "Inter, system-ui, sans-serif",
"mono": "JetBrains Mono, monospace"
},
"fontSize": {
"xs": { "size": "12px", "lineHeight": "16px" },
"sm": { "size": "14px", "lineHeight": "20px" },
"base": { "size": "16px", "lineHeight": "24px" },
"lg": { "size": "18px", "lineHeight": "28px" },
"xl": { "size": "20px", "lineHeight": "28px" },
"2xl": { "size": "24px", "lineHeight": "32px" },
"3xl": { "size": "30px", "lineHeight": "36px" }
},
"fontWeight": {
"normal": "400",
"medium": "500",
"semibold": "600",
"bold": "700"
}
},
"spacing": {
"base": "4px",
"scale": {
"1": "4px",
"2": "8px",
"3": "12px",
"4": "16px",
"6": "24px",
"8": "32px",
"12": "48px",
"16": "64px"
}
},
"borderRadius": {
"sm": "4px",
"md": "8px",
"lg": "16px",
"full": "9999px"
},
"shadows": {
"none": "none",
"glow": "0 0 20px rgba(6, 182, 212, 0.3)"
},
"transitions": {
"fast": "150ms ease",
"normal": "200ms ease",
"slow": "300ms ease"
}
}Using Brand Profiles
In MCP
AI tools automatically fetch your brand profile:
You: "Create a button component"
AI: [Fetches brand profile]
"Here's a button using your Acme Corp design system:
- Cyan (#06b6d4) for primary variant
- 8px border radius
- Inter font family
- 150ms hover transition"Explicit Reference
Reference brand in prompts:
You: "Create a card using our brand profile colors"
AI: Uses background #1a1a1a, border #262626, etc.In Rules
Reference brand tokens in rules:
## Button Styling
Use brand profile colors:
- Primary button: `{{brand.colors.primary}}`
- Background: `{{brand.colors.surface}}`
- Border: `{{brand.colors.border}}`Multiple Brands
Manage multiple brand profiles for:
- Different products
- Light/dark themes
- Client projects
- Sub-brands
Viewing Brands
# CLI (requires prism login)
prism brands list
prism brands view <slug>
# REST API
curl https://prism.syntaxure.dev/api/v1/brands \
-H "x-api-key: YOUR_API_KEY"Brand Inheritance
Create variants that inherit from a base:
{
"name": "Acme Corp - Dark",
"extends": "brand_base123",
"overrides": {
"colors": {
"background": "#000000",
"surface": "#0a0a0a"
}
}
}Import/Export
Export to CSS
prism brands export <slug> --format css --output tokens.css:root {
--color-primary: #06b6d4;
--color-secondary: #8b5cf6;
--color-background: #050505;
/* ... */
}Export to Tailwind
prism brands export <slug> --format tailwind --output tailwind.config.jsExport formats: cursor, windsurf, vscode, claude, css, tailwind (default cursor).
module.exports = {
theme: {
extend: {
colors: {
primary: '#06b6d4',
secondary: '#8b5cf6',
background: '#050505',
}
}
}
}TODO(confirm): Figma/Sketch/Style Dictionary export and Figma import are not implemented in the CLI or dashboard code found in this repository. Restore this section only if those flows exist somewhere else.
API Reference
Brands are part of the REST API. Authenticate with the x-api-key header:
# List brands
curl https://prism.syntaxure.dev/api/v1/brands \
-H "x-api-key: YOUR_API_KEY"
# Get one brand
curl https://prism.syntaxure.dev/api/v1/brands/<id> \
-H "x-api-key: YOUR_API_KEY"See the API Reference for the endpoint index.
Best Practices
1. Version Your Brands
{
"name": "Acme Corp",
"version": "2.1.0"
}Track changes and allow rollback.
2. Include Descriptions
{
"colors": {
"primary": {
"value": "#06b6d4",
"description": "Use for CTAs, links, and focus states"
}
}
}AI uses descriptions for better decisions.
3. Define Semantic Names
{
"colors": {
"interactive": "#06b6d4", // Not "cyan"
"decorative": "#8b5cf6", // Not "purple"
"danger": "#ef4444" // Not "red"
}
}Semantic names help AI understand usage.
4. Keep in Sync
- Update brand profile when design system changes
- Use webhooks to sync with Figma
- Version control your brand JSON
Related
- CLI Reference —
prism brandscommands - Creating Rules
- API Reference