Get Started
Components
- Accordion
- Attachment
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Card
- Checkbox
- Code Block
- Collapsible
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Label
- Marker
- Message
- Number Flow
- Pagination
- Popover
- Progress
- Radio Group
- Select
- Slider
- Sonner
- Spinner
- Switch
- Tooltip
- Separator
- Sheet
- Tabs
- Textarea
- Toggle
- Toggle Group
- Trace
AI Elements
Libraries
Utilities
This release moves the theme block inline into globals.css and hardens the CLI against common setup mistakes.
- Inline theme block: One block, no extra CSS file.
- Smarter CLI: Fail-fast on missing Tailwind v4 or
globals.css,src/layout support, smarter prompt. - Trace fix:
motioninstalled automatically.
Inline theme block
npx frakment init now injects the theme block directly into your globals.css, between /* ==== FRAKMENT THEME START ==== */ and /* ==== FRAKMENT THEME END ==== */ markers. No extra theme.css file, no @import statement — the tokens land where Tailwind can see them.
Re-running init replaces the block in place. Custom CSS below the END marker stays untouched.
Smarter CLI
- Fail-fast Tailwind v4 check: If
@import "tailwindcss";is missing,initexits with a clear message instead of writing a broken block. - Fail-fast
globals.csscheck: If noglobals.cssis found,initexits instead of silently skipping the theme. src/layout support:frakment addwrites components tosrc/components/,src/lib/, andsrc/hooks/whencomponents.jsonpoints atsrc/app/globals.css. Binary assets still go topublic/.- Smarter prompt: If
components.jsonexists,initasks before overwriting. Choosing "no" keeps your config but still re-injects the theme block.
Trace fix
The trace component depends on motion for animations. frakment init now installs motion alongside the existing five dependencies, so frakment add trace works out of the box.