Gifted is a shadcn/ui theme built around a vivid green primary color (#1ea314) with neutral gray accents (#cccccc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#1ea314) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030802black | #f9fbf9mintcream |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010401black | #fcfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030802black | #f9fbf9mintcream |
| Primary | #1ea314forestgreen | #1ea314forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cccccclightgrey | #1c1c1cblack |
| Secondary foreground | #333333darkslategray | #b5b5b5silver |
| Muted | #e6d1d1gainsboro | #2e1919black |
| Muted foreground | #574747darkslategray | #b8a8a8darkgray |
| Accent | #cccccclightgrey | #1c1c1cblack |
| Accent foreground | #333333darkslategray | #b5b5b5silver |
| Destructive | #c51c02firebrick | #fd2808orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1ea314forestgreen | #1ea314forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 3.31:1 | AA Large |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 5.93:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 3.31:1 | AA Large |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.84:1 | AA Large |
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.123 0.023 141.931);
--muted: oklch(0.877 0.024 17.617);
--muted-foreground: oklch(0.415 0.022 18.058);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.023 141.931);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.097 0.018 141.931);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.624 0.203 142.158);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.845 0 164.055);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(0.845 0 164.055);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.527 0.203 31.146);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.624 0.203 142.158);
--chart-1: oklch(0.624 0.203 142.158);
--chart-2: oklch(0.845 0 164.055);
--chart-3: oklch(0.845 0 164.055);
--chart-4: oklch(0.869 0 165.964);
--chart-5: oklch(0.632 0.207 142.175);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.004 143.612);
--muted: oklch(0.243 0.035 19.884);
--muted-foreground: oklch(0.745 0.018 17.572);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.004 143.612);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 143.624);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.624 0.203 142.158);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.227 0 164.055);
--secondary-foreground: oklch(0.773 0 180);
--accent: oklch(0.227 0 164.055);
--accent-foreground: oklch(0.773 0 180);
--destructive: oklch(0.636 0.244 31.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.624 0.203 142.158);
--chart-1: oklch(0.624 0.203 142.158);
--chart-2: oklch(0.227 0 164.055);
--chart-3: oklch(0.227 0 164.055);
--chart-4: oklch(0.259 0 167.471);
--chart-5: oklch(0.632 0.207 142.175);
}