Cheesecake is a shadcn/ui theme built around a light yellow primary color (#f6f4db) with light indigo accents (#dbdcf6). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the light yellow primary (#f6f4db) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #040401black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfbf8snow | #080802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfbf8snow | #080802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f6f4dbbeige | #f6f4dbbeige |
| Primary foreground | #2d2b0cblack | #2d2b0cblack |
| Secondary | #dbdcf6lavender | #dbdcf6lavender |
| Secondary foreground | #20257emidnightblue | #20257emidnightblue |
| Muted | #dedfedlavender | #121321black |
| Muted foreground | #3d3d4ddarkslategray | #b2b3c2silver |
| Accent | #dbdcf6lavender | #dbdcf6lavender |
| Accent foreground | #20257emidnightblue | #20257emidnightblue |
| Destructive | #d52e10firebrick | #df3011orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6f4dbbeige | #f6f4dbbeige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 12.91:1 | AAA |
| Secondary button | 9.55:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 9.55:1 | AAA |
| Destructive | 4.95:1 | AA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 12.91:1 | AAA |
| Secondary button | 9.55:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 9.55:1 | AAA |
| Destructive | 4.60:1 | AA |
Paste this into your globals.css to use Cheesecake in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 104.007);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.018 283.614);
--muted-foreground: oklch(0.367 0.027 282.616);
--popover: oklch(0.988 0.004 104.042);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.004 104.042);
--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.962 0.034 104.555);
--primary-foreground: oklch(0.283 0.048 106.259);
--secondary: oklch(0.901 0.035 283.274);
--secondary-foreground: oklch(0.328 0.146 272.701);
--accent: oklch(0.901 0.035 283.274);
--accent-foreground: oklch(0.328 0.146 272.701);
--destructive: oklch(0.569 0.207 31.983);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.962 0.034 104.555);
--chart-1: oklch(0.962 0.034 104.555);
--chart-2: oklch(0.901 0.035 283.274);
--chart-3: oklch(0.901 0.035 283.274);
--chart-4: oklch(0.934 0.023 283.534);
--chart-5: oklch(0.964 0.035 104.582);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.014 106.715);
--foreground: oklch(1 0 180);
--muted: oklch(0.194 0.027 281.197);
--muted-foreground: oklch(0.77 0.022 283.459);
--popover: oklch(0.13 0.018 106.715);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.13 0.018 106.715);
--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.962 0.034 104.555);
--primary-foreground: oklch(0.283 0.048 106.259);
--secondary: oklch(0.901 0.035 283.274);
--secondary-foreground: oklch(0.328 0.146 272.701);
--accent: oklch(0.901 0.035 283.274);
--accent-foreground: oklch(0.328 0.146 272.701);
--destructive: oklch(0.588 0.214 31.964);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.962 0.034 104.555);
--chart-1: oklch(0.962 0.034 104.555);
--chart-2: oklch(0.901 0.035 283.274);
--chart-3: oklch(0.901 0.035 283.274);
--chart-4: oklch(0.934 0.023 283.534);
--chart-5: oklch(0.964 0.035 104.582);
}