Barren is a shadcn/ui theme built around a muted green primary color (#a7ba87) with muted violet accents (#9b87ba). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#a7ba87) on a neutral background (#050704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050704black |
| Foreground | #090e02black | #ffffffwhite |
| Card | #fcfcfcsnow | #080a05black |
| Card foreground | #060901black | #ffffffwhite |
| Popover | #ffffffwhite | #050704black |
| Popover foreground | #090e02black | #ffffffwhite |
| Primary | #a7ba87darkseagreen | #a7ba87darkseagreen |
| Primary foreground | #080a06black | #080a06black |
| Secondary | #9b87badarkgray | #9b87badarkgray |
| Secondary foreground | #07060ablack | #07060ablack |
| Muted | #efeff1whitesmoke | #0f0e10black |
| Muted foreground | #5e5d5fdimgray | #a0a0a2darkgray |
| Accent | #9b87badarkgray | #9b87badarkgray |
| Accent foreground | #07060ablack | #07060ablack |
| Destructive | #b02f07firebrick | #dc3a09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7ba87darkseagreen | #a7ba87darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 9.48:1 | AAA |
| Secondary button | 6.32:1 | AA |
| Muted text | 5.69:1 | AA |
| Accent | 6.32:1 | AA |
| Destructive | 6.44:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 9.48:1 | AAA |
| Secondary button | 6.32:1 | AA |
| Muted text | 7.36:1 | AAA |
| Accent | 6.32:1 | AA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Barren in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.03 123.505);
--muted: oklch(0.952 0.003 303.593);
--muted-foreground: oklch(0.481 0.003 303.544);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.152 0.03 123.505);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.132 0.026 122.833);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.761 0.073 125.128);
--primary-foreground: oklch(0.139 0.011 123.319);
--secondary: oklch(0.66 0.077 301.88);
--secondary-foreground: oklch(0.125 0.011 304.033);
--accent: oklch(0.66 0.077 301.88);
--accent-foreground: oklch(0.125 0.011 304.033);
--destructive: oklch(0.503 0.172 35.044);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.761 0.073 125.128);
--chart-1: oklch(0.761 0.073 125.128);
--chart-2: oklch(0.66 0.077 301.88);
--chart-3: oklch(0.66 0.077 301.88);
--chart-4: oklch(0.689 0.07 302.111);
--chart-5: oklch(0.767 0.081 125.284);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 123.276);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.005 303.231);
--muted-foreground: oklch(0.706 0.003 303.58);
--popover: oklch(0.123 0.011 123.276);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.012 123.276);
--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.761 0.073 125.128);
--primary-foreground: oklch(0.139 0.011 123.319);
--secondary: oklch(0.66 0.077 301.88);
--secondary-foreground: oklch(0.125 0.011 304.033);
--accent: oklch(0.66 0.077 301.88);
--accent-foreground: oklch(0.125 0.011 304.033);
--destructive: oklch(0.592 0.205 34.743);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.761 0.073 125.128);
--chart-1: oklch(0.761 0.073 125.128);
--chart-2: oklch(0.66 0.077 301.88);
--chart-3: oklch(0.66 0.077 301.88);
--chart-4: oklch(0.689 0.07 302.111);
--chart-5: oklch(0.767 0.081 125.284);
}