Introduction

Ready-made themes for shadcn/ui, and templates that wear them

What it is

DressCode UI is 9 themes for shadcn/ui: Mono, Cobalt, Matcha, Harbor, Pop, Midnight, Klein, Sorbet, Hi-Vis. Each one has its own colors, fonts and corners, in light and dark, and installs with one shadcn command.

Two templates wear whichever theme you install: the Orbit landing page, eighteen sections for a SaaS site, and the Orbit dashboard, the app behind it with thirteen screens. Orbit is a made-up invoicing product; swap in your own copy and data.

How it fits together

  • A theme is values, not components. It sets shadcn's own CSS variables (background, primary, border, ring, radius and the rest) for both modes, adds its fonts with next/font, and writes a small lib/dresscode-theme.ts. Your shadcn components pick it up as they are. See Theming.
  • The components are shadcn's. Add them with npx shadcn@latest add button as usual. The components page shows them in every theme.
  • Components and blocks fill the gaps. Components adds the ones shadcn/ui doesn't ship (data table, date picker, sidebar and more), each with examples; Blocks has whole sections, from the hero to the sign-in page. Each installs with one command and wears the theme.
  • The templates are built from those components. They read the theme's variables, plus a few extras for the one colored band a page gets and the small highlight marks. See Templates.

Where the colors come from

Each theme starts from three colors picked by hand. Bold trios look great on a poster and tiring on a screen, so we measured how 54 product sites spend their color and re-cast every trio the same way: a neutral page and cards for most of the screen, the main color on actions, one full-width colored band, and the third color only in small marks. Every text and control pair passes WCAG AA contrast in both modes.

Free and open source

Everything is free and MIT licensed: the themes, both templates, the components, the blocks and their source on GitHub. Use them in personal and commercial projects.

Next steps