Fennel is a shadcn/ui theme built around a near-black primary color (#0f0f0f) with near-black accents (#0f0f0f). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-black primary (#0f0f0f) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #040101black |
| Foreground | #090202black | #faf5f5whitesmoke |
| Card | #faf5f5whitesmoke | #070303black |
| Card foreground | #040101black | #fcf8f8snow |
| Popover | #fcf8f8snow | #040101black |
| Popover foreground | #090202black | #faf5f5whitesmoke |
| Primary | #0f0f0fblack | #0f0f0fblack |
| Primary foreground | #a8a8a8darkgray | #a8a8a8darkgray |
| Secondary | #0f0f0fblack | #0f0f0fblack |
| Secondary foreground | #a8a8a8darkgray | #a8a8a8darkgray |
| Muted | #eae1e1gainsboro | #1e1515black |
| Muted foreground | #554a4adarkslategray | #b5aaaadarkgray |
| Accent | #0f0f0fblack | #0f0f0fblack |
| Accent foreground | #a8a8a8darkgray | #a8a8a8darkgray |
| Destructive | #be3213firebrick | #e94520orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f0f0fblack | #0f0f0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.63:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.72:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.92:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Fennel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 17.222);
--foreground: oklch(0.1 0.023 22.205);
--muted: oklch(0.917 0.01 17.339);
--muted-foreground: oklch(0.418 0.015 17.765);
--popover: oklch(0.982 0.004 17.222);
--popover-foreground: oklch(0.1 0.023 22.205);
--card: oklch(0.973 0.006 17.255);
--card-foreground: oklch(0.08 0.019 22.205);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.17 0 180);
--primary-foreground: oklch(0.733 0 180);
--secondary: oklch(0.17 0 180);
--secondary-foreground: oklch(0.733 0 180);
--accent: oklch(0.17 0 180);
--accent-foreground: oklch(0.733 0 180);
--destructive: oklch(0.532 0.181 33.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.17 0 180);
--chart-1: oklch(0.17 0 180);
--chart-2: oklch(0.17 0 180);
--chart-3: oklch(0.17 0 180);
--chart-4: oklch(0.204 0 180);
--chart-5: oklch(0.169 0.002 17.308);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 19.401);
--foreground: oklch(0.973 0.006 17.253);
--muted: oklch(0.207 0.015 18.445);
--muted-foreground: oklch(0.749 0.013 17.442);
--popover: oklch(0.085 0.01 19.401);
--popover-foreground: oklch(0.973 0.006 17.253);
--card: oklch(0.107 0.013 19.401);
--card-foreground: oklch(0.982 0.004 17.22);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.17 0 180);
--primary-foreground: oklch(0.733 0 180);
--secondary: oklch(0.17 0 180);
--secondary-foreground: oklch(0.733 0 180);
--accent: oklch(0.17 0 180);
--accent-foreground: oklch(0.733 0 180);
--destructive: oklch(0.624 0.206 33.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.17 0 180);
--chart-1: oklch(0.17 0 180);
--chart-2: oklch(0.17 0 180);
--chart-3: oklch(0.17 0 180);
--chart-4: oklch(0.204 0 180);
--chart-5: oklch(0.169 0.002 17.308);
}