Brother is a shadcn/ui theme built around a deep green primary color (#5c6723) with deep indigo accents (#2d2367). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep green primary (#5c6723) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #030302black |
| Foreground | #000000black | #f8f8f7whitesmoke |
| Card | #fbfcf8snow | #060703black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fbfcf8snow | #060703black |
| Popover foreground | #000000black | #fafaf9snow |
| Primary | #5c6723darkolivegreen | #5c6723darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2d2367midnightblue | #2d2367midnightblue |
| Secondary foreground | #d2ceeegainsboro | #d2ceeegainsboro |
| Muted | #ececeewhitesmoke | #111113black |
| Muted foreground | #575463dimgray | #9e9cabdarkgray |
| Accent | #2d2367midnightblue | #2d2367midnightblue |
| Accent foreground | #d2ceeegainsboro | #d2ceeegainsboro |
| Destructive | #c72205firebrick | #fa5538tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c6723darkolivegreen | #5c6723darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 8.91:1 | AAA |
| Destructive | 5.73:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 7.01:1 | AAA |
| Accent | 8.91:1 | AAA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Brother in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 113.357);
--foreground: oklch(0 0 0);
--muted: oklch(0.944 0.003 293.249);
--muted-foreground: oklch(0.455 0.024 292.308);
--popover: oklch(0.989 0.005 113.408);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.005 113.408);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.489 0.092 117.148);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.312 0.113 284.557);
--secondary-foreground: oklch(0.864 0.045 292.316);
--accent: oklch(0.312 0.113 284.557);
--accent-foreground: oklch(0.864 0.045 292.316);
--destructive: oklch(0.534 0.201 31.625);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.489 0.092 117.148);
--chart-1: oklch(0.489 0.092 117.148);
--chart-2: oklch(0.312 0.113 284.557);
--chart-3: oklch(0.312 0.113 284.557);
--chart-4: oklch(0.334 0.123 284.335);
--chart-5: oklch(0.495 0.096 117.321);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.009 113.944);
--foreground: oklch(0.979 0.002 113.349);
--muted: oklch(0.178 0.004 292.842);
--muted-foreground: oklch(0.699 0.021 292.728);
--popover: oklch(0.125 0.012 113.944);
--popover-foreground: oklch(0.986 0.001 113.334);
--card: oklch(0.125 0.012 113.944);
--card-foreground: oklch(0.986 0.001 113.334);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.489 0.092 117.148);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.312 0.113 284.557);
--secondary-foreground: oklch(0.864 0.045 292.316);
--accent: oklch(0.312 0.113 284.557);
--accent-foreground: oklch(0.864 0.045 292.316);
--destructive: oklch(0.671 0.206 32.354);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.489 0.092 117.148);
--chart-1: oklch(0.489 0.092 117.148);
--chart-2: oklch(0.312 0.113 284.557);
--chart-3: oklch(0.312 0.113 284.557);
--chart-4: oklch(0.334 0.123 284.335);
--chart-5: oklch(0.495 0.096 117.321);
}