Aperitif is a shadcn/ui theme built around a vivid deep red primary color (#500210) with muted light red accents (#d7ccce). The light mode uses a neutral background (#fdf6f8). Dark mode keeps the vivid deep red primary (#500210) on a red-tinted background (#100507).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f8snow | #100507black |
| Foreground | #150508black | #fdfcfcsnow |
| Card | #fdf2f4lavenderblush | #140608black |
| Card foreground | #110406black | #ffffffwhite |
| Popover | #fdf6f8snow | #100507black |
| Popover foreground | #150508black | #fdfcfcsnow |
| Primary | #500210maroon | #500210maroon |
| Primary foreground | #fd879dlightcoral | #fd879dlightcoral |
| Secondary | #e1dfe0gainsboro | #201d1dblack |
| Secondary foreground | #4a4546darkslategray | #bcb3b5silver |
| Muted | #e8dee0gainsboro | #211719black |
| Muted foreground | #624b50dimgray | #b49da1darkgray |
| Accent | #d7cccelightgrey | #312528darkslategray |
| Accent foreground | #3f3134darkslategray | #cdbcbfsilver |
| Destructive | #8b2b0esaddlebrown | #d14115chocolate |
| Destructive foreground | #fadad1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #500210maroon | #500210maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.70:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 4.70:1 | AA |
Paste this into your globals.css to use Aperitif in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 4.52);
--foreground: oklch(0.145 0.031 7.559);
--muted: oklch(0.909 0.011 4.622);
--muted-foreground: oklch(0.439 0.031 6.149);
--popover: oklch(0.98 0.008 4.52);
--popover-foreground: oklch(0.145 0.031 7.559);
--card: oklch(0.97 0.012 4.628);
--card-foreground: oklch(0.132 0.027 6.163);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.275 0.108 19.532);
--primary-foreground: oklch(0.758 0.144 9.45);
--secondary: oklch(0.907 0.002 4.372);
--secondary-foreground: oklch(0.396 0.006 4.705);
--accent: oklch(0.853 0.013 4.699);
--accent-foreground: oklch(0.33 0.02 5.874);
--destructive: oklch(0.432 0.136 36.215);
--destructive-foreground: oklch(0.913 0.038 37.608);
--ring: oklch(0.275 0.108 19.532);
--chart-1: oklch(0.275 0.108 19.532);
--chart-2: oklch(0.907 0.002 4.372);
--chart-3: oklch(0.853 0.013 4.699);
--chart-4: oklch(0.93 0.002 4.355);
--chart-5: oklch(0.276 0.11 19.901);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.024 5.917);
--foreground: oklch(0.992 0.001 4.343);
--muted: oklch(0.218 0.016 6.174);
--muted-foreground: oklch(0.717 0.027 5.3);
--popover: oklch(0.134 0.024 5.917);
--popover-foreground: oklch(0.992 0.001 4.343);
--card: oklch(0.146 0.027 7.278);
--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.275 0.108 19.532);
--primary-foreground: oklch(0.758 0.144 9.45);
--secondary: oklch(0.234 0.006 4.963);
--secondary-foreground: oklch(0.775 0.01 4.652);
--accent: oklch(0.281 0.019 6.043);
--accent-foreground: oklch(0.81 0.019 4.929);
--destructive: oklch(0.578 0.188 35.819);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.275 0.108 19.532);
--chart-1: oklch(0.275 0.108 19.532);
--chart-2: oklch(0.234 0.006 4.963);
--chart-3: oklch(0.281 0.019 6.043);
--chart-4: oklch(0.266 0.007 5.007);
--chart-5: oklch(0.276 0.11 19.901);
}