Install
$ agentstack add skill-marchatton-agent-skills-generating-tailwind-brand-config ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Generating Tailwind Brand Config
Quick Start
Default inputs (source of truth):
docs/02-guidelines/inspiration/brand_guidelines.mddocs/02-guidelines/inspiration/design_tokens.jsondocs/02-guidelines/inspiration/prompt_library.json
Outputs (when executing this skill):
tokens.css(CSS variables for light/dark)tailwind.preset.ts(shared Tailwind preset using CSS variables)tailwind.config.tssnippets for:- web app (product UI)
- website (marketing)
component-recipes.md(Tailwind class recipes + interaction states)
See:
references/output-contract.mdreferences/templates.mdreferences/semantic-token-derivation.md
Optional helper:
scripts/generate_pack.tscan generatetokens.css+tailwind.preset.tsdirectly fromdesign_tokens.json.
Need-to-Know Questions (Ask If Missing)
Ask at most 4. Reply format: 1a 2a 3a 4a or defaults.
1) Tailwind setup target?
- a) Config-first preset (
tailwind.preset.ts+tokens.css) (Recommended) - b) Tailwind v4 CSS-first only (
@themein CSS) - c) Not sure, use recommended
2) Dark mode strategy?
- a) Class-based (
.dark) (Recommended) - b) Media-based (
prefers-color-scheme) - c) Both (class wins)
3) Output layout?
- a) Shared preset + per-app wrapper configs (Recommended)
- b) Two fully separate presets (app vs marketing)
- c) Inline per app (no shared preset)
4) Status colors (error/success/warn)?
- a) Keep Tailwind defaults (Recommended)
- b) Derive brand status tokens (requires product decision)
If the user says “proceed with defaults”, proceed with 1a 2a 3a 4a.
Principles (Do Not Violate)
- Source of truth is the docs inputs. Do not invent a new palette.
- Prefer Tailwind defaults. Add new names; don’t override built-in scales unless required.
- Accessibility is part of the token system: define foreground (“on-*”) colors with contrast.
- Web app UI is calmer/simpler than marketing: keep motion minimal by default.
Workflow (Execution Order)
1) Define primitives and rules (App + Website)
Use:
interface-designto define:- app primitives: surface hierarchy, borders, focus treatment, density
- marketing primitives: typography scale, section spacing, hero posture
baseline-uito prevent generic output and enforce constraints
2) Parse Brand DNA inputs
- Load
design_tokens.jsonand extractcomposite_tokensas the base tokens. - Treat
composite_tokens.colour.themes.darkas the dark override for colors. - Use
brand_guidelines.mdas intent checks (don’t contradict it). - Use
prompt_library.jsonto keep naming/voice consistent when writing docs and recipes.
3) Derive semantic tokens (minimal set)
- Convert base hex colors to RGB triplets and write CSS variables.
- Define
--*-foregroundtokens (text/icon color on filled backgrounds) by contrast checks. - Define
--border,--ring, and a small surface set (--card,--muted) as derived blends. - Do not create new hues. Derived tokens must be blends of existing roles.
Details: references/semantic-token-derivation.md.
4) Generate Tailwind preset + tokens CSS
Use tailwind-css-patterns for best-practice Tailwind setup.
Use templates in references/templates.md. Ensure:
darkMode: ["class"](unless user picked otherwise)colorsmap to CSS variables with alpha support- fonts map to Brand DNA typography stacks
- radius/shadows/motion are added under new keys (don’t override Tailwind defaults)
5) Produce component recipes (not full components)
Use:
composition-patternsto propose scalable component variants (avoid boolean prop explosions)interaction-designfor hover/focus/active/disabled patterns and timingfixing-accessibilityto ensure keyboard/focus behavior is covered
Output component-recipes.md with recipes for:
- Button (primary/secondary/ghost; use Tailwind defaults for destructive)
- Input/Textarea/Select
- Card/Panel
- Badge/Chip
- Modal/Popover base styling
- Focus ring and reduced-motion rules
6) Marketing site layer (optional but recommended)
Use:
frontend-designto define marketing composition rules that still use the same tokensfixing-metadatato propose theme-color and OG defaults derived from tokens (do not implement unless asked)
Done Definition
This skill is done when it produces the outputs in references/output-contract.md and the preset can be dropped into a Tailwind project with light/dark mode working.
Verification Checklist
- Tokens:
:rootand.darkblocks exist--primary-foregroundetc meet AA for normal text where used- Tailwind preset:
- No accidental overrides of default spacing/typography scales
- Colors support alpha (
rgb(var(--token) / )) - Recipes:
- Focus ring always visible
- Motion respects
prefers-reduced-motion - No hover-only interactions without keyboard equivalent
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: marchatton
- Source: marchatton/agent-skills
- License: MIT
- Homepage: https://www.marchatton.com
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.