Pecan is a shadcn/ui theme built around a deep green primary color (#525723) with deep green accents (#385723). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep green primary (#525723) on a green-tinted background (#0e0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0e0e06black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fdfdf6snow | #111208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefefbwhite | #0e0e06black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #525723darkolivegreen | #525723darkolivegreen |
| Primary foreground | #e4e7c5wheat | #e4e7c5wheat |
| Secondary | #574223darkolivegreen | #574223darkolivegreen |
| Secondary foreground | #e7dac5wheat | #e7dac5wheat |
| Muted | #eeebe7linen | #181511black |
| Muted foreground | #45413adarkslategray | #c5c0basilver |
| Accent | #385723darkolivegreen | #385723darkolivegreen |
| Accent foreground | #d3e7c5lightgrey | #d3e7c5lightgrey |
| Destructive | #8e2b10saddlebrown | #e95c35tomato |
| Destructive foreground | #faded6antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #525723darkolivegreen | #525723darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.87:1 | AA |
| Muted text | 8.56:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 6.87:1 | AA |
| Muted text | 10.05:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use Pecan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.005 111.102);
--foreground: oklch(0.105 0.017 112.561);
--muted: oklch(0.942 0.007 78.288);
--muted-foreground: oklch(0.377 0.013 78.155);
--popover: oklch(0.996 0.005 111.102);
--popover-foreground: oklch(0.105 0.017 112.561);
--card: oklch(0.993 0.009 111.191);
--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.44 0.073 114.196);
--primary-foreground: oklch(0.917 0.045 111.93);
--secondary: oklch(0.395 0.054 76.284);
--secondary-foreground: oklch(0.893 0.031 78.151);
--accent: oklch(0.419 0.086 134.431);
--accent-foreground: oklch(0.905 0.051 132.794);
--destructive: oklch(0.438 0.139 35.439);
--destructive-foreground: oklch(0.921 0.034 35.944);
--ring: oklch(0.44 0.073 114.196);
--chart-1: oklch(0.44 0.073 114.196);
--chart-2: oklch(0.395 0.054 76.284);
--chart-3: oklch(0.419 0.086 134.431);
--chart-4: oklch(0.428 0.059 76.199);
--chart-5: oklch(0.445 0.077 114.352);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.018 112.719);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.01 78.021);
--muted-foreground: oklch(0.811 0.011 78.266);
--popover: oklch(0.161 0.018 112.719);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.177 0.02 113.052);
--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.44 0.073 114.196);
--primary-foreground: oklch(0.917 0.045 111.93);
--secondary: oklch(0.395 0.054 76.284);
--secondary-foreground: oklch(0.893 0.031 78.151);
--accent: oklch(0.419 0.086 134.431);
--accent-foreground: oklch(0.905 0.051 132.794);
--destructive: oklch(0.651 0.183 36.106);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.44 0.073 114.196);
--chart-1: oklch(0.44 0.073 114.196);
--chart-2: oklch(0.395 0.054 76.284);
--chart-3: oklch(0.419 0.086 134.431);
--chart-4: oklch(0.428 0.059 76.199);
--chart-5: oklch(0.445 0.077 114.352);
}