OpenParable
Skip to content
← Back to skills

CSS To Tailwind

Development
css-to-tailwind

CSS To Tailwind is an Agent Skill for development published in the videojs/v10 repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Migrate vanilla CSS, CSS modules, SCSS, or styled-component styles to Tailwind v4 utilities. Prefer @theme-backed tokens and semantic utilities; document arbitrary values and parity gaps. For audits, load review/workflow.md. Triggers: "CSS to Tailwind", "migrate to Tailwind", "tailwind migration", "styled-components to Tailwind", "SCSS to Tailwind", "review Tailwind classes", "tailwind parity".

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/videojs/v10/blob/HEAD/.claude/skills/css-to-tailwind/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/css-to-tailwind, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

CSS to Tailwind

Guidance for converting legacy CSS to Tailwind v4 class strings while preserving behavior and readability.

Tailwind v4 in this workspace

Theme and shared animation tokens are declared in CSS (@theme, keyed custom properties consumed by utilities). Apps use @import "tailwindcss"; packages/skins layers shared @keyframes / @property / @theme in shared/tailwind.css. When a pattern repeats across components, prefer @utility or @custom-variant in CSS (see site / apps/sandbox styles) rather than proliferating arbitrary values in TS presets.

See references/migration.md for v4-focused rules.

When to use

  • Migrating stylesheet-based styles to Tailwind utilities
  • Ensuring packages/skins CSS and tailwind component modules stay visually and behaviorally aligned (parallel css/ and tailwind/ trees)
  • Auditing Tailwind output for unnecessary arbitrary values or missing theme mappings

Reference

FileContents
references/migration.mdRules, priorities, migration report shape

Review

For checking a migration against these rules, load review/workflow.md.

FileContents
review/workflow.mdReview process
review/checklist.mdQuick single-pass checklist

Related skills

NeedUse
Headless UI + skin hookscomponent skill