Finance

brand-compile - Claude MCP Skill

Compile brand.yaml into CSS custom properties, Tailwind 4 theme, and TypeScript tokens. Run after modifying brand.yaml or when setting up a new project.

SEO Guide: Enhance your AI agent with the brand-compile tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to compile brand.yaml into css custom properties, tailwind 4 theme, and typescript tokens. run after mo... Download and configure this skill to unlock new capabilities for your AI workflow.

🌟1 stars • 1 forks
📥0 downloads

Documentation

SKILL.md
# /brand-compile

Compile brand tokens from `brand.yaml` into consumable formats.

## What This Does

Reads `brand.yaml` from project root and produces:
- `tokens.css` — CSS custom properties (`:root` + `.dark`)
- `theme.css` — Tailwind 4 `@theme inline` with OKLCH values
- `tokens.ts` — TypeScript const export for Satori templates and Remotion

## Process

1. Locate `brand.yaml` in the current project root
2. If no `brand.yaml` exists, check for `brand-profile.yaml` + `design-tokens.json` and offer to migrate:
   ```bash
   node ~/Development/brand-kit/dist/src/cli.js migrate --profile brand-profile.yaml --tokens design-tokens.json --out brand.yaml
   ```
3. Validate the schema:
   ```bash
   node ~/Development/brand-kit/dist/src/cli.js validate brand.yaml
   ```
4. Compile tokens:
   ```bash
   node ~/Development/brand-kit/dist/src/cli.js compile --out ./src/styles
   ```
5. Verify Tailwind `@theme` import exists in the project's CSS entry point (e.g., `globals.css`)
6. Run typecheck if TypeScript project: `pnpm typecheck` or `npx tsc --noEmit`

## Output

Default output directory: `./brand-output/`
Override with `--out ./src/styles` to place tokens where your project expects them.

```
brand-output/
  tokens.css    # CSS custom properties
  theme.css     # Tailwind 4 @theme inline
  tokens.ts     # TypeScript const export
```

## Format Selection

- `--format css` — Only CSS custom properties
- `--format tailwind` — Only Tailwind 4 theme
- `--format ts` — Only TypeScript tokens
- `--format all` — All three (default)

## Integration

After compiling, import in your project:

**Tailwind 4 (recommended):**
```css
/* globals.css */
@import "tailwindcss";
@import "./theme.css";
```

**Plain CSS:**
```css
@import "./tokens.css";
```

**TypeScript (Satori/Remotion):**
```typescript
import { brand } from "./tokens.js";
```

## Related Skills

- `/brand-init` — Create brand.yaml from scratch
- `/brand-assets` — Generate OG cards and social images
- `/og-card` — Legacy OG card generation (superseded by brand-assets)

Signals

Avg rating0.0
Reviews0
Favorites0

Information

Repository
phrazzld/claude-config
Author
phrazzld
Last Sync
3/2/2026
Repo Updated
3/1/2026
Created
2/17/2026

Reviews (0)

No reviews yet. Be the first to review this skill!

Related Skills

firecrawl-build-search

Integrate Firecrawl `/search` into product code and agent workflows. Use when an app needs discovery before extraction, when the feature starts with a query instead of a URL, or when the system should search the web and optionally hydrate result content.

35092

firecrawl-build-onboarding

Get Firecrawl credentials and SDK setup into a project. Use when an application needs `FIRECRAWL_API_KEY`, when an agent should add Firecrawl to `.env`, when the user wants to authenticate Firecrawl for app code, or when choosing the first SDK and docs for a new Firecrawl integration. This skill includes its own browser auth flow, so it does not depend on the website onboarding skill.

35092

firecrawl-build

Integrate Firecrawl into application code whenever a product, agent, or workflow needs web data inside the app — web search, live search results, page scraping, structured extraction, or browser interaction. Use when building any feature that needs data from the web in code, even if the user does not mention Firecrawl explicitly and only describes wanting web data, website content, search, scraping, or interaction in an application. Trigger for Firecrawl requests, "fire girl" shorthand, and generic app-level web-data needs that should map to `/scrape`, `/search`, or `/interact`. Do not use this skill for one-off terminal-only web tasks during the current session; use `firecrawl/cli` for those.

35092

firecrawl-build-interact

Integrate Firecrawl `/interact` into product code for dynamic pages and browser actions after scraping. Use when a feature needs clicks, form fills, pagination, authentication-aware flows, or other multi-step interactions that plain `/scrape` cannot complete.

35092

Related Guides