• Docs
  • Components
  • Blocks
  • Admin
CtrlK
Get Started
  • Introduction
  • Setup
  • CLI
  • VS Code Extension
  • Figma Code Connect
  • MCP Server
  • llms.txt
  • Changelog
Foundations
  • Design Tokens
  • Theming & Modes
  • Semantic Colors
  • Spacing
  • Typography
Testing
  • Test Guide
  • Performance Tests
  • Visual Regression
Components
  • Accordion
  • Activity Feed
  • Alert
  • Avatar
  • Badge
  • Breadcrumbs
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command Palette
  • Context Menu
  • Date Picker
  • Dialog
  • Dropdown Menu
  • File Upload
  • Hover Card
  • Input
  • Kbd
  • Label
  • Menubar
  • Metric Card
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Quick Actions
  • Radio
  • Rating
  • Resizable
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Skeleton
  • Slider
  • Spinner
  • Split Button
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree View
Blocks
  • Activity Feed
  • App Shell
  • Authentication Block
  • Benefits Section
  • Cta Section
  • Data Table
  • Empty State
  • Faq Section
  • Feature Grid Section
  • Footer Section
  • Hero Section
  • Kpi Dashboard
  • Kpi Strip
  • Link Card
  • Metric Card
  • Navigation Header
  • Pagination Footer
  • Pricing Table
  • Quick Actions
  • Settings Screen
Resources
  • API Reference
Setup

Introduction

Build dashboards fast with a code-first design system.

Fragment UI is a code-first design system for modern React applications. It's built on React, TypeScript, shadcn/ui and Tailwind CSS, and gives you a consistent set of components, design tokens, and ready-made blocks you can drop into real products.

You can use it like a regular component library – import a button, build a form, ship a dashboard – but under the hood it's structured so that both your team and AI tools can understand it, extend it, and keep it consistent over time.

Fragment UI is built around a few simple ideas:

  • Code-first & Open: You own the source—typed, editable components in your repo.
  • Design Tokens: Colors, spacing, type, i18n as reusable tokens.
  • Blocks & Components: From atoms to full screens—build faster.
  • AI-Ready: Predictable APIs so AI can generate and refactor safely.
Fragment UI is currently in public alpha.
The API and component list can still change. Use it for experiments, internal tools, and early adopters – not yet as a hard dependency in mission-critical production apps.

Code-first & Open

Fragment UI doesn't hide anything behind a magical theme layer or opaque runtime. Components are just plain React + TypeScript files in your repository. Styles are expressed with Tailwind and design tokens. Everything lives in your own version control, next to the rest of your app.

In practice this means a few things:

  • you can open any component and immediately see how it's built,
  • you can refactor and extend components the same way you do with your own code,
  • you're not locked into a black-box npm package that you're afraid to touch.

If you've ever tried to change the behavior of a library component and ended up with wrappers, overrides, and brittle workarounds – this is intentionally the opposite. You own the code; Fragment UI gives you a strong, consistent starting point.

Design Tokens

Underneath the components and blocks sits a comprehensive design token system. Colors, spacing, typography, density, motion and even i18n/RTL helpers are all expressed as tokens.

Those tokens exist in a few forms at once:

  • as CSS variables used directly in your styles,
  • as JSON structures you can consume in code or tooling,
  • as a consistent vocabulary that both humans and AI can rely on.

This shared language has two big effects:

  1. Your UI becomes easier to keep consistent across themes, density modes and platforms.
  2. AI tools can make informed decisions: they can choose the correct error color, the right padding for a button, or an appropriate heading style without inventing new values.

If a model is going to touch your UI, it will always touch tokens. Making those tokens intentional and well-documented is one of the highest-leverage places to invest.

Blocks & Components

Buttons and inputs are essential, but teams ship value through screens: dashboards, settings pages, onboarding flows, navigation shells, and so on.

Fragment UI includes both:

  • low-level components (accessible primitives built on shadcn/ui and Radix), and
  • higher-level blocks and example screens you can use as starting points.

The idea is simple: rather than starting from a blank page every time, you can begin from a sensible dashboard layout, settings page or shell, and adapt it to your product. AI tools can also use these blocks as reference patterns when generating new variants, which leads to more coherent results than building everything from atoms each time.

Over time, your own product screens can be promoted into blocks as well, so the design system grows with your actual use cases, not just with theoretical components.

AI-Ready

Today, a lot of teams want AI tools (Cursor, Copilot, custom agents, internal generators) to help them build UI. The problem is that most codebases are not designed to be readable for models. Names are inconsistent, tokens are primitive-only, and patterns vary from file to file.

Fragment UI is structured so that AI doesn't have to guess.

Components follow predictable patterns and naming. Design tokens carry intent (for example color-status-error-bg instead of just red-6). Layouts and screens can be described with a UI-DSL – a structured representation that's easier for a model to generate and validate than free-form JSX.

That lets AI do things like:

  • generate a new dashboard using existing components and tokens,
  • propose alternative layouts for an existing screen,
  • refactor UI while staying within your design system.

Instead of "AI hallucinating Tailwind", you get AI composing UI from a system that was designed to be read, understood, and extended.

Fragment UI is meant to work well even if you never touch AI – but it's built so that when you do, your system is ready for it.

What's next?

Setup

Install Fragment UI in your React project

Design Tokens

Colors, spacing, typography, and more

Theming & Modes

Configure themes, dark mode, and density

Components

Browse all available UI components

Blocks

Ready-made screen layouts and patterns

AI Integration

Connect to Copilot, Cursor, or MCP setup

Setup