Crib is a shadcn/ui theme built around a near-white primary color (#fcfcfc) with near-white accents (#fcfcfc). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-white primary (#fcfcfc) on an orange-tinted background (#0b0804).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0b0804black |
| Foreground | #080602black | #fbfaf8snow |
| Card | #fefdfbsnow | #0b0804black |
| Card foreground | #080602black | #fbfaf8snow |
| Popover | #fefdfbsnow | #0b0804black |
| Popover foreground | #080602black | #fbfaf8snow |
| Primary | #fcfcfcsnow | #fcfcfcsnow |
| Primary foreground | #313130darkslategray | #313130darkslategray |
| Secondary | #fcfcfcsnow | #fcfcfcsnow |
| Secondary foreground | #303131darkslategray | #303131darkslategray |
| Muted | #d7dbd9gainsboro | #242827darkslategray |
| Muted foreground | #515c58dimgray | #a3aea9darkgray |
| Accent | #fcfcfcsnow | #fcfcfcsnow |
| Accent foreground | #313031darkslategray | #313031darkslategray |
| Destructive | #6f1f0bmaroon | #e94c25chocolate |
| Destructive foreground | #f8c2b5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcfcfcsnow | #fcfcfcsnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 12.74:1 | AAA |
| Secondary button | 12.76:1 | AAA |
| Muted text | 4.95:1 | AA |
| Accent | 12.85:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 12.74:1 | AAA |
| Secondary button | 12.76:1 | AAA |
| Muted text | 6.51:1 | AA |
| Accent | 12.85:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Crib in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 76.639);
--foreground: oklch(0.121 0.014 83.847);
--muted: oklch(0.887 0.005 169.521);
--muted-foreground: oklch(0.464 0.015 168.742);
--popover: oklch(0.994 0.003 76.639);
--popover-foreground: oklch(0.121 0.014 83.847);
--card: oklch(0.994 0.003 76.639);
--card-foreground: oklch(0.121 0.014 83.847);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.992 0 76.652);
--primary-foreground: oklch(0.312 0.001 76.635);
--secondary: oklch(0.992 0 169.669);
--secondary-foreground: oklch(0.312 0.002 169.531);
--accent: oklch(0.992 0 311.724);
--accent-foreground: oklch(0.31 0.002 311.675);
--destructive: oklch(0.367 0.117 34.662);
--destructive-foreground: oklch(0.859 0.065 34.414);
--ring: oklch(0.992 0 76.652);
--chart-1: oklch(0.992 0 76.652);
--chart-2: oklch(0.992 0 169.669);
--chart-3: oklch(0.992 0 311.724);
--chart-4: oklch(1.015 0 349.674);
--chart-5: oklch(0.992 0 76.651);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.014 82.619);
--foreground: oklch(0.986 0.003 76.639);
--muted: oklch(0.273 0.006 169.012);
--muted-foreground: oklch(0.74 0.013 169.157);
--popover: oklch(0.138 0.014 82.619);
--popover-foreground: oklch(0.986 0.003 76.639);
--card: oklch(0.138 0.014 82.619);
--card-foreground: oklch(0.986 0.003 76.639);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.992 0 76.652);
--primary-foreground: oklch(0.312 0.001 76.635);
--secondary: oklch(0.992 0 169.669);
--secondary-foreground: oklch(0.312 0.002 169.531);
--accent: oklch(0.992 0 311.724);
--accent-foreground: oklch(0.31 0.002 311.675);
--destructive: oklch(0.633 0.2 34.713);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.992 0 76.652);
--chart-1: oklch(0.992 0 76.652);
--chart-2: oklch(0.992 0 169.669);
--chart-3: oklch(0.992 0 311.724);
--chart-4: oklch(1.015 0 349.674);
--chart-5: oklch(0.992 0 76.651);
}