Fold is a shadcn/ui theme built around a vivid deep red primary color (#210702) with vivid deep orange accents (#211602). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#210702) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #160604black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #110503black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #160604black | #fdfcfcsnow |
| Primary | #210702black | #210702black |
| Primary foreground | #f37662salmon | #f37662salmon |
| Secondary | #21020eblack | #21020eblack |
| Secondary foreground | #f36298palevioletred | #f36298palevioletred |
| Muted | #ded3d7gainsboro | #2c2125darkslategray |
| Muted foreground | #5e5558dimgray | #aaa1a5darkgray |
| Accent | #211602black | #211602black |
| Accent foreground | #df9311goldenrod | #df9311goldenrod |
| Destructive | #951b09darkred | #f23518orangered |
| Destructive foreground | #fcd9d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #210702black | #210702black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.47:1 | AA |
| Muted text | 4.95:1 | AA |
| Accent | 7.04:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.47:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 7.04:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Fold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.03 33.665);
--muted: oklch(0.878 0.013 352.994);
--muted-foreground: oklch(0.458 0.013 353.356);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.03 33.665);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.136 0.026 34.576);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.173 0.049 35.075);
--primary-foreground: oklch(0.708 0.158 30.432);
--secondary: oklch(0.168 0.058 0.285);
--secondary-foreground: oklch(0.695 0.184 0.236);
--accent: oklch(0.209 0.038 80.45);
--accent-foreground: oklch(0.723 0.152 72.068);
--destructive: oklch(0.436 0.16 31.492);
--destructive-foreground: oklch(0.914 0.04 28.221);
--ring: oklch(0.173 0.049 35.075);
--chart-1: oklch(0.173 0.049 35.075);
--chart-2: oklch(0.168 0.058 0.285);
--chart-3: oklch(0.209 0.038 80.45);
--chart-4: oklch(0.205 0.073 3.226);
--chart-5: oklch(0.174 0.05 35.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 27.942);
--muted: oklch(0.261 0.018 354.442);
--muted-foreground: oklch(0.718 0.011 353.023);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 27.942);
--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.173 0.049 35.075);
--primary-foreground: oklch(0.708 0.158 30.432);
--secondary: oklch(0.168 0.058 0.285);
--secondary-foreground: oklch(0.695 0.184 0.236);
--accent: oklch(0.209 0.038 80.45);
--accent-foreground: oklch(0.723 0.152 72.068);
--destructive: oklch(0.625 0.227 31.526);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.173 0.049 35.075);
--chart-1: oklch(0.173 0.049 35.075);
--chart-2: oklch(0.168 0.058 0.285);
--chart-3: oklch(0.209 0.038 80.45);
--chart-4: oklch(0.205 0.073 3.226);
--chart-5: oklch(0.174 0.05 35.65);
}