IntentCSS
Describe the UI. Get the CSS.
What is IntentCSS?
IntentCSS is a developer-first CLI that converts natural language prompts into Tailwind CSS classes or plain CSS.
Instead of manually building utility classes, you describe the interface you want and IntentCSS generates the styling for you.
BASH
intentcss generate --prompt "large red button"
intentcss generate --prompt "large red button"
Output:
TEXT
rounded-lg bg-red-600 px-6 py-3 text-lg text-white hover:bg-red-700
rounded-lg bg-red-600 px-6 py-3 text-lg text-white hover:bg-red-700
Why IntentCSS?
Modern frontend development often involves repeatedly writing utility classes.
IntentCSS allows developers to focus on intent instead of implementation.
Describe:
- Components
- Layouts
- Behaviors
- Visual styles
And receive:
- Tailwind CSS
- Plain CSS
directly from the terminal.
Features
Natural Language Generation
BASH
intentcss generate --prompt "glass login form"
intentcss generate --prompt "glass login form"
TEXT
flex flex-col gap-4 backdrop-blur-md bg-white/30 border border-white/20 rounded-xl shadow-md p-6 space-y-2
flex flex-col gap-4 backdrop-blur-md bg-white/30 border border-white/20 rounded-xl shadow-md p-6 space-y-2
Typo Correction
IntentCSS automatically corrects common mistakes.
BASH
intentcss generate --prompt "purpl buton"
intentcss generate --prompt "purpl buton"
Output:
TEXT
rounded-lg bg-purple-600 px-4 py-2 text-white hover:bg-purple-700
rounded-lg bg-purple-600 px-4 py-2 text-white hover:bg-purple-700
Confidence Detection
IntentCSS evaluates how confidently it understands prompts.
- High confidence
- Medium confidence
- Low confidence
Multiple Output Targets
Generate Tailwind:
BASH
intentcss generate --prompt "responsive navbar" --target tailwind
intentcss generate --prompt "responsive navbar" --target tailwind
Generate CSS:
BASH
intentcss generate --prompt "responsive navbar" --target css
intentcss generate --prompt "responsive navbar" --target css
Supported Intents
| Intent | Description |
|---|---|
| Button | Buttons and CTAs |
| Card | Cards and content containers |
| Form | Login and signup forms |
| Navbar | Navigation bars |
| Modal | Dialogs and overlays |
| Sidebar | Application sidebars |
| Hero | Marketing hero sections |
| Footer | Website footers |
Open Source
IntentCSS is licensed under Apache 2.0.
GitHub:
TEXT
https://github.com/Cortlet-Org/intentcss
https://github.com/Cortlet-Org/intentcss
npm:
BASH
npm install -g intentcss
npm install -g intentcss
Next Steps
- Getting Started
- Installation
- Supported Intents
- CLI Reference