liminal-ui
v0.17.0
Published
CLI para liminal-ui
Readme
Liminal UI CLI
Copy-paste component library for React/Next.js with full ownership
Quick Start
# 1. Initialize config
npx liminal-ui init
# 2. Add components (ejemplos)
npx liminal-ui add button
npx liminal-ui add accordion dialog select
npx liminal-ui add tabs alert popoverCommands
| Command | Description |
|---------|-------------|
| liminal init | Setup components.json config file |
| liminal add <name> | Add component to your project |
| liminal add <name> -y | Add + auto-install dependencies |
| liminal add <name> -f | Force overwrite existing files |
| liminal list | Show available components |
| liminal diff <name> | Compare local vs registry version |
Available components
Liminal UI incluye una colección de componentes listos para copiar en tu proyecto (no viven en node_modules). Algunos ejemplos:
accordion,tabs— navegación y contenido colapsablebutton— botones con variantes y tamañosdialog,popover,tooltip— overlays y feedbackinput,textarea,checkbox,switch,label— formularioscard,badge,separator,avatar— layout y displaytoast— notificaciones via wrapper desonner
Puedes ver la lista completa con:
liminal-ui listY cada componente tiene su propia página de documentación en la app de docs de este repo (apps/www), por ejemplo /docs/components/button.
Configuration
Running liminal init creates components.json:
{
"tsx": true,
"rsc": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "slate",
"cssVariables": true
},
"aliases": {
"ui": "@/components/ui",
"lib": "@/lib",
"utils": "@/lib/utils"
}
}Requirements
- Tailwind CSS with CSS variables (
background,foreground,primary, etc.) - TypeScript (optional but recommended)
You have two options for the CSS tokens:
Let
liminal initcopy them for you (recommended)- During
liminal init, answer:¿Copiar CSS de tokens base?→ yes- Choose a preset:
slate,blue,green - Confirm the path for your global CSS (default
app/globals.css)
- The CLI will write a full
@layer base { :root { ... } .dark { ... } }block compatible with shadcn/ui.
- During
Copy tokens manually
- Use the reference file
registry/lib/themes.cssfrom this repo. - Or generate a theme visually with tools like
tweakcnand paste the exported CSS into your global stylesheet.
- Use the reference file
Usage
import { Button } from "@/components/ui/button";
export default function App() {
return (
<div className="space-x-2">
<Button>Default</Button>
<Button variant="destructive">Destructive</Button>
<Button variant="outline">Outline</Button>
</div>
);
}License
MIT
