Introduction
This project is a Blazor-first component system inspired by shadcn/ui. The goal is to provide clean, reusable building blocks that you can own, adapt, and compose in real applications.
Architecture at a glance
- Composable UI primitives: small components designed to be predictable and easy to combine.
- Behavior + accessibility patterns: interaction patterns are strongly aligned with Radix concepts.
- Utility-first styling: components are styled primarily with Tailwind utility classes for speed and consistency.
- Minimal abstraction: keep the implementation simple so teams can read and customize with confidence.
Tailwind CSS philosophy
Tailwind encourages building UI with composable utility classes directly in the component markup. This keeps styling close to the component logic and helps reduce context switching while building.
Learn more in the official docs: Tailwind CSS Utility-First fundamentals.
Why cva + clsx + tailwind-merge
These utilities work best together when building component variants:
- cva defines variant APIs (size, intent, state) in a consistent way.
- clsx conditionally composes class names at runtime.
- tailwind-merge resolves Tailwind class conflicts so the final output stays correct.
The result is a cleaner developer experience: expressive component APIs, fewer class collisions, and easier customization as your design system evolves.