Palatable is a shadcn/ui theme built around a muted green primary color (#a3a998) with muted pink accents (#a998a3). The light mode uses a neutral background (#fbfdf6). Dark mode keeps the muted green primary (#a3a998) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf6snow | #060802black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #f9fdf2ivory | #090c03black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f9fdf2ivory | #090c03black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #a3a998darkgray | #a3a998darkgray |
| Primary foreground | #080807black | #080807black |
| Secondary | #98a3a9darkgray | #98a3a9darkgray |
| Secondary foreground | #070808black | #070808black |
| Muted | #e8eef3lavender | #0c1317black |
| Muted foreground | #414649darkslategray | #b6bbbesilver |
| Accent | #a998a3darkgray | #a998a3darkgray |
| Accent foreground | #080708black | #080708black |
| Destructive | #811304maroon | #f94b34tomato |
| Destructive foreground | #fdc2balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a3a998darkgray | #a3a998darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 9.65:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Palatable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 123.784);
--foreground: oklch(0 0 0);
--muted: oklch(0.947 0.009 234.647);
--muted-foreground: oklch(0.39 0.009 234.832);
--popover: oklch(0.987 0.014 123.858);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.014 123.858);
--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.725 0.025 124.157);
--primary-foreground: oklch(0.135 0.004 123.526);
--secondary: oklch(0.708 0.015 234.824);
--secondary-foreground: oklch(0.132 0.002 233.326);
--accent: oklch(0.698 0.025 340.235);
--accent-foreground: oklch(0.131 0.004 339.499);
--destructive: oklch(0.388 0.146 31.178);
--destructive-foreground: oklch(0.864 0.069 27.184);
--ring: oklch(0.725 0.025 124.157);
--chart-1: oklch(0.725 0.025 124.157);
--chart-2: oklch(0.708 0.015 234.824);
--chart-3: oklch(0.698 0.025 340.235);
--chart-4: oklch(0.733 0.014 234.784);
--chart-5: oklch(0.731 0.033 124.324);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.02 123);
--foreground: oklch(0.993 0.001 123.659);
--muted: oklch(0.182 0.014 235.791);
--muted-foreground: oklch(0.789 0.007 234.638);
--popover: oklch(0.147 0.023 123.327);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.023 123.327);
--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.725 0.025 124.157);
--primary-foreground: oklch(0.135 0.004 123.526);
--secondary: oklch(0.708 0.015 234.824);
--secondary-foreground: oklch(0.132 0.002 233.326);
--accent: oklch(0.698 0.025 340.235);
--accent-foreground: oklch(0.131 0.004 339.499);
--destructive: oklch(0.658 0.214 30.846);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.725 0.025 124.157);
--chart-1: oklch(0.725 0.025 124.157);
--chart-2: oklch(0.708 0.015 234.824);
--chart-3: oklch(0.698 0.025 340.235);
--chart-4: oklch(0.733 0.014 234.784);
--chart-5: oklch(0.731 0.033 124.324);
}