compacto-ui

Search documentation

Jump to a page or a component.

Introduction

Flat, token-driven React primitives shared by waux-ai-studio and bulky-api.

Why this exists

Two apps grew the same design system by copying files between repositories, and the copies had started to drift — different primitive counts, different Radix packaging, and, inside one app, two different token vocabularies in the same component folder.

This repo is the copy that wins. 24 primitives, one token vocabulary, maintained once and copied into both — not published to npm, an AI agent (or the shadcn CLI) copies component source straight out of this repo's registry.

Design rules

  • Flat: no shadows, no gradients. Borders only where a block boundary is not enough, and feedback through color and border rather than depth.
  • Focus rings are explicit, because there is no elevation to fall back on.
  • One color vocabulary: --app-*. No shadcn semantic utilities anywhere in the library.
  • No dark: variants. A palette here is a complete palette, not a light/dark pair, so --app-* already resolves correctly for whichever one is active.
  • Every user-visible string is a prop with an English default, so the library carries no i18n dependency and your app keeps its own.
  • No forwardRef — React 19 passes ref as a plain prop.
  • Every element carries a data-slot, so you can target our internals from your own CSS and tests.

Quick start

No install. Point an AI agent at this repo's registry.json and ask it to add a component — see Installation for the full protocol, and Skills for keeping the copies in sync afterwards.

import { Button } from "@/components/ui/button";