# Theme Tokens

> Define a design system as Tailwind v4 @theme tokens (color, type scale, spacing, radius, shadow) with intentional light + dark themes. Use when setting up a project's visual system or making theming consistent.

- **Type:** Skill
- **Install:** `agentstack add skill-m-binimran-dev-pack-theme-tokens`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [m-binimran](https://agentstack.voostack.com/s/m-binimran)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [m-binimran](https://github.com/m-binimran)
- **Source:** https://github.com/m-binimran/dev-pack/tree/main/skills/theme-tokens

## Install

```sh
agentstack add skill-m-binimran-dev-pack-theme-tokens
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# theme-tokens

A real token system makes every component consistent and re-skinnable per client. Tailwind v4 is CSS-first.

## Process
1. **Define tokens in CSS** with Tailwind v4 `@theme`:
   ```css
   @theme {
     --color-brand: oklch(0.62 0.19 256);
     --color-surface: oklch(0.98 0 0);
     --font-display: "…", serif;
     --font-body: "…", sans-serif;
     --radius: 0.75rem;
   }
   ```
2. **Scale, don't hardcode:** a type scale (e.g. fluid `clamp()` steps), a spacing rhythm, 2–3 radii, a small
   shadow set. Components reference tokens, never raw hex/px.
3. **Themes are intentional:** if you support dark, design it — don't auto-invert. Define dark token overrides
   under a `.dark` / `[data-theme=dark]` scope. Don't default to dark mode unless the product wants it.
4. **Semantic aliases:** map raw scales to roles (`--color-success`, `--color-danger`, `--color-muted`) so
   components read by meaning.

## Output
- The `@theme` token block, the semantic aliases, and the dark overrides (if any).
- A note: which tokens are brand-specific (swap per client) vs. structural.

## Guardrails
- No raw hex/px in components once tokens exist — reference the token.
- Light and dark must each feel intentional (anti-template policy), not one auto-generated from the other.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [m-binimran](https://github.com/m-binimran)
- **Source:** [m-binimran/dev-pack](https://github.com/m-binimran/dev-pack)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-m-binimran-dev-pack-theme-tokens
- Seller: https://agentstack.voostack.com/s/m-binimran
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
