tailwind

Tailwind CSS v4 best-practices skill covering utility-first patterns, @theme variables, responsive design, dark mode, custom styles, performance, accessibility, and a Figma-to-Tailwind theme generation workflow. Use when the user mentions Tailwind, tailwindcss, @theme, utility classes, Tailwind config, Figma design tokens, or asks to build, configure, audit, or migrate a Tailwind CSS project (including v3 to v4 migrations).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tailwind" with this command: npx skills add display-design-studio/skills/display-design-studio-skills-tailwind

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tailwind

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

shopify-development

No summary provided by upstream source.

Repository SourceNeeds Review