Skip to content

Getting Started

NewLive
Terminal window
pnpm add @florexlabs/ui
pnpm add react react-dom tailwindcss
pnpm add @phosphor-icons/react # optional, recommended

Add to your main CSS file:

@import "tailwindcss";
@import "@florexlabs/ui/florex.css";

If using Tailwind v4 with a bundler, add the source scan so Tailwind detects classes inside the library:

@source "../../node_modules/@florexlabs/ui/dist";
import { Button, Card, Badge, Input } from "@florexlabs/ui";
import { Plus } from "@phosphor-icons/react";
function App() {
return (
<Card variant="hover">
<Input placeholder="Enter your email" />
<Button variant="primary">
<Plus size={16} weight="bold" /> Subscribe
</Button>
<Badge tone="brand">New</Badge>
</Card>
);
}

Let Claude, Cursor, Kiro, and other AI assistants understand and generate code with @florexlabs/ui.

Add to claude_desktop_config.json:

{
"mcpServers": {
"florex-ui": {
"command": "npx",
"args": ["-y", "@florexlabs/ui-mcp"]
}
}
}

Add to .cursor/mcp.json or .kiro/mcp.json:

{
"mcpServers": {
"florex-ui": {
"command": "npx",
"args": ["-y", "@florexlabs/ui-mcp"]
}
}
}
ToolDescription
list_componentsBrowse all 46+ components by category
get_component_docsGet props, examples for any component
generate_component_codeGenerate code for a use case
get_design_tokensGet all CSS variables and values
get_setup_instructionsInstallation guide