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.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.svg" alt="Measured on agentmods" 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 $0.00042 $0.02469
Sonnet 5 $0.00017 $0.00987
Haiku 4.5 $0.00008 $0.00494

Measured 4d ago against content hash d6e215a7551f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 4d 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. 4d 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 19d ago), licensed MIT. It adds 84 tokens to every session and 4,937 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

landing-page-generator

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

hybridlabor-api/bdb-dev-optimized-agent-skills · 50 tokens

fintech-frontend-engineer

Use when building React applications or components in a fintech context, implementing financial dashboards, transaction histories, payment flows, or data-heavy UIs, working with Tailwind CSS, optimising for SEO (meta tags, structured data, Core Web Vitals), improving page load performance, handling sensitive financial…

pranav8494/team-of-agents · 93 tokens

frontend-code-reviewer

Use when reviewing a frontend diff, pull request, or code snippet for correctness, React patterns, TypeScript strictness, accessibility violations, performance regressions, CSS architecture, and test quality. Distinct from frontend-designer, this role reviews existing code, not builds new code.

pranav8494/team-of-agents · 61 tokens

frontend-designer

Use when building UI components, designing layouts, writing CSS, working with React or other frontend frameworks, improving accessibility, optimizing web performance, or any task involving the visual and interactive layer of a web application.

pranav8494/team-of-agents · 45 tokens

rn-styling

Use when styling React Native + Expo components: choosing between StyleSheet/NativeWind/inline, wiring NativeWind v4 from DESIGN.md tokens, handling Flexbox in RN (column-by-default, not row), safe-area insets, dark mode, responsive design with useWindowDimensions, optimized images via expo-image, performant lists via…

lukedj78/dev-flow · 195 tokens