Fork is a shadcn/ui theme built around a muted deep teal primary color (#1d2f27) with muted deep pink accents (#2f1d25). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#1d2f27) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #010906black | #fcfdfdwhite |
| Card | #f6fdfamintcream | #030303black |
| Card foreground | #010403black | #ffffffwhite |
| Popover | #f6fdfamintcream | #030303black |
| Popover foreground | #010403black | #ffffffwhite |
| Primary | #1d2f27darkslategray | #1d2f27darkslategray |
| Primary foreground | #b1cec1silver | #b1cec1silver |
| Secondary | #2f1d25darkslategray | #2f1d25darkslategray |
| Secondary foreground | #ceb1bdsilver | #ceb1bdsilver |
| Muted | #e5d2dagainsboro | #2d1a22black |
| Muted foreground | #51484cdarkslategray | #b7aeb2darkgray |
| Accent | #2f1d25darkslategray | #2f1d25darkslategray |
| Accent foreground | #ceb1bdsilver | #ceb1bdsilver |
| Destructive | #c9290dfirebrick | #f24e31tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d2f27darkslategray | #1d2f27darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Fork in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 168.618);
--foreground: oklch(0.126 0.02 169.043);
--muted: oklch(0.881 0.023 349.449);
--muted-foreground: oklch(0.412 0.014 349.645);
--popover: oklch(0.989 0.008 168.501);
--popover-foreground: oklch(0.1 0.016 169.043);
--card: oklch(0.989 0.008 168.501);
--card-foreground: oklch(0.1 0.016 169.043);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.287 0.027 165.72);
--primary-foreground: oklch(0.826 0.036 167.453);
--secondary: oklch(0.258 0.03 351.784);
--secondary-foreground: oklch(0.788 0.038 350.019);
--accent: oklch(0.258 0.03 351.784);
--accent-foreground: oklch(0.788 0.038 350.019);
--destructive: oklch(0.544 0.199 31.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.287 0.027 165.72);
--chart-1: oklch(0.287 0.027 165.72);
--chart-2: oklch(0.258 0.03 351.784);
--chart-3: oklch(0.258 0.03 351.784);
--chart-4: oklch(0.287 0.035 351.93);
--chart-5: oklch(0.29 0.03 165.329);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 168.67);
--muted: oklch(0.247 0.032 352.124);
--muted-foreground: oklch(0.759 0.012 349.162);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.287 0.027 165.72);
--primary-foreground: oklch(0.826 0.036 167.453);
--secondary: oklch(0.258 0.03 351.784);
--secondary-foreground: oklch(0.788 0.038 350.019);
--accent: oklch(0.258 0.03 351.784);
--accent-foreground: oklch(0.788 0.038 350.019);
--destructive: oklch(0.649 0.205 32.379);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.287 0.027 165.72);
--chart-1: oklch(0.287 0.027 165.72);
--chart-2: oklch(0.258 0.03 351.784);
--chart-3: oklch(0.258 0.03 351.784);
--chart-4: oklch(0.287 0.035 351.93);
--chart-5: oklch(0.29 0.03 165.329);
}