skills$openclaw/css-to-tailwind
lxgicstudios9.6k

by lxgicstudios

css-to-tailwind – OpenClaw Skill

css-to-tailwind is an OpenClaw Skills integration for coding workflows. Convert CSS files to Tailwind utility classes. Use when migrating from vanilla CSS to Tailwind.

9.6k stars5.2k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namecss-to-tailwind
descriptionConvert CSS files to Tailwind utility classes. Use when migrating from vanilla CSS to Tailwind. OpenClaw Skills integration.
ownerlxgicstudios
repositorylxgicstudios/css-to-tailwind
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lxgicstudios/css-to-tailwind
last updatedFeb 7, 2026

Maintainer

lxgicstudios

lxgicstudios

Maintains css-to-tailwind in the OpenClaw Skills directory.

View GitHub profile
File Explorer
3 files
.
_meta.json
298 B
README.md
247 B
SKILL.md
2.2 KB
SKILL.md

name: css-to-tailwind description: Convert CSS files to Tailwind utility classes. Use when migrating from vanilla CSS to Tailwind.

CSS to Tailwind Converter

Migrating to Tailwind means rewriting hundreds of CSS rules as utility classes. Nobody wants to do that by hand. This tool reads your CSS files and converts them to equivalent Tailwind classes. It handles the tedious conversion so you can focus on the tricky edge cases.

One command. Zero config. Just works.

Quick Start

npx ai-css-to-tailwind styles.css

What It Does

  • Reads CSS files and converts rules to Tailwind utility classes
  • Handles common properties like padding, margin, colors, typography, and flexbox
  • Preserves your class structure so you can map old classes to new utilities
  • Handles media queries by converting to Tailwind responsive prefixes
  • Outputs a mapping file showing old CSS to new Tailwind equivalents

Usage Examples

npx ai-css-to-tailwind styles.css
npx ai-css-to-tailwind src/styles/
npx ai-css-to-tailwind "src/**/*.css"

Best Practices

  • Convert one file at a time - Easier to verify the output
  • Check custom values - Tailwind has specific scales. Custom pixel values might need theme config updates.
  • Keep your old CSS as backup - Don't delete until you've verified everything works

When to Use This

  • Migrating an existing project to Tailwind
  • Converting a component library from CSS to utility classes
  • Learning what Tailwind classes correspond to your CSS

Part of the LXGIC Dev Toolkit

This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.

Find more:

Requirements

No install needed. Just run with npx. Node.js 18+ recommended.

How It Works

Parses your CSS files and maps each property-value pair to the closest Tailwind utility class. AI handles ambiguous conversions and custom values that don't have direct Tailwind equivalents.

License

MIT. Free forever. Use it however you want.

README.md

CSS to Tailwind Converter

Convert CSS files to Tailwind utility classes.

Quick Start

npx ai-css-to-tailwind styles.css

LXGIC Dev Toolkit

MIT License.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

No install needed. Just run with npx. Node.js 18+ recommended.

FAQ

How do I install css-to-tailwind?

Run openclaw add @lxgicstudios/css-to-tailwind in your terminal. This installs css-to-tailwind into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/css-to-tailwind. Review commits and README documentation before installing.