Broom is a shadcn/ui theme built around a vivid pink primary color (#d80e6c) with vivid teal accents (#0ed879). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid pink primary (#d80e6c) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #040102black |
| Foreground | #12030ablack | #fdfcfcsnow |
| Card | #fcf8fasnow | #080205black |
| Card foreground | #0d0207black | #ffffffwhite |
| Popover | #fcf8fasnow | #080205black |
| Popover foreground | #0d0207black | #ffffffwhite |
| Primary | #d80e6cmediumvioletred | #d80e6cmediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #0ed879springgreen | #0ed879springgreen |
| Secondary foreground | #02180dblack | #02180dblack |
| Muted | #cee4d9gainsboro | #1b3127darkslategray |
| Muted foreground | #58655fdimgray | #9aa7a1darkgray |
| Accent | #0ed879springgreen | #0ed879springgreen |
| Accent foreground | #02180dblack | #02180dblack |
| Destructive | #cf2507firebrick | #f63513orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d80e6cmediumvioletred | #d80e6cmediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 5.01:1 | AA |
| Secondary button | 9.73:1 | AAA |
| Muted text | 4.56:1 | AA |
| Accent | 9.73:1 | AAA |
| Destructive | 5.36:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 5.01:1 | AA |
| Secondary button | 9.73:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 9.73: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(0.991 0.002 346.968);
--foreground: oklch(0.132 0.036 349.112);
--muted: oklch(0.899 0.027 166.053);
--muted-foreground: oklch(0.493 0.019 165.824);
--popover: oklch(0.983 0.004 347.031);
--popover-foreground: oklch(0.118 0.032 347.159);
--card: oklch(0.983 0.004 347.031);
--card-foreground: oklch(0.118 0.032 347.159);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.572 0.226 2.61);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.774 0.193 153.988);
--secondary-foreground: oklch(0.186 0.038 161.726);
--accent: oklch(0.774 0.193 153.988);
--accent-foreground: oklch(0.186 0.038 161.726);
--destructive: oklch(0.551 0.206 31.663);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.572 0.226 2.61);
--chart-1: oklch(0.572 0.226 2.61);
--chart-2: oklch(0.774 0.193 153.988);
--chart-3: oklch(0.774 0.193 153.988);
--chart-4: oklch(0.813 0.203 153.917);
--chart-5: oklch(0.577 0.229 3.235);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.015 346.657);
--foreground: oklch(0.992 0.001 346.944);
--muted: oklch(0.292 0.034 163.139);
--muted-foreground: oklch(0.717 0.017 166.235);
--popover: oklch(0.107 0.019 346.657);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.019 346.657);
--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.572 0.226 2.61);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.774 0.193 153.988);
--secondary-foreground: oklch(0.186 0.038 161.726);
--accent: oklch(0.774 0.193 153.988);
--accent-foreground: oklch(0.186 0.038 161.726);
--destructive: oklch(0.633 0.231 31.929);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.572 0.226 2.61);
--chart-1: oklch(0.572 0.226 2.61);
--chart-2: oklch(0.774 0.193 153.988);
--chart-3: oklch(0.774 0.193 153.988);
--chart-4: oklch(0.813 0.203 153.917);
--chart-5: oklch(0.577 0.229 3.235);
}