Base UI Components with Fragments: Accessible Styling and Metadata at Scale
How Fragments builds on Base UI components and adds accessible styling, design tokens, and metadata for larger-scale design system workflows.
This article covers the reusable @usefragments/* packages. Fragments desktop is the main app for directing frontend work; you can use the packages independently.
Teams often want the flexibility of headless primitives but still need a production-ready layer for styling, documentation, and implementation guidance. Fragments builds on Base UI components and adds that system layer so teams can scale without rebuilding the same patterns repeatedly.
Why Build on Base UI Components
Headless primitives are great for flexibility, but they do not solve everything:
- consistent styling and theme tokens
- usage guidance and examples
- AI-readable metadata and tooling workflows
Fragments keeps the benefits of Base UI while adding the pieces most product teams need day to day.
What Fragments Adds on Top
- accessible React component docs with examples and props
- design tokens
- usage guidance, so people and coding agents reach for the right component
- checks for design drift in the Fragments desktop app
This combination helps teams move faster without losing consistency as the system grows.
FAQ
Is Fragments a replacement for Base UI?
Fragments is built on Base UI primitives and adds styling, tokens, documentation, and metadata layers for design system workflows.
Can I still customize behavior and styling deeply?
Yes. You keep the flexibility of a component system built on primitives while gaining a more opinionated workflow for consistency.
Next steps
Browse the components docs and Getting Started to see how Fragments layers on top of Base UI for production workflows.
Keep exploring
- What Is Fragments?Fragments is the desktop app for directing frontend work in your running React app. The @usefragments packages provide reusable components and the Fragments font.
- React Component Library with Design Tokens: A Practical ArchitectureA practical architecture for combining a React component library with design tokens, component docs, and AI-ready metadata using Fragments.
- Explore FragmentsJoin the desktop beta waitlist. Paid plans coming soon.