JP
HomeBlogProjectsResumeAbout

© 2026 JP. All rights reserved.

Back to projects

DxSolo UI Component Library

A production-ready React component library built with Tailwind CSS v4, TypeScript, and Vite. Ships five accessible components (Button, Input, Card, Modal, Tabs) with semantic design tokens, CVA-powered variants, and full Storybook documentation.

DxSolo UI Component Library

Tech Stack

ReactTypeScriptTailwind CSS v4ViteVitestStorybookCVA

Date

March 18, 2026

View SourceLive Demo

Overview

A React component library built from scratch following modern library architecture patterns: Tailwind CSS v4 with CSS-first @theme tokens, Class Variance Authority for type-safe variants, and Vite library mode for optimized builds.

Components

  • Button: variant management with CVA, icon slots, polymorphic rendering
  • Input: form control fundamentals, ref forwarding, validation states
  • Card: compound composition with named sub-components (CardHeader, CardContent, CardFooter)
  • Modal: portals, focus trapping, scroll lock, keyboard handling
  • Tabs: shared state via React Context, full keyboard navigation per WAI-ARIA

Key Features

  • Semantic design tokens via Tailwind v4 @theme directive with dark mode support
  • cn() utility combining clsx + tailwind-merge for consumer-friendly class overrides
  • Tree-shakeable ES module output with rolled-up TypeScript declarations
  • Vitest test suite with React Testing Library
  • Storybook for interactive documentation
  • Published to npm as @dxsolo/ui

Read More

For a deep dive into the architecture, patterns, and step-by-step build process, check out the companion blog post: Building a Real-World Component Library with Tailwind CSS + React.