Definition is a shadcn/ui theme built around a vivid light pink primary color (#feb4d3) with vivid light blue accents (#b4d3fe). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid light pink primary (#feb4d3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #000000black |
| Foreground | #080205black | #fdfcfcsnow |
| Card | #fdf7f9snow | #030303black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #fdf7f9snow | #030303black |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #feb4d3pink | #feb4d3pink |
| Primary foreground | #7e0235maroon | #7e0235maroon |
| Secondary | #d3feb4palegoldenrod | #d3feb4palegoldenrod |
| Secondary foreground | #0b1900black | #0b1900black |
| Muted | #eff4ecwhitesmoke | #0f130bblack |
| Muted foreground | #55604ddarkolivegreen | #a7b29fdarkgray |
| Accent | #b4d3felightblue | #b4d3felightblue |
| Accent foreground | #02357emidnightblue | #02357emidnightblue |
| Destructive | #8f3504saddlebrown | #f97934coral |
| Destructive foreground | #fddbc9bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #feb4d3pink | #feb4d3pink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 16.10:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 6.00:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 16.10:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 7.52:1 | AAA |
| Destructive | 7.80:1 | AAA |
Paste this into your globals.css to use Definition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 349.776);
--foreground: oklch(0.104 0.023 349.239);
--muted: oklch(0.961 0.012 131.827);
--muted-foreground: oklch(0.474 0.033 132.315);
--popover: oklch(0.981 0.007 349.883);
--popover-foreground: oklch(0.083 0.019 349.239);
--card: oklch(0.981 0.007 349.883);
--card-foreground: oklch(0.083 0.019 349.239);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.847 0.094 352.601);
--primary-foreground: oklch(0.381 0.151 6.427);
--secondary: oklch(0.948 0.106 132.728);
--secondary-foreground: oklch(0.193 0.053 132.491);
--accent: oklch(0.858 0.069 256.826);
--accent-foreground: oklch(0.35 0.133 258.963);
--destructive: oklch(0.452 0.133 42.238);
--destructive-foreground: oklch(0.915 0.046 50.061);
--ring: oklch(0.847 0.094 352.601);
--chart-1: oklch(0.847 0.094 352.601);
--chart-2: oklch(0.948 0.106 132.728);
--chart-3: oklch(0.858 0.069 256.826);
--chart-4: oklch(0.958 0.086 132.5);
--chart-5: oklch(0.846 0.097 352.693);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 349.72);
--muted: oklch(0.18 0.018 132.603);
--muted-foreground: oklch(0.749 0.03 132.052);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.847 0.094 352.601);
--primary-foreground: oklch(0.381 0.151 6.427);
--secondary: oklch(0.948 0.106 132.728);
--secondary-foreground: oklch(0.193 0.053 132.491);
--accent: oklch(0.858 0.069 256.826);
--accent-foreground: oklch(0.35 0.133 258.963);
--destructive: oklch(0.715 0.175 45.683);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.847 0.094 352.601);
--chart-1: oklch(0.847 0.094 352.601);
--chart-2: oklch(0.948 0.106 132.728);
--chart-3: oklch(0.858 0.069 256.826);
--chart-4: oklch(0.958 0.086 132.5);
--chart-5: oklch(0.846 0.097 352.693);
}