Gifted is a shadcn/ui theme built around a deep pink primary color (#7c1856) with muted light pink accents (#d0c8cd). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the deep pink primary (#7c1856) on a pink-tinted background (#0a0508).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #0a0508black |
| Foreground | #000000black | #ffffffwhite |
| Card | #faf5f8whitesmoke | #0d070bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8fasnow | #0a0508black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7c1856purple | #7c1856purple |
| Primary foreground | #f6d0e7mistyrose | #f6d0e7mistyrose |
| Secondary | #d0c8cdlightgrey | #1a1a1ablack |
| Secondary foreground | #372f34darkslategray | #b3b3b3darkgray |
| Muted | #eae1e6gainsboro | #1e1515black |
| Muted foreground | #5d4654dimgray | #b9a2a2darkgray |
| Accent | #d0c8cdlightgrey | #1a1a1ablack |
| Accent foreground | #372f34darkslategray | #b3b3b3darkgray |
| Destructive | #ca1807firebrick | #f73826orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c1856purple | #7c1856purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 5.77:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Gifted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 339.576);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.011 339.734);
--muted-foreground: oklch(0.424 0.038 341.339);
--popover: oklch(0.983 0.005 339.576);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.007 339.631);
--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.402 0.147 348.217);
--primary-foreground: oklch(0.896 0.052 340.713);
--secondary: oklch(0.841 0.011 339.765);
--secondary-foreground: oklch(0.316 0.015 340.457);
--accent: oklch(0.841 0.011 339.765);
--accent-foreground: oklch(0.316 0.015 340.457);
--destructive: oklch(0.534 0.209 30.073);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.402 0.147 348.217);
--chart-1: oklch(0.402 0.147 348.217);
--chart-2: oklch(0.841 0.011 339.765);
--chart-3: oklch(0.841 0.011 339.765);
--chart-4: oklch(0.865 0.01 339.712);
--chart-5: oklch(0.405 0.151 348.611);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.013 339.578);
--foreground: oklch(1 0 180);
--muted: oklch(0.208 0.013 18.281);
--muted-foreground: oklch(0.732 0.027 17.782);
--popover: oklch(0.127 0.013 339.578);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.015 340.777);
--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.402 0.147 348.217);
--primary-foreground: oklch(0.896 0.052 340.713);
--secondary: oklch(0.216 0 180);
--secondary-foreground: oklch(0.765 0 172.405);
--accent: oklch(0.216 0 180);
--accent-foreground: oklch(0.765 0 172.405);
--destructive: oklch(0.638 0.228 29.874);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.402 0.147 348.217);
--chart-1: oklch(0.402 0.147 348.217);
--chart-2: oklch(0.216 0 180);
--chart-3: oklch(0.216 0 180);
--chart-4: oklch(0.248 0 173.29);
--chart-5: oklch(0.405 0.151 348.611);
}