mcpField
T
tailwind

tailwind

github.com/display-design-studioDesign & UI251 installsUpdated 2d ago
Repository

About tailwind

Tailwind is a reference skill for Tailwind CSS v4, organized as topic-specific rules. It covers utility classes, themes, responsive states, custom styles, performance, accessibility, and a workflow for converting Figma variables into theme CSS.

Key features

  1. 01Utility-first model and class composition
  2. 02Theme variables and design tokens
  3. 03Responsive, interaction, and dark-mode variants
  4. 04Custom styles and utilities
  5. 05Build scanning and performance guidance
  6. 06Figma variables to Tailwind theme CSS

Use cases

  1. 01Looking up guidance for Tailwind v4 setup
  2. 02Defining or adjusting theme tokens
  3. 03Adding responsive, focus, or dark-mode styles
  4. 04Generating theme CSS from Figma variables

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/display-design-studio/skills --skill tailwind

After installing, type/tailwindin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

figma-tokens/
breakpoints.css
colors.css
radius-shadows.css
spacing.css
typography.css
rules/
_coverage-map.md
_sections.md
a11y-and-dark-mode.md
core-custom-styles.md
core-responsive-and-states.md
core-theme-variables.md
core-utility-model.md
figma-to-theme-workflow.md
perf-purging-and-scanning.md

Details

From the project README

Tailwind CSS Best Practices

Tailwind CSS v4 guide organized as modular rules. Covers the utility-first model, @theme variables, responsive/state variants, custom styles, performance, accessibility, and the Figma → Tailwind theme workflow for generating design tokens directly from Figma variables.

ROUTING: Which rule file to load

IF setting up Tailwind or understanding how utility classes work: → Read rules/core-utility-model.md

IF working with theme variables (@theme), design tokens, colors, fonts, spacing: → Read rules/core-theme-variables.md

IF working with responsive design, hover/focus states, dark mode, or custom variants: → Read rules/core-responsive-and-states.md

IF adding custom CSS, component classes, base styles, or custom utilities: → Read rules/core-custom-styles.md

IF optimizing build size, purging unused classes, or configuring content detection: → Read rules/perf-purging-and-scanning.md

IF working on accessibility or dark mode strategies: → Read rules/a11y-and-dark-mode.md

IF translating Figma variables/design tokens into Tailwind v4 theme CSS: → Read rules/figma-to-theme-workflow.md + see figma-tokens/ templates

Rule index

TopicDescriptionFile
Sections overviewCategories and reading orderrules/_sections.md
Utility modelUtility-first principles, composing classes, arbitrary valuesrules/core-utility-model.md
Theme variables@theme directive, namespaces, extend/override, inline/staticrules/core-theme-variables.md
Responsive & statesBreakpoints, hover/focus/dark variants, custom variantsrules/core-responsive-and-states.md
Custom styles@layer, @utility, @variant, component classesrules/core-custom-styles.md
PerformanceContent detection, JIT, build optimizationrules/perf-purging-and-scanning.md
A11y & dark modeAccessibility utilities, dark mode patternsrules/a11y-and-dark-mode.md
Figma workflowAgent workflow: Figma variables → Tailwind @theme CSSrules/figma-to-theme-workflow.md

Figma → Tailwind theme workflow

This skill includes a dedicated agent workflow to convert Figma design variables into Tailwind v4 @theme CSS files. The workflow is described in rules/figma-to-theme-workflow.md and uses the annotated templates in figma-tokens/ as output targets.

How to trigger it: paste your Figma CSS variables into chat and ask the agent to generate the Tailwind theme files.

Template files in figma-tokens/:

  • colors.css — --color-* namespace
  • typography.css — --font-*, --text-*, --font-weight-*, --tracking-*, --leading-*
  • spacing.css — --spacing and --spacing-*
  • radius-shadows.css — --radius-*, --shadow-*
  • breakpoints.css — --breakpoint-*

Rule categories by priority

PriorityCategoryImpactPrefix
1Utility model & themeCRITICALcore-
2Responsive & statesHIGHcore-
3Custom stylesHIGHcore-
4Figma workflowHIGH(standalone)
5PerformanceMEDIUM-HIGHperf-
6AccessibilityMEDIUMa11y-

Coverage and maintenance

  • Coverage map: rules/_coverage-map.md
  • Source: https://tailwindcss.com/docs (v4.2)
  • Update when Tailwind releases a new major/minor version with breaking @theme changes.

Comments

Markdown supported