Skip to content

TheGoat395/Codex-Skills / skills/tailwind-design-tokens

tailwind-design-tokens

Verified

Map semantic tokens into Tailwind utilities.

FileKindSize
SKILL.mdskill md1.7 KB
agents/openai.yamlconfig286 B
references/tailwind-design-tokens-guide.mdmarkdown1.8 KB

references/tailwind-design-tokens-guide.md

View on GitHub
# Tailwind Design Tokens Guide

## Lens

Tailwind is fast, but the taste comes from tokens, constraints, and repeated decisions.

## Rules

- Define CSS variables for role-based colors and surfaces.
- Use repeatable spacing rhythm with deliberate exceptions.
- Centralize button, link, focus, and container patterns.
- Use clamp, minmax, aspect-ratio, and max-width to stabilize layouts.

## Useful Patterns

- globals.css: tokens, base typography, selection, focus, reduced motion.
- cn helper for class composition.
- Component variants for buttons, tags, nav links, and surface panels.
- Container utilities with named widths.

## Avoid

- One-off hex colors everywhere.
- Random spacing values with no rhythm.
- Default Tailwind gray/purple look when the brand needs distinction.

## Acceptance Criteria

- The visual system can be adjusted from tokens.
- Utilities express design decisions consistently.

## Shared scope

For applicable substantial web work, reuse the [shared scoped web contract](../../website-operating-rules/references/scoped-web-contract.md) when available. Preserve current authorization, stack and requested scope; this optional reference does not require another planning or approval cycle.

## Version-aware token consumption

Inspect the installed Tailwind version and existing CSS/configuration entry before changing token mappings. In Tailwind v4, `@theme` namespace variables define utility-facing tokens; ordinary `:root` custom properties do not automatically create matching utilities. Use `@theme inline` when an alias should reference another variable at the utility usage site, and test generated CSS and theme switching. Keep existing version-specific configuration in older projects; this skill does not authorize a Tailwind migration. [Theme variables](https://tailwindcss.com/docs/theme).
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall