Gift is a shadcn/ui theme built around a deep yellow primary color (#51550c) with deep purple accents (#550c51). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#51550c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #141505black | #fcfcf8snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #141505black | #fcfcf8snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #141505black | #fcfcf8snow |
| Primary | #51550cdarkolivegreen | #51550cdarkolivegreen |
| Primary foreground | #eef2a1palegoldenrod | #eef2a1palegoldenrod |
| Secondary | #0c5155darkslategray | #0c5155darkslategray |
| Secondary foreground | #a1eef2paleturquoise | #a1eef2paleturquoise |
| Muted | #dceeeflavender | #102223black |
| Muted foreground | #474d4ddarkslategray | #b2b8b8silver |
| Accent | #550c51indigo | #550c51indigo |
| Accent foreground | #f2a1eeplum | #f2a1eeplum |
| Destructive | #bc4d15chocolate | #eb7e47coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #51550cdarkolivegreen | #51550cdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.43:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 7.19:1 | AAA |
| Accent | 7.13:1 | AAA |
| Destructive | 4.99:1 | AA |
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 8.17:1 | AAA |
| Accent | 7.13:1 | AAA |
| Destructive | 7.58:1 | AAA |
Paste this into your globals.css to use Gift in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.189 0.03 111.395);
--muted: oklch(0.936 0.02 200.644);
--muted-foreground: oklch(0.414 0.007 200.679);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.189 0.03 111.395);
--card: oklch(1 0 180);
--card-foreground: oklch(0.189 0.03 111.395);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.431 0.09 112.614);
--primary-foreground: oklch(0.939 0.101 110.63);
--secondary: oklch(0.398 0.063 200.465);
--secondary-foreground: oklch(0.9 0.075 200.09);
--accent: oklch(0.321 0.131 330.418);
--accent-foreground: oklch(0.813 0.136 328.465);
--destructive: oklch(0.559 0.157 42.502);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.09 112.614);
--chart-1: oklch(0.431 0.09 112.614);
--chart-2: oklch(0.398 0.063 200.465);
--chart-3: oklch(0.321 0.131 330.418);
--chart-4: oklch(0.44 0.071 200.521);
--chart-5: oklch(0.436 0.092 112.686);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.989 0.005 108.807);
--muted: oklch(0.238 0.024 200.003);
--muted-foreground: oklch(0.777 0.006 200.791);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.989 0.005 108.807);
--card: oklch(0 0 0);
--card-foreground: oklch(0.989 0.005 108.807);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.431 0.09 112.614);
--primary-foreground: oklch(0.939 0.101 110.63);
--secondary: oklch(0.398 0.063 200.465);
--secondary-foreground: oklch(0.9 0.075 200.09);
--accent: oklch(0.321 0.131 330.418);
--accent-foreground: oklch(0.813 0.136 328.465);
--destructive: oklch(0.705 0.151 45.691);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.431 0.09 112.614);
--chart-1: oklch(0.431 0.09 112.614);
--chart-2: oklch(0.398 0.063 200.465);
--chart-3: oklch(0.321 0.131 330.418);
--chart-4: oklch(0.44 0.071 200.521);
--chart-5: oklch(0.436 0.092 112.686);
}