Reef is a shadcn/ui theme built around a vivid green primary color (#b2e00b) with vivid green accents (#47e00b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#b2e00b) on a green-tinted background (#0c0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0e07black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #ffffffwhite | #0c0e07black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0c0e07black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #b2e00bgreenyellow | #b2e00bgreenyellow |
| Primary foreground | #171d01black | #171d01black |
| Secondary | #e0a40bgoldenrod | #e0a40bgoldenrod |
| Secondary foreground | #1d1501black | #1d1501black |
| Muted | #e8dfcagainsboro | #352d17darkslategray |
| Muted foreground | #6c6656dimgray | #a9a393darkgray |
| Accent | #47e00blimegreen | #47e00blimegreen |
| Accent foreground | #091d01black | #091d01black |
| Destructive | #680c03maroon | #f83220orangered |
| Destructive foreground | #fca9a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2e00bgreenyellow | #b2e00bgreenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 11.18:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 4.31:1 | AA Large |
| Accent | 10.05:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 11.18:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 5.43:1 | AA |
| Accent | 10.05:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Reef in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.03 88.965);
--muted-foreground: oklch(0.51 0.025 89.005);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.843 0.206 123.442);
--primary-foreground: oklch(0.218 0.049 120.296);
--secondary: oklch(0.755 0.154 81.554);
--secondary-foreground: oklch(0.202 0.038 89.639);
--accent: oklch(0.795 0.254 140.114);
--accent-foreground: oklch(0.207 0.058 136.616);
--destructive: oklch(0.332 0.126 30.579);
--destructive-foreground: oklch(0.813 0.1 25.203);
--ring: oklch(0.843 0.206 123.442);
--chart-1: oklch(0.843 0.206 123.442);
--chart-2: oklch(0.755 0.154 81.554);
--chart-3: oklch(0.795 0.254 140.114);
--chart-4: oklch(0.791 0.162 81.45);
--chart-5: oklch(0.853 0.21 123.627);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.016 117.637);
--foreground: oklch(0.994 0.002 116.365);
--muted: oklch(0.299 0.037 88.579);
--muted-foreground: oklch(0.715 0.023 88.96);
--popover: oklch(0.158 0.016 117.637);
--popover-foreground: oklch(0.994 0.002 116.365);
--card: oklch(0.158 0.016 117.637);
--card-foreground: oklch(0.994 0.002 116.365);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.843 0.206 123.442);
--primary-foreground: oklch(0.218 0.049 120.296);
--secondary: oklch(0.755 0.154 81.554);
--secondary-foreground: oklch(0.202 0.038 89.639);
--accent: oklch(0.795 0.254 140.114);
--accent-foreground: oklch(0.207 0.058 136.616);
--destructive: oklch(0.635 0.233 29.994);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.843 0.206 123.442);
--chart-1: oklch(0.843 0.206 123.442);
--chart-2: oklch(0.755 0.154 81.554);
--chart-3: oklch(0.795 0.254 140.114);
--chart-4: oklch(0.791 0.162 81.45);
--chart-5: oklch(0.853 0.21 123.627);
}