Introduction

Accessible React components on Base UI and Tailwind CSS. You copy each one into your project with the CLI, and from then on the code is yours to change.

What it is

YolkUI is a personal project, and an exploration more than a product. I wanted to see how far a small set of components could go if every detail got real attention: the focus ring, a disabled button that can still tell you why it's off, a menu that opens on the correct side in Arabic. I share it here in case it helps you too.

How it works

You don't install YolkUI as a package. The CLI copies a component's source into your project, together with any component it builds on, and the file is yours from that moment. Change the markup, the classes or the behavior however you like. Nothing waits upstream to overwrite your edits. The components so far run from Accordion to Tooltip, and each one has a page with examples you can copy.

npx @yolkui/cli add button

What it's built on

Base UI does the hard part: keyboard support, focus and the ARIA attributes a screen reader needs. Its team has done careful, patient work there, and YolkUI leans on it everywhere. Tailwind CSS v4 draws the look through a small set of color, radius and type tokens, which Theming explains. A component file stands on its own and needs no icon library.

Works with shadcn/ui

I learned a lot from shadcn/ui, and YolkUI follows its conventions on purpose. The parts, the prop names and the theme tokens match, so a shadcn theme pastes in and shadcn components sit next to these ones. You can even add a YolkUI component with the shadcn CLI. The one difference you'll notice is the radius scale, and Theming shows how the two line up.

npx shadcn add https://yolkui.com/r/button.json

What I check on every component

Before a component goes up, it has to do all of this, and Accessibility covers each check in detail:

  • Work with a keyboard alone, and say what it is to a screen reader.
  • Look right in light and dark, with every text color at WCAG AA contrast in both.
  • Mirror itself in right to left languages such as Arabic and Hebrew.
  • Stay visible in Windows High Contrast mode.
  • Keep a disabled control in the Tab order, so a tooltip can explain why it's off.
  • Pass its own tests, including an automated accessibility check.

Made to work with AI

The code lives in your project, so an AI assistant can read it and change it like any other file. Every page also has a Copy page button that gives you the whole page as Markdown, ready to paste into a chat. AI tools can read llms.txt, a list of every page, or llms-full.txt, every page in one file.

Requirements

React 19.2 or newer and Tailwind CSS v4, in a Next.js or Vite project. It runs in current versions of Chrome, Edge, Firefox and Safari. Installation walks you through the setup.

Questions

Is YolkUI free?

Yes. YolkUI uses the MIT license, so you can use it in personal and commercial projects.

Does it work with shadcn/ui?

Yes. The theme tokens, parts and prop names match shadcn/ui, so a shadcn theme pastes in and shadcn components sit next to YolkUI ones. Works with shadcn/ui has the details.

Do I need an icon library?

No. The few icons a component needs, such as a check mark or a chevron, live inside its file. For your own icons any library works, and the examples use Lucide.

How do I get updates?

Run the add command again. The CLI asks before it replaces a file you already have, so your own changes stay put until you say yes.

Can I use it in production?

Yes, but read the code before you ship it, since YolkUI is still young. I use it on this site, and every component has its own tests.

Who makes it

I'm Antoni Botev, a product designer. I design products full of data and build them in code, and YolkUI is where I try out ideas about components before I use them in real work. You'll find me on X, GitHub and LinkedIn.