Brooch is a shadcn/ui theme built around a muted light green primary color (#b6d3b8) with muted light green accents (#e0ebe1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#b6d3b8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010902black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010501black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010902black | #fcfdfcwhite |
| Primary | #b6d3b8silver | #b6d3b8silver |
| Primary foreground | #213622darkslategray | #213622darkslategray |
| Secondary | #e0ebe1gainsboro | #151e16black |
| Secondary foreground | #3d5c40darkslategray | #a6bfa8darkgray |
| Muted | #d5e2d6gainsboro | #1d2a1eblack |
| Muted foreground | #405442darkslategray | #abbfaddarkgray |
| Accent | #e0ebe1gainsboro | #151e16black |
| Accent foreground | #3d5c40darkslategray | #a6bfa8darkgray |
| Destructive | #a72906firebrick | #f75022orangered |
| Destructive foreground | #fee8e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b6d3b8silver | #b6d3b8silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 6.09:1 | AA |
| Accent | 6.10:1 | AA |
| Destructive | 6.00:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.67:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Brooch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.03 146.224);
--muted: oklch(0.899 0.021 147.816);
--muted-foreground: oklch(0.423 0.037 147.08);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.03 146.224);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.024 146.224);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.838 0.048 147.436);
--primary-foreground: oklch(0.309 0.045 146.383);
--secondary: oklch(0.929 0.017 147.876);
--secondary-foreground: oklch(0.442 0.058 146.554);
--accent: oklch(0.929 0.017 147.876);
--accent-foreground: oklch(0.442 0.058 146.554);
--destructive: oklch(0.481 0.167 34.305);
--destructive-foreground: oklch(0.946 0.026 35.949);
--ring: oklch(0.838 0.048 147.436);
--chart-1: oklch(0.838 0.048 147.436);
--chart-2: oklch(0.929 0.017 147.876);
--chart-3: oklch(0.929 0.017 147.876);
--chart-4: oklch(0.95 0.012 147.936);
--chart-5: oklch(0.84 0.054 147.36);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.003 148.032);
--muted: oklch(0.27 0.028 146.903);
--muted-foreground: oklch(0.784 0.032 147.62);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.003 148.032);
--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.838 0.048 147.436);
--primary-foreground: oklch(0.309 0.045 146.383);
--secondary: oklch(0.222 0.019 147.134);
--secondary-foreground: oklch(0.779 0.041 147.491);
--accent: oklch(0.222 0.019 147.134);
--accent-foreground: oklch(0.779 0.041 147.491);
--destructive: oklch(0.658 0.211 35.337);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.838 0.048 147.436);
--chart-1: oklch(0.838 0.048 147.436);
--chart-2: oklch(0.222 0.019 147.134);
--chart-3: oklch(0.222 0.019 147.134);
--chart-4: oklch(0.257 0.023 147.052);
--chart-5: oklch(0.84 0.054 147.36);
}