Case study11 / 12

Lone Star UI

A React 19 component library on Base UI, Tailwind CSS 4, and CVA, published to npm as ESM with full type declarations.

Year
2026
Lone Star UI
3 images
View gallery

Overview

Lone Star UI is a personal component library inspired by Allan Peters' Austin TX logo rebrand. It provides a comprehensive set of accessible, composable React components built with Tailwind CSS 4 and CVA for variant management.

What I learned

How to architect a publishable npm component library from scratch using Bun as the build tool. Setting up proper ESM exports with subpath imports for tree-shaking, managing TypeScript declarations alongside distribution files, and publishing to npm. Deepened understanding of CVA for variant-driven component APIs and Tailwind CSS 4's new CSS-first configuration approach.

Why it matters

Published to npm and available for installation in any React 19 project. Provides a reusable foundation for future projects with consistent design tokens in oklch color space, over 40 components documented in Storybook, most with interactive play tests, and type-safe props throughout.

Screens

02 images, select to enlarge
Next projectComposed FormA React library for building composable, multi-step forms with progressive validation. Built on react-hook-form and Zod.

Hiring a senior frontend engineer?

I'm looking for my next role on a product team, building design systems and AI tooling. The resume has the details, and my inbox is open.