Able Green Coconut is a shadcn/ui theme built around a muted green primary color (#838d62) with muted light green accents (#e6e9dd). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted green primary (#838d62) on a neutral background (#030402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #030402black |
| Foreground | #0e1203black | #fbfbf8snow |
| Card | #f9faf5whitesmoke | #060703black |
| Card foreground | #0a0d02black | #fdfdfcwhite |
| Popover | #f9faf5whitesmoke | #060703black |
| Popover foreground | #0a0d02black | #fdfdfcwhite |
| Primary | #838d62gray | #838d62gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #e6e9ddgainsboro | #35382edarkslategray |
| Secondary foreground | #51593bdarkolivegreen | #ced1c7lightgrey |
| Muted | #e4e8d8gainsboro | #232717black |
| Muted foreground | #5a5b57dimgray | #a7a8a4darkgray |
| Accent | #e6e9ddgainsboro | #35382edarkslategray |
| Accent foreground | #51593bdarkolivegreen | #ced1c7lightgrey |
| Destructive | #cb0801firebrick | #ef0901red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e4e5e1gainsboro | #1a1b18black |
| Input | #e4e5e1gainsboro | #1a1b18black |
| Ring | #838d62gray | #838d62gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.36:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 5.98:1 | AA |
| Muted text | 5.50:1 | AA |
| Accent | 5.98:1 | AA |
| Destructive | 5.87:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Able Green Coconut in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 117.903);
--foreground: oklch(0.172 0.032 119.97);
--muted: oklch(0.925 0.022 118.239);
--muted-foreground: oklch(0.469 0.006 118.042);
--popover: oklch(0.982 0.007 117.943);
--popover-foreground: oklch(0.153 0.028 118.798);
--card: oklch(0.982 0.007 117.943);
--card-foreground: oklch(0.153 0.028 118.798);
--border: oklch(0.919 0.005 117.913);
--input: oklch(0.919 0.005 117.913);
--primary: oklch(0.625 0.063 119.653);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.927 0.015 118.116);
--secondary-foreground: oklch(0.448 0.047 119.724);
--accent: oklch(0.927 0.015 118.116);
--accent-foreground: oklch(0.448 0.047 119.724);
--destructive: oklch(0.531 0.215 29.535);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.063 119.653);
--chart-1: oklch(0.625 0.063 119.653);
--chart-2: oklch(0.927 0.015 118.116);
--chart-3: oklch(0.927 0.015 118.116);
--chart-4: oklch(0.947 0.011 118.031);
--chart-5: oklch(0.634 0.072 119.923);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.01 117.966);
--foreground: oklch(0.988 0.004 117.893);
--muted: oklch(0.262 0.029 119.827);
--muted-foreground: oklch(0.728 0.005 117.95);
--popover: oklch(0.125 0.013 117.966);
--popover-foreground: oklch(0.994 0.002 117.859);
--card: oklch(0.125 0.013 117.966);
--card-foreground: oklch(0.994 0.002 117.859);
--border: oklch(0.22 0.006 118.303);
--input: oklch(0.22 0.006 118.303);
--primary: oklch(0.625 0.063 119.653);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.334 0.016 118.677);
--secondary-foreground: oklch(0.855 0.013 118.089);
--accent: oklch(0.334 0.016 118.677);
--accent-foreground: oklch(0.855 0.013 118.089);
--destructive: oklch(0.599 0.243 29.48);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.063 119.653);
--chart-1: oklch(0.625 0.063 119.653);
--chart-2: oklch(0.334 0.016 118.677);
--chart-3: oklch(0.334 0.016 118.677);
--chart-4: oklch(0.365 0.018 118.7);
--chart-5: oklch(0.634 0.072 119.923);
}