Gifted is a shadcn/ui theme built around a vivid blue primary color (#233ae7) with vivid yellow accents (#e7d023). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid blue primary (#233ae7) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #010204black |
| Foreground | #040610black | #f8f9fbghostwhite |
| Card | #fbfbfeghostwhite | #010204black |
| Card foreground | #040610black | #f8f9fbghostwhite |
| Popover | #fbfbfeghostwhite | #010204black |
| Popover foreground | #040610black | #f8f9fbghostwhite |
| Primary | #233ae7royalblue | #233ae7royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e7d023gold | #e7d023gold |
| Secondary foreground | #373106black | #373106black |
| Muted | #e7e6dagainsboro | #252418black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #e7d023gold | #e7d023gold |
| Accent foreground | #373106black | #373106black |
| Destructive | #b22f0afirebrick | #f24b1corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #233ae7royalblue | #233ae7royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Gifted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 280.268);
--foreground: oklch(0.126 0.024 274.489);
--muted: oklch(0.922 0.016 100.591);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.989 0.004 280.268);
--popover-foreground: oklch(0.126 0.024 274.489);
--card: oklch(0.989 0.004 280.268);
--card-foreground: oklch(0.126 0.024 274.489);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.472 0.254 267.237);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.85 0.171 100.912);
--secondary-foreground: oklch(0.312 0.06 101.507);
--accent: oklch(0.85 0.171 100.912);
--accent-foreground: oklch(0.312 0.06 101.507);
--destructive: oklch(0.507 0.173 34.529);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.472 0.254 267.237);
--chart-1: oklch(0.472 0.254 267.237);
--chart-2: oklch(0.85 0.171 100.912);
--chart-3: oklch(0.85 0.171 100.912);
--chart-4: oklch(0.858 0.167 101.253);
--chart-5: oklch(0.471 0.262 266.758);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.011 275.81);
--foreground: oklch(0.982 0.004 280.273);
--muted: oklch(0.257 0.021 101.421);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.082 0.011 275.81);
--popover-foreground: oklch(0.982 0.004 280.273);
--card: oklch(0.082 0.011 275.81);
--card-foreground: oklch(0.982 0.004 280.273);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.472 0.254 267.237);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.85 0.171 100.912);
--secondary-foreground: oklch(0.312 0.06 101.507);
--accent: oklch(0.85 0.171 100.912);
--accent-foreground: oklch(0.312 0.06 101.507);
--destructive: oklch(0.644 0.211 35.13);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.472 0.254 267.237);
--chart-1: oklch(0.472 0.254 267.237);
--chart-2: oklch(0.85 0.171 100.912);
--chart-3: oklch(0.85 0.171 100.912);
--chart-4: oklch(0.858 0.167 101.253);
--chart-5: oklch(0.471 0.262 266.758);
}