converting-css-to-tailwind

converting-css-to-tailwind is a skill for Claude Code from spencerpauly/awesome-cursor-skills. It costs 35 tokens per session (1,087 once invoked), scanned A, original, CC0-1.0.

A method for replacing ordinary CSS rules with Tailwind CSS utility classes placed in HTML or component markup. Tailwind CSS is a styling system made from small, reusable classes.

In plain words
What is it for?
Use it to migrate CSS files in HTML, JSX, TSX, Vue, or Svelte projects to Tailwind classes and remove CSS rules after they are converted.
Why use it?
It helps move styling into the markup while keeping the page's appearance unchanged. It also covers responsive rules, states, custom properties, and animations.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to migrate CSS files in HTML, JSX, TSX, Vue, or Svelte projects to Tailwind classes and remove CSS rules after they are converted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spencerpauly/awesome-cursor-skills/converting-css-to-tailwind
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 spencerpauly/awesome-cursor-skills --skill converting-css-to-tailwind
Clone the repo
git clone --depth 1 https://github.com/spencerpauly/awesome-cursor-skills

Made for: Claude Code.

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 converting-css-to-tailwind

README.md
[![agentmods](https://agentmods.dev/badge/skills/spencerpauly/awesome-cursor-skills/converting-css-to-tailwind/github.svg)](https://agentmods.dev/skills/spencerpauly/awesome-cursor-skills/converting-css-to-tailwind)
Your own site
<a href="https://agentmods.dev/skills/spencerpauly/awesome-cursor-skills/converting-css-to-tailwind"><img src="https://agentmods.dev/badge/skills/spencerpauly/awesome-cursor-skills/converting-css-to-tailwind/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for converting-css-to-tailwind

Your own site · 80×15
<a href="https://agentmods.dev/skills/spencerpauly/awesome-cursor-skills/converting-css-to-tailwind"><img src="https://agentmods.dev/badge/skills/spencerpauly/awesome-cursor-skills/converting-css-to-tailwind.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,087 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00035 $0.01087
Opus 5 $0.00017 $0.00544
Sonnet 5 $0.00007 $0.00217
Haiku 4.5 $0.00003 $0.00109

Measured 11d ago against content hash 58dc09303402, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

converting-css-to-tailwind 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 11d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

resources/converting-css-to-tailwind/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Converting CSS to Tailwind

Migrate plain CSS files to Tailwind utility classes applied directly in markup.

Workflow

  1. Read the CSS file and inventory every rule
  2. Find the corresponding markup (HTML, JSX, TSX, Vue, Svelte) that references each selector
  3. Convert each rule using the mapping below
  4. Delete the CSS rule once all its properties are expressed as utilities
  5. Remove the CSS file (or import) once it's empty
  6. Verify the page looks identical — check for visual regressions

Conversion Reference

Layout & Box Model

CSS Tailwind
display: flex flex
display: grid grid
display: none hidden
position: relative relative
position: absolute absolute
justify-content: center justify-center
align-items: center items-center
gap: 16px gap-4
width: 100% w-full
max-width: 768px max-w-3xl
margin: 0 auto mx-auto
padding: 16px p-4
overflow: hidden overflow-hidden

Typography

CSS Tailwind
font-size: 14px text-sm
font-weight: 700 font-bold
line-height: 1.5 leading-normal
text-align: center text-center
text-transform: uppercase uppercase
color: #333 text-[#333] or a theme color
letter-spacing: 0.05em tracking-wide

Backgrounds & Borders

CSS Tailwind
background-color: #f5f5f5 bg-[#f5f5f5] or bg-neutral-100
border: 1px solid #e5e7eb border border-gray-200
border-radius: 8px rounded-lg
box-shadow: 0 1px 3px ... shadow-sm

Responsive — Media Queries

@media (min-width: 768px) { .card { flex-direction: row; } }

<div class="flex-col md:flex-row">

Map breakpoints: sm: (640), md: (768), lg: (1024), xl: (1280), 2xl: (1536)

Pseudo-classes & States

.btn:hover { background-color: #1d4ed8; }

<button class="hover:bg-blue-700">

Read the full file on GitHub · 114 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. 11d ago First seen · 114 lines · 35 tokens per session scan A 58dc09303402

Subscribe to this mod's changes

converting-css-to-tailwind is a skill published in the GitHub repository spencerpauly/awesome-cursor-skills (770 stars, last pushed 1mo ago), licensed CC0-1.0. It adds 35 tokens to every session and 1,087 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

waitlist-page

A simple waitlist page for collecting email addresses from people interested in a new product or early-access release.

nexu-io/html-anything · 25 tokens

animation-principles

Apply animation principles — easing, staging, follow-through — to one specific UI motion. Use when tuning how an animation feels. For product-wide duration and easing tokens use motion-system (design-systems); for a full interaction spec use micro-interaction-spec.

Owl-Listener/designer-skills · 59 tokens