Next is a shadcn/ui theme built around a vivid violet primary color (#580995) with vivid teal accents (#099558). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#580995) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #000000black |
| Foreground | #0e0514black | #ffffffwhite |
| Card | #faf7fdghostwhite | #000000black |
| Card foreground | #0e0514black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #000000black |
| Popover foreground | #0e0514black | #ffffffwhite |
| Primary | #580995indigo | #580995indigo |
| Primary foreground | #ebd4fclavender | #ebd4fclavender |
| Secondary | #955809saddlebrown | #955809saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeebe8linen | #171511black |
| Muted foreground | #575452dimgray | #adaba8darkgray |
| Accent | #099558seagreen | #099558seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b61d0cfirebrick | #e1230eorangered |
| Destructive foreground | #fef6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #580995indigo | #580995indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 5.70:1 | AA |
| Muted text | 6.32:1 | AA |
| Accent | 3.86:1 | AA Large |
| Destructive | 6.21:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 5.70:1 | AA |
| Muted text | 7.95:1 | AAA |
| Accent | 3.86:1 | AA Large |
| Destructive | 4.70:1 | AA |
Paste this into your globals.css to use Next in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.009 311.003);
--foreground: oklch(0.141 0.036 309.834);
--muted: oklch(0.941 0.005 74.919);
--muted-foreground: oklch(0.449 0.005 74.879);
--popover: oklch(0.98 0.009 311.003);
--popover-foreground: oklch(0.141 0.036 309.834);
--card: oklch(0.98 0.009 311.003);
--card-foreground: oklch(0.141 0.036 309.834);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.38 0.193 302.133);
--primary-foreground: oklch(0.901 0.06 310.512);
--secondary: oklch(0.519 0.113 64.494);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.589 0.14 156.158);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.499 0.189 30.498);
--destructive-foreground: oklch(0.98 0.009 25.064);
--ring: oklch(0.38 0.193 302.133);
--chart-1: oklch(0.38 0.193 302.133);
--chart-2: oklch(0.519 0.113 64.494);
--chart-3: oklch(0.589 0.14 156.158);
--chart-4: oklch(0.554 0.122 64.227);
--chart-5: oklch(0.382 0.197 301.67);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.008 74.643);
--muted-foreground: oklch(0.743 0.005 74.915);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.38 0.193 302.133);
--primary-foreground: oklch(0.901 0.06 310.512);
--secondary: oklch(0.519 0.113 64.494);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.589 0.14 156.158);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.584 0.223 30.468);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.38 0.193 302.133);
--chart-1: oklch(0.38 0.193 302.133);
--chart-2: oklch(0.519 0.113 64.494);
--chart-3: oklch(0.589 0.14 156.158);
--chart-4: oklch(0.554 0.122 64.227);
--chart-5: oklch(0.382 0.197 301.67);
}