vanilla-extract

vanilla-extract is a skill for Claude Code, Codex from punkadillo/figma-code-composer. It costs 84 tokens per session (4,937 once invoked), scanned A, original, MIT.

A guide to Vanilla Extract, a TypeScript-based way to write CSS for React components, including themes, reusable styles, and Vite setup.

In plain words
What is it for?
Setting up Vanilla Extract, styling React components, creating themes and variants, defining global styles, and building typed style utilities.
Why use it?
It helps keep component styling typed, organized, and generated ahead of time rather than assembled in the browser.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Setting up Vanilla Extract, styling React components, creating themes and variants, defining global styles, and building typed style utilities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/punkadillo/figma-code-composer/vanilla-extract
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add punkadillo/figma-code-composer --skill vanilla-extract
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vanilla-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/vanilla-extract/github.svg)](https://agentmods.dev/skills/punkadillo/figma-code-composer/vanilla-extract)
Your own site
<a href="https://agentmods.dev/skills/punkadillo/figma-code-composer/vanilla-extract"><img src="https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/vanilla-extract/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vanilla-extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/punkadillo/figma-code-composer/vanilla-extract"><img src="https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/vanilla-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,937 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.04937
Opus 5.5 $0.00034 $0.01975
Sonnet 5.5 $0.00017 $0.00987
Haiku 4.5 $0.00008 $0.00494

Measured 2mo ago against content hash d6e215a7551f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vanilla-extract scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.figma-pipeline/skills/vanilla-extract/SKILL.md · 588 lines

How it starts

The opening of the file, as written. The whole thing — 588 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vanilla Extract for React Components

Use this skill when implementing or refactoring React component styling with Vanilla Extract. It emphasizes zero-runtime CSS generation, strong TypeScript ergonomics, scalable variants, and safe theming patterns.

When to Apply

Use this skill when tasks include:

  • Setting up Vanilla Extract with Vite + React
  • Creating component styles in .css.ts files
  • Building typed variant systems (styleVariants, recipes)
  • Implementing design tokens and themes (createTheme, createThemeContract)
  • Runtime variable updates (@vanilla-extract/dynamic)
  • Global/reset styles (globalStyle, createGlobalTheme)
  • Utility-first typed atoms with optional @vanilla-extract/sprinkles

Core Mental Model

Vanilla Extract generates static CSS at build time from TypeScript style definitions.

  • style(...) => one scoped class
  • style([ ... ]) => composed class list, but still selector-safe inside Vanilla Extract
  • Theme helpers create typed CSS variable contracts, then classes/selectors assign values
  • Runtime theming via @vanilla-extract/dynamic only assigns values to pre-defined vars; it does not generate new CSS rules

Setup (React + Vite)

  1. Install base package:
    • @vanilla-extract/css
  2. Install Vite integration:
    • @vanilla-extract/vite-plugin (dev dependency)
  3. Add plugin in vite.config.ts:
    • vanillaExtractPlugin()

Vite plugin identifiers

Choose identifier strategy depending on environment:

  • short: compact hashes (smaller output)
  • debug: human-readable class/var names in development
  • custom function: fully custom naming based on { hash, filePath, debugId, packageName }

Use debug during active development and switch to short for production when needed.

File Conventions

  • Put styles in *.css.ts
  • Export class names and theme contracts from style modules
  • Keep component logic in *.tsx and import classes/contracts from style files
  • Co-locate styles next to components when component-specific; centralize tokens/themes in shared modules

Read the full file on GitHub · 588 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 588 lines · 84 tokens per session scan A d6e215a7551f

Subscribe to this mod's changes

vanilla-extract is a skill published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 4,937 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

vanilla-extract compared with skills from other repositories

vanilla-extract next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vanilla-extractpunkadillo/figma-code-composerSkill32mo agoMITA84Claude Code, Codex
moai-design-toolsmodu-ai/moai-adkSkill1.3k4d agoApache-2.0A45Claude Code
landing-page-generatorhybridlabor-api/bdb-dev-optimized-agent-skillsSkill65d agoApache-2.0A50Claude Code, Codex
rn-stylinglukedj78/dev-flowSkill5yesterdayMITA195Claude Code
fintech-frontend-engineerpranav8494/team-of-agentsSkill71mo agoMITA41Claude Code
web-artifacts-builderJasonxzWen/harness-hubSkill693mo agononeA43Claude Code, Codex
artifacts-buildersaajunaid/caddis-pluginSkill0yesterdayMITA40Claude Code, Codex