Introduction

Chunky, toy-like blocks with a plastic face, a solid wall and a soft shadow. They squash when pressed, bounce into place and come in five palettes. 42 components, from buttons to a full data table, built on Radix and Tailwind and copied into your project the shadcn way.

What you get

Blocks you can press

Every control has depth. Hover lifts it, pressing sinks it into its wall with a little squash.

Five palettes

Village, Meadow, Lotus, River and Lantern (dark). Switch with one attribute, even per section. All pass WCAG AA.

villagemeadowlotusriverlantern
Motion with manners

Springy 140–360 ms motion on every interaction, and none at all under reduced motion.

+8 XP
Vietnamese-ready type

Nunito with roomy line height for stacked marks: Ổ rơm, cối xay, giếng khơi.

How it is built

  • Tokens in one JSON file become CSS variables: base sizes, depth, motion, and colour roles per palette.
  • Skins are plain classes (cz-button, cz-card) in one stylesheet, cozy.css. Tailwind is optional.
  • Components are shadcn/ui components with the same API, pointed at those classes.
  • The class names map one-to-one to Unity UI Toolkit (USS), for games that share the look.

Cozy UI is open source under the MIT license: use it in any project, commercial or not.