Palatable is a shadcn/ui theme built around a pink primary color (#e14770) with muted light pink accents (#decfd3). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#e14770) on a pink-tinted background (#0a0506).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0a0506black |
| Foreground | #150509black | #fdfcfcsnow |
| Card | #fdf6f8snow | #0e0708black |
| Card foreground | #100407black | #ffffffwhite |
| Popover | #fdf6f8snow | #0e0708black |
| Popover foreground | #100407black | #ffffffwhite |
| Primary | #e14770indianred | #e14770indianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e6e0e2gainsboro | #291e21black |
| Secondary foreground | #524246darkslategray | #c7b3b8silver |
| Muted | #f1dfe4mistyrose | #200e13black |
| Muted foreground | #61484edimgray | #b79ea5darkgray |
| Accent | #decfd3lightgrey | #492d34darkslategray |
| Accent foreground | #483238darkslategray | #dec9cfthistle |
| Destructive | #600d06maroon | #f22a18orangered |
| Destructive foreground | #f9a69flightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e14770indianred | #e14770indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 3.93:1 | AA Large |
| Secondary button | 7.23:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 3.93:1 | AA Large |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Palatable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 358.897);
--foreground: oklch(0.145 0.031 2.057);
--muted: oklch(0.92 0.02 359.397);
--muted-foreground: oklch(0.429 0.036 1.074);
--popover: oklch(0.98 0.008 359.013);
--popover-foreground: oklch(0.133 0.027 0.303);
--card: oklch(0.98 0.008 359.013);
--card-foreground: oklch(0.133 0.027 0.303);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.625 0.191 8.684);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.912 0.007 359.004);
--secondary-foreground: oklch(0.397 0.023 0.411);
--accent: oklch(0.867 0.017 359.34);
--accent-foreground: oklch(0.345 0.033 1.409);
--destructive: oklch(0.318 0.117 30.233);
--destructive-foreground: oklch(0.805 0.1 25.221);
--ring: oklch(0.625 0.191 8.684);
--chart-1: oklch(0.625 0.191 8.684);
--chart-2: oklch(0.912 0.007 359.004);
--chart-3: oklch(0.867 0.017 359.34);
--chart-4: oklch(0.936 0.005 358.939);
--chart-5: oklch(0.627 0.198 9.192);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 358.697);
--foreground: oklch(0.991 0.002 358.835);
--muted: oklch(0.192 0.031 3.165);
--muted-foreground: oklch(0.724 0.031 359.977);
--popover: oklch(0.138 0.015 359.706);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.015 359.706);
--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.625 0.191 8.684);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.25 0.017 0.689);
--secondary-foreground: oklch(0.784 0.024 359.636);
--accent: oklch(0.333 0.043 2.319);
--accent-foreground: oklch(0.855 0.024 359.584);
--destructive: oklch(0.617 0.233 30.078);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.191 8.684);
--chart-1: oklch(0.625 0.191 8.684);
--chart-2: oklch(0.25 0.017 0.689);
--chart-3: oklch(0.333 0.043 2.319);
--chart-4: oklch(0.28 0.021 0.792);
--chart-5: oklch(0.627 0.198 9.192);
}