Custard is a shadcn/ui theme built around a deep orange primary color (#7f3115) with deep cyan accents (#15637f). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep orange primary (#7f3115) on an orange-tinted background (#0a0605).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0a0605black |
| Foreground | #000000black | #fbf9f9snow |
| Card | #fdf8f7snow | #0e0907black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fefcfbsnow | #0a0605black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #7f3115saddlebrown | #7f3115saddlebrown |
| Primary foreground | #f7dacfbisque | #f7dacfbisque |
| Secondary | #15637fteal | #15637fteal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d3e3e8gainsboro | #17262cdarkslategray |
| Muted foreground | #44494bdarkslategray | #b4b9bbsilver |
| Accent | #15637fteal | #15637fteal |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #651c06maroon | #f1430eorangered |
| Destructive foreground | #fab8a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7f3115saddlebrown | #7f3115saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.49:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.91:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 7.21:1 | AAA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 7.85:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Custard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 41.284);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.018 221.499);
--muted-foreground: oklch(0.402 0.008 221.483);
--popover: oklch(0.992 0.003 41.284);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.005 41.263);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.42 0.116 39.145);
--primary-foreground: oklch(0.909 0.036 41.052);
--secondary: oklch(0.468 0.084 228.181);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.468 0.084 228.181);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.343 0.109 36.281);
--destructive-foreground: oklch(0.837 0.082 37.615);
--ring: oklch(0.42 0.116 39.145);
--chart-1: oklch(0.42 0.116 39.145);
--chart-2: oklch(0.468 0.084 228.181);
--chart-3: oklch(0.468 0.084 228.181);
--chart-4: oklch(0.501 0.091 228.347);
--chart-5: oklch(0.422 0.12 38.886);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.009 45.357);
--foreground: oklch(0.984 0.002 41.29);
--muted: oklch(0.258 0.023 222.78);
--muted-foreground: oklch(0.783 0.006 221.377);
--popover: oklch(0.13 0.009 45.357);
--popover-foreground: oklch(0.984 0.002 41.29);
--card: oklch(0.144 0.01 43.907);
--card-foreground: oklch(0.992 0.001 41.298);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.42 0.116 39.145);
--primary-foreground: oklch(0.909 0.036 41.052);
--secondary: oklch(0.468 0.084 228.181);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.468 0.084 228.181);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.635 0.217 34.972);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.42 0.116 39.145);
--chart-1: oklch(0.42 0.116 39.145);
--chart-2: oklch(0.468 0.084 228.181);
--chart-3: oklch(0.468 0.084 228.181);
--chart-4: oklch(0.501 0.091 228.347);
--chart-5: oklch(0.422 0.12 38.886);
}