Next is a shadcn/ui theme built around a vivid violet primary color (#ab50f1) with vivid green accents (#96f150). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#ab50f1) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08050ablack |
| Foreground | #000000black | #f8f5fawhitesmoke |
| Card | #ffffffwhite | #08050ablack |
| Card foreground | #000000black | #f8f5fawhitesmoke |
| Popover | #ffffffwhite | #08050ablack |
| Popover foreground | #000000black | #f8f5fawhitesmoke |
| Primary | #ab50f1mediumorchid | #ab50f1mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #96f150greenyellow | #96f150greenyellow |
| Secondary foreground | #070e01black | #070e01black |
| Muted | #eaf2e3beige | #131c0dblack |
| Muted foreground | #545850dimgray | #aaafa7darkgray |
| Accent | #96f150greenyellow | #96f150greenyellow |
| Accent foreground | #070e01black | #070e01black |
| Destructive | #8e1d0bdarkred | #ee452btomato |
| Destructive foreground | #fbd6d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ab50f1mediumorchid | #ab50f1mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.06:1 | AA Large |
| Secondary button | 13.96:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 13.96:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 4.06:1 | AA Large |
| Secondary button | 13.96:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 13.96:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Next in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.022 131.288);
--muted-foreground: oklch(0.455 0.015 131.372);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.621 0.233 306.806);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.87 0.211 134.292);
--secondary-foreground: oklch(0.151 0.035 129.663);
--accent: oklch(0.87 0.211 134.292);
--accent-foreground: oklch(0.151 0.035 129.663);
--destructive: oklch(0.422 0.151 31.593);
--destructive-foreground: oklch(0.905 0.043 28.249);
--ring: oklch(0.621 0.233 306.806);
--chart-1: oklch(0.621 0.233 306.806);
--chart-2: oklch(0.87 0.211 134.292);
--chart-3: oklch(0.87 0.211 134.292);
--chart-4: oklch(0.878 0.198 133.873);
--chart-5: oklch(0.62 0.239 306.586);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.014 312.028);
--foreground: oklch(0.973 0.007 311.021);
--muted: oklch(0.213 0.031 132.547);
--muted-foreground: oklch(0.748 0.013 131.238);
--popover: oklch(0.125 0.014 312.028);
--popover-foreground: oklch(0.973 0.007 311.021);
--card: oklch(0.125 0.014 312.028);
--card-foreground: oklch(0.973 0.007 311.021);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.621 0.233 306.806);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.87 0.211 134.292);
--secondary-foreground: oklch(0.151 0.035 129.663);
--accent: oklch(0.87 0.211 134.292);
--accent-foreground: oklch(0.151 0.035 129.663);
--destructive: oklch(0.633 0.21 31.647);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.621 0.233 306.806);
--chart-1: oklch(0.621 0.233 306.806);
--chart-2: oklch(0.87 0.211 134.292);
--chart-3: oklch(0.87 0.211 134.292);
--chart-4: oklch(0.878 0.198 133.873);
--chart-5: oklch(0.62 0.239 306.586);
}