Forked is a shadcn/ui theme built around a purple primary color (#e684e1) with green accents (#84e689). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the purple primary (#e684e1) on a purple-tinted background (#0c040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fdsnow | #0c040bblack |
| Foreground | #080208black | #ffffffwhite |
| Card | #fdf6fdsnow | #0c040bblack |
| Card foreground | #080208black | #ffffffwhite |
| Popover | #fdf6fdsnow | #0c040bblack |
| Popover foreground | #080208black | #ffffffwhite |
| Primary | #e684e1violet | #e684e1violet |
| Primary foreground | #2f0a2dblack | #2f0a2dblack |
| Secondary | #84e689lightgreen | #84e689lightgreen |
| Secondary foreground | #0a2f0bblack | #0a2f0bblack |
| Muted | #ddeeddgainsboro | #112211black |
| Muted foreground | #576658dimgray | #99a89adarkgray |
| Accent | #84e689lightgreen | #84e689lightgreen |
| Accent foreground | #0a2f0bblack | #0a2f0bblack |
| Destructive | #632908saddlebrown | #ee722bchocolate |
| Destructive foreground | #f8c4a5navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e684e1violet | #e684e1violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 9.58:1 | AAA |
| Muted text | 5.04:1 | AA |
| Accent | 9.58:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 9.58:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 9.58:1 | AAA |
| Destructive | 7.08:1 | AAA |
Paste this into your globals.css to use Forked in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.011 327.143);
--foreground: oklch(0.108 0.027 328.584);
--muted: oklch(0.932 0.029 146.74);
--muted-foreground: oklch(0.493 0.029 146.471);
--popover: oklch(0.982 0.011 327.143);
--popover-foreground: oklch(0.108 0.027 328.584);
--card: oklch(0.982 0.011 327.143);
--card-foreground: oklch(0.108 0.027 328.584);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.75 0.166 328.89);
--primary-foreground: oklch(0.225 0.079 329.896);
--secondary: oklch(0.842 0.157 145.08);
--secondary-foreground: oklch(0.268 0.073 143.931);
--accent: oklch(0.842 0.157 145.08);
--accent-foreground: oklch(0.268 0.073 143.931);
--destructive: oklch(0.359 0.094 45.791);
--destructive-foreground: oklch(0.858 0.072 51.502);
--ring: oklch(0.75 0.166 328.89);
--chart-1: oklch(0.75 0.166 328.89);
--chart-2: oklch(0.842 0.157 145.08);
--chart-3: oklch(0.842 0.157 145.08);
--chart-4: oklch(0.856 0.142 145.328);
--chart-5: oklch(0.75 0.172 328.961);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.027 328.491);
--foreground: oklch(1 0 180);
--muted: oklch(0.232 0.04 145.255);
--muted-foreground: oklch(0.716 0.027 146.687);
--popover: oklch(0.125 0.027 328.491);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.027 328.491);
--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.75 0.166 328.89);
--primary-foreground: oklch(0.225 0.079 329.896);
--secondary: oklch(0.842 0.157 145.08);
--secondary-foreground: oklch(0.268 0.073 143.931);
--accent: oklch(0.842 0.157 145.08);
--accent-foreground: oklch(0.268 0.073 143.931);
--destructive: oklch(0.689 0.172 46.527);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.75 0.166 328.89);
--chart-1: oklch(0.75 0.166 328.89);
--chart-2: oklch(0.842 0.157 145.08);
--chart-3: oklch(0.842 0.157 145.08);
--chart-4: oklch(0.856 0.142 145.328);
--chart-5: oklch(0.75 0.172 328.961);
}