Gifted is a shadcn/ui theme built around a muted blue primary color (#98a6b9) with near-white accents (#e8e8e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#98a6b9) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030507black |
| Foreground | #000000black | #f9fafbghostwhite |
| Card | #fcfcfcsnow | #05070bblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #ffffffwhite | #030507black |
| Popover foreground | #000000black | #f9fafbghostwhite |
| Primary | #98a6b9darkgray | #98a6b9darkgray |
| Primary foreground | #0c0f12black | #0c0f12black |
| Secondary | #e8e8e9lavender | #13161bblack |
| Secondary foreground | #4d4f51darkslategray | #a3aebddarkgray |
| Muted | #e8ecf2lavender | #0d1117black |
| Muted foreground | #5b6471dimgray | #8e97a4lightslategray |
| Accent | #e8e8e9lavender | #13161bblack |
| Accent foreground | #4d4f51darkslategray | #a3aebddarkgray |
| Destructive | #a91204firebrick | #e51806red |
| Destructive foreground | #fee4e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #98a6b9darkgray | #98a6b9darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 5.06:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.70:1 | AA |
Paste this into your globals.css to use Gifted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.009 256.691);
--muted-foreground: oklch(0.5 0.024 256.785);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.719 0.032 256.78);
--primary-foreground: oklch(0.166 0.008 256.787);
--secondary: oklch(0.931 0.001 256.656);
--secondary-foreground: oklch(0.426 0.003 256.684);
--accent: oklch(0.931 0.001 256.656);
--accent-foreground: oklch(0.426 0.003 256.684);
--destructive: oklch(0.468 0.183 30.182);
--destructive-foreground: oklch(0.939 0.03 23.914);
--ring: oklch(0.719 0.032 256.78);
--chart-1: oklch(0.719 0.032 256.78);
--chart-2: oklch(0.931 0.001 256.656);
--chart-3: oklch(0.931 0.001 256.656);
--chart-4: oklch(0.954 0.001 256.654);
--chart-5: oklch(0.717 0.037 256.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.009 250.961);
--foreground: oklch(0.984 0.002 256.66);
--muted: oklch(0.176 0.014 256.826);
--muted-foreground: oklch(0.674 0.022 256.756);
--popover: oklch(0.111 0.009 250.961);
--popover-foreground: oklch(0.984 0.002 256.66);
--card: oklch(0.127 0.011 251.033);
--card-foreground: oklch(0.992 0.001 256.656);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.719 0.032 256.78);
--primary-foreground: oklch(0.166 0.008 256.787);
--secondary: oklch(0.2 0.01 256.787);
--secondary-foreground: oklch(0.747 0.024 256.756);
--accent: oklch(0.2 0.01 256.787);
--accent-foreground: oklch(0.747 0.024 256.756);
--destructive: oklch(0.585 0.231 30.033);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.719 0.032 256.78);
--chart-1: oklch(0.719 0.032 256.78);
--chart-2: oklch(0.2 0.01 256.787);
--chart-3: oklch(0.2 0.01 256.787);
--chart-4: oklch(0.232 0.013 256.795);
--chart-5: oklch(0.717 0.037 256.791);
}