Broom is a shadcn/ui theme built around a neutral gray primary color (#302f32) with neutral gray accents (#2f3230). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#302f32) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #07030dblack | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #050208black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #07030dblack | #ffffffwhite |
| Primary | #302f32darkslategray | #302f32darkslategray |
| Primary foreground | #c9c8cbsilver | #c9c8cbsilver |
| Secondary | #32302fdarkslategray | #32302fdarkslategray |
| Secondary foreground | #cbc9c8silver | #cbc9c8silver |
| Muted | #dfd9d2gainsboro | #2d2620darkslategray |
| Muted foreground | #5d5146darkolivegreen | #b9ada2darkgray |
| Accent | #2f3230darkslategray | #2f3230darkslategray |
| Accent foreground | #c8cbc9silver | #c8cbc9silver |
| Destructive | #d00e0bfirebrick | #f43734crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #302f32darkslategray | #302f32darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 5.47:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 5.58:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Broom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.114 0.03 309.188);
--muted: oklch(0.887 0.011 65.814);
--muted-foreground: oklch(0.444 0.024 65.267);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.03 309.188);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.026 309.581);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.308 0.005 307.581);
--primary-foreground: oklch(0.834 0.005 307.723);
--secondary: oklch(0.312 0.003 65.841);
--secondary-foreground: oklch(0.838 0.003 65.926);
--accent: oklch(0.313 0.005 163.883);
--accent-foreground: oklch(0.839 0.004 164.157);
--destructive: oklch(0.543 0.217 28.997);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.308 0.005 307.581);
--chart-1: oklch(0.308 0.005 307.581);
--chart-2: oklch(0.312 0.003 65.841);
--chart-3: oklch(0.313 0.005 163.883);
--chart-4: oklch(0.342 0.004 65.837);
--chart-5: oklch(0.305 0.011 307.368);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.274 0.015 65.234);
--muted-foreground: oklch(0.754 0.021 65.629);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.308 0.005 307.581);
--primary-foreground: oklch(0.834 0.005 307.723);
--secondary: oklch(0.312 0.003 65.841);
--secondary-foreground: oklch(0.838 0.003 65.926);
--accent: oklch(0.313 0.005 163.883);
--accent-foreground: oklch(0.839 0.004 164.157);
--destructive: oklch(0.633 0.225 27.219);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.308 0.005 307.581);
--chart-1: oklch(0.308 0.005 307.581);
--chart-2: oklch(0.312 0.003 65.841);
--chart-3: oklch(0.313 0.005 163.883);
--chart-4: oklch(0.342 0.004 65.837);
--chart-5: oklch(0.305 0.011 307.368);
}