Next is a shadcn/ui theme built around a vivid deep pink primary color (#680d48) with muted light pink accents (#e6e0e4). The light mode uses a neutral background (#fcf7fb). Dark mode keeps the vivid deep pink primary (#680d48) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fbsnow | #040103black |
| Foreground | #13060fblack | #f8f6f8whitesmoke |
| Card | #fcf7fbsnow | #040103black |
| Card foreground | #13060fblack | #f8f6f8whitesmoke |
| Popover | #fcf7fbsnow | #040103black |
| Popover foreground | #13060fblack | #f8f6f8whitesmoke |
| Primary | #680d48purple | #680d48purple |
| Primary foreground | #f5b2depink | #f5b2depink |
| Secondary | #e6e0e4gainsboro | #1c171ablack |
| Secondary foreground | #53414ddarkslategray | #b9acb5darkgray |
| Muted | #e9e2e7gainsboro | #1d161bblack |
| Muted foreground | #584652darkslategray | #b9a7b3darkgray |
| Accent | #e6e0e4gainsboro | #1c171ablack |
| Accent foreground | #53414ddarkslategray | #b9acb5darkgray |
| Destructive | #730f07maroon | #f13022orangered |
| Destructive foreground | #fab7b2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #680d48purple | #680d48purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Next in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 338.126);
--foreground: oklch(0.15 0.029 341.088);
--muted: oklch(0.92 0.01 338.208);
--muted-foreground: oklch(0.418 0.029 339.392);
--popover: oklch(0.982 0.007 338.126);
--popover-foreground: oklch(0.15 0.029 341.088);
--card: oklch(0.982 0.007 338.126);
--card-foreground: oklch(0.15 0.029 341.088);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0.135 346.919);
--primary-foreground: oklch(0.839 0.095 340.197);
--secondary: oklch(0.912 0.009 338.197);
--secondary-foreground: oklch(0.399 0.03 339.503);
--accent: oklch(0.912 0.009 338.197);
--accent-foreground: oklch(0.399 0.03 339.503);
--destructive: oklch(0.358 0.135 29.659);
--destructive-foreground: oklch(0.84 0.079 23.494);
--ring: oklch(0.351 0.135 346.919);
--chart-1: oklch(0.351 0.135 346.919);
--chart-2: oklch(0.912 0.009 338.197);
--chart-3: oklch(0.912 0.009 338.197);
--chart-4: oklch(0.936 0.007 338.135);
--chart-5: oklch(0.354 0.138 347.266);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.017 338.313);
--foreground: oklch(0.976 0.003 338.043);
--muted: oklch(0.211 0.014 339.346);
--muted-foreground: oklch(0.747 0.025 338.678);
--popover: oklch(0.085 0.017 338.313);
--popover-foreground: oklch(0.976 0.003 338.043);
--card: oklch(0.085 0.017 338.313);
--card-foreground: oklch(0.976 0.003 338.043);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.351 0.135 346.919);
--primary-foreground: oklch(0.839 0.095 340.197);
--secondary: oklch(0.212 0.009 338.863);
--secondary-foreground: oklch(0.757 0.02 338.527);
--accent: oklch(0.212 0.009 338.863);
--accent-foreground: oklch(0.757 0.02 338.527);
--destructive: oklch(0.621 0.228 29.443);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.135 346.919);
--chart-1: oklch(0.351 0.135 346.919);
--chart-2: oklch(0.212 0.009 338.863);
--chart-3: oklch(0.212 0.009 338.863);
--chart-4: oklch(0.244 0.012 338.941);
--chart-5: oklch(0.354 0.138 347.266);
}