Ivory is a shadcn/ui theme built around a near-black primary color (#030302) with near-black accents (#030302). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-black primary (#030302) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #080702black |
| Foreground | #090801black | #fbfbf9snow |
| Card | #fcfcf8snow | #0c0b03black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #fefdfbsnow | #080702black |
| Popover foreground | #090801black | #fbfbf9snow |
| Primary | #030302black | #030302black |
| Primary foreground | #bcb57bdarkkhaki | #bcb57bdarkkhaki |
| Secondary | #030202black | #030202black |
| Secondary foreground | #bc947brosybrown | #bc947brosybrown |
| Muted | #e5dcd7gainsboro | #281f1ablack |
| Muted foreground | #64544adimgray | #b5a59bdarkgray |
| Accent | #030302black | #030302black |
| Accent foreground | #a3bc7bdarkseagreen | #a3bc7bdarkseagreen |
| Destructive | #d92b0dfirebrick | #f3492btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030302black | #030302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 9.84:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 5.35:1 | AA |
| Accent | 9.84:1 | AAA |
| Destructive | 4.88:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 9.84:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 9.84:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Ivory in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 100.369);
--foreground: oklch(0.132 0.022 104.513);
--muted: oklch(0.901 0.012 54.316);
--muted-foreground: oklch(0.458 0.027 53.728);
--popover: oklch(0.995 0.003 100.369);
--popover-foreground: oklch(0.132 0.022 104.513);
--card: oklch(0.989 0.005 100.408);
--card-foreground: oklch(0.105 0.017 104.513);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.098 0.008 102.475);
--primary-foreground: oklch(0.765 0.077 101.601);
--secondary: oklch(0.092 0.006 59.205);
--secondary-foreground: oklch(0.698 0.06 53.323);
--accent: oklch(0.098 0.009 123.255);
--accent-foreground: oklch(0.761 0.093 125.583);
--destructive: oklch(0.573 0.212 31.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.098 0.008 102.475);
--chart-1: oklch(0.098 0.008 102.475);
--chart-2: oklch(0.092 0.006 59.205);
--chart-3: oklch(0.098 0.009 123.255);
--chart-4: oklch(0.146 0.01 57.014);
--chart-5: oklch(0.099 0.008 102.642);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.018 103.849);
--foreground: oklch(0.987 0.002 100.362);
--muted: oklch(0.25 0.017 53.572);
--muted-foreground: oklch(0.734 0.024 54.073);
--popover: oklch(0.129 0.018 103.849);
--popover-foreground: oklch(0.987 0.002 100.362);
--card: oklch(0.148 0.02 103.409);
--card-foreground: oklch(0.993 0.001 100.346);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.098 0.008 102.475);
--primary-foreground: oklch(0.765 0.077 101.601);
--secondary: oklch(0.092 0.006 59.205);
--secondary-foreground: oklch(0.698 0.06 53.323);
--accent: oklch(0.098 0.009 123.255);
--accent-foreground: oklch(0.761 0.093 125.583);
--destructive: oklch(0.645 0.211 32.377);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.098 0.008 102.475);
--chart-1: oklch(0.098 0.008 102.475);
--chart-2: oklch(0.092 0.006 59.205);
--chart-3: oklch(0.098 0.009 123.255);
--chart-4: oklch(0.146 0.01 57.014);
--chart-5: oklch(0.099 0.008 102.642);
}