juanigarciadev.Let's talk
All projects
Personal project

BlossomUI

Free and open source library of React components written in TypeScript and styled with Tailwind CSS. Copy a single file into your project and make it yours, with dark mode and typed props.

BlossomUI is a free and open source library of React components written in TypeScript and styled with Tailwind CSS. It is not an npm package: every component is a single file with typed props that you copy into your project and own. There are more than 60 components, from buttons, forms and modals to date pickers, command palettes, sidebars, trees and charts. This project seeks to help anyone who wants to follow a design scheme without breaking their head too much (because someone has already broken it before). Its use is completely free and non-profit.

Version 2: rewritten in TypeScript

The first version, from 2023, was a collection of snippets to copy. Version 2.0.0 turned it into a React library written in TypeScript, and 2.2.0 grew it from 21 to more than 60 components:

  • Every component is a single file with typed props, and the ones that manage state use React hooks.
  • New components: Modal, Forms (Input, Textarea, Select, MultiSelect, Checkbox, Radio, RadioGroup and Switch), Footer, Pagination, Stepper and Timeline. Version 2.2.0 added twenty-one more, such as OTP input, Combobox, Calendar, Color picker, Sidebar, Menubar, Tree, Resizable panels and Context menu.
  • Interactive components: dismissible Alert, Banner and Badge, a clickable Rating, Toasts managed with a useToasts hook, a Pricing billing toggle and loading buttons.
  • Select, MultiSelect, Checkbox and Radio are custom, so no native form controls are used.
  • One component with props instead of one export per variant: a Button takes a color and a rounded prop instead of needing a separate RedButtonRounded.

Documentation that teaches

Every component page explains how to copy the file, how to import it and lists its props, generated from the TypeScript types. The usage code is generated from the live examples, so the code you copy is the code you see. The index of the documentation sits at the left and a fixed table of contents at the right highlights the section you are reading.

Easy to find, for people and for machines

A search opens with Ctrl + K to jump to any page, and the theme you choose is remembered. For search engines and AI assistants the site publishes llms.txt, llms-full.txt, a sitemap and structured data.

Charts without dependencies

The charts are plain SVG and HTML, with no charting library: bar, line, area (also stacked), donut, pie, radar, gauge with color thresholds, heatmap and sparklines, with hover values and a text summary for screen readers.

Dark mode and your brand color

Dark mode is included in every component and works with Tailwind's class strategy, without a white flash when a page loads. One CSS variable changes the accent color of every component at once, and every text has a labels prop so the library can be translated. Since components are plain Tailwind classes, sizes and spacing are edited directly in the file.

Why I built it

This project started as a personal challenge to improve my programming skills, always focused on helping others: a free, open library so other programmers don't have to build a design system from scratch and lose time on their own projects. Developing it on my own has taught me how to organize a project that will keep growing in content and users, how to add large amounts of content without hurting performance, and how to write clean, reusable code that you can still understand as time passes.

Being open source, anyone can review it and submit their PRs to add, improve or correct any element, and a changelog tracks every notable change since the first release.