Barren is a shadcn/ui theme built around a light cyan primary color (#d3e6e9) with light blue accents (#d3dbe9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#d3e6e9) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #010404black | #fcfdfdwhite |
| Card | #ffffffwhite | #030607black |
| Card foreground | #010404black | #fcfdfdwhite |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #010404black | #fcfdfdwhite |
| Primary | #d3e6e9gainsboro | #d3e6e9gainsboro |
| Primary foreground | #2e555cdarkslategray | #2e555cdarkslategray |
| Secondary | #d3e9e1gainsboro | #d3e9e1gainsboro |
| Secondary foreground | #2e5c4cdarkslategray | #2e5c4cdarkslategray |
| Muted | #d9e3dfgainsboro | #1c2623black |
| Muted foreground | #53655fdimgray | #9aaca6darkgray |
| Accent | #d3dbe9gainsboro | #d3dbe9gainsboro |
| Accent foreground | #2e3e5cdarkslategray | #2e3e5cdarkslategray |
| Destructive | #722309maroon | #f06638tomato |
| Destructive foreground | #f9c5b3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3e6e9gainsboro | #d3e6e9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 5.99:1 | AA |
| Muted text | 4.70:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 5.99:1 | AA |
| Muted text | 6.52:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.65:1 | AA |
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.098 0.013 205.313);
--muted: oklch(0.907 0.012 173.196);
--muted-foreground: oklch(0.489 0.024 172.03);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.013 205.313);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.013 205.313);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.911 0.02 209.43);
--primary-foreground: oklch(0.423 0.045 210.088);
--secondary: oklch(0.915 0.025 172.746);
--secondary-foreground: oklch(0.436 0.057 168.751);
--accent: oklch(0.889 0.021 262.996);
--accent-foreground: oklch(0.364 0.055 262.258);
--destructive: oklch(0.376 0.117 37.099);
--destructive-foreground: oklch(0.864 0.065 39.238);
--ring: oklch(0.911 0.02 209.43);
--chart-1: oklch(0.911 0.02 209.43);
--chart-2: oklch(0.915 0.025 172.746);
--chart-3: oklch(0.889 0.021 262.996);
--chart-4: oklch(0.935 0.019 172.956);
--chart-5: oklch(0.912 0.022 209.429);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.009 206.995);
--foreground: oklch(0.993 0.001 209.465);
--muted: oklch(0.258 0.015 171.701);
--muted-foreground: oklch(0.729 0.022 172.649);
--popover: oklch(0.12 0.009 206.995);
--popover-foreground: oklch(0.993 0.001 209.465);
--card: oklch(0.12 0.009 206.995);
--card-foreground: oklch(0.993 0.001 209.465);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.911 0.02 209.43);
--primary-foreground: oklch(0.423 0.045 210.088);
--secondary: oklch(0.915 0.025 172.746);
--secondary-foreground: oklch(0.436 0.057 168.751);
--accent: oklch(0.889 0.021 262.996);
--accent-foreground: oklch(0.364 0.055 262.258);
--destructive: oklch(0.676 0.181 38.309);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.911 0.02 209.43);
--chart-1: oklch(0.911 0.02 209.43);
--chart-2: oklch(0.915 0.025 172.746);
--chart-3: oklch(0.889 0.021 262.996);
--chart-4: oklch(0.935 0.019 172.956);
--chart-5: oklch(0.912 0.022 209.429);
}