Ballmac UI home

Make it yours

Apply a theme, set your brand color and check dark mode. Ballmac components read the standard shadcn CSS variables, so they take on your brand automatically.

On this page

By the end of this page your components use your brand color in light and dark.

Install a theme

The theme builder has twelve ready-made themes: Graphite, Ocean, Indigo, Violet, Rose, Ember, Amber, Forest, Teal, Sand, Mono and Midnight. Each is a full set of light and dark tokens, with contrast checked for text, focus rings and charts.

pnpm dlx shadcn@latest add @ballmac/theme-ocean

Themes change the variables only. Installing a second theme replaces the first, and your components keep working because they read the same tokens.

Set your brand color

Focus rings, selections and accents come from --ring and --chart-1. Change them in one place:

app/globals.css
:root {
  --ring: oklch(0.62 0.19 262);
  --chart-1: oklch(0.62 0.19 262);
}

Check dark mode

Components read tokens only, so dark mode is whatever your .dark class defines. With the Ballmac theme, dark mode is an ink navy rather than pure black.

Next steps