2 is a shadcn/ui theme built around a vivid teal primary color (#00eeff) with vivid yellow accents (#eeff00). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid teal primary (#00eeff) on a teal-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #050a0ablack |
| Foreground | #020c0dblack | #fcfdfdwhite |
| Card | #f7fdfdmintcream | #070d0eblack |
| Card foreground | #020809black | #ffffffwhite |
| Popover | #f7fdfdmintcream | #070d0eblack |
| Popover foreground | #020809black | #ffffffwhite |
| Primary | #00eeffaqua | #00eeffaqua |
| Primary foreground | #003033darkslategray | #003033darkslategray |
| Secondary | #ff00eemagenta | #ff00eemagenta |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eee7eelavender | #181117black |
| Muted foreground | #473946darkslategray | #c6b8c5silver |
| Accent | #eeff00yellow | #eeff00yellow |
| Accent foreground | #303300darkgreen | #303300darkgreen |
| Destructive | #a2150bfirebrick | #e01d10crimson |
| Destructive foreground | #fde4e2mistyrose | #ffffffwhite |
| Border | #e8ededlavender | #191f1fblack |
| Input | #e8ededlavender | #191f1fblack |
| Ring | #00eeffaqua | #00eeffaqua |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 9.97:1 | AAA |
| Secondary button | 3.23:1 | AA Large |
| Muted text | 8.91:1 | AAA |
| Accent | 11.84:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 9.97:1 | AAA |
| Secondary button | 3.23:1 | AA Large |
| Muted text | 9.78:1 | AAA |
| Accent | 11.84:1 | AAA |
| Destructive | 4.81:1 | AA |
Paste this into your globals.css to use 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 202.178);
--foreground: oklch(0.144 0.018 200.12);
--muted: oklch(0.936 0.011 327.665);
--muted-foreground: oklch(0.364 0.029 328.302);
--popover: oklch(0.989 0.007 202.142);
--popover-foreground: oklch(0.125 0.016 199.579);
--card: oklch(0.989 0.007 202.142);
--card-foreground: oklch(0.125 0.016 199.579);
--border: oklch(0.942 0.005 202.158);
--input: oklch(0.942 0.005 202.158);
--primary: oklch(0.865 0.148 204.017);
--primary-foreground: oklch(0.28 0.048 202.347);
--secondary: oklch(0.692 0.312 332.109);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.955 0.216 114.589);
--accent-foreground: oklch(0.307 0.069 113.781);
--destructive: oklch(0.457 0.175 29.692);
--destructive-foreground: oklch(0.939 0.027 22.562);
--ring: oklch(0.865 0.148 204.017);
--chart-1: oklch(0.865 0.148 204.017);
--chart-2: oklch(0.692 0.312 332.109);
--chart-3: oklch(0.955 0.216 114.589);
--chart-4: oklch(0.695 0.31 331.875);
--chart-5: oklch(0.874 0.149 204.15);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.009 200.685);
--foreground: oklch(0.993 0.002 202.195);
--muted: oklch(0.189 0.017 328.388);
--muted-foreground: oklch(0.799 0.024 327.836);
--popover: oklch(0.153 0.011 201.327);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.011 201.327);
--card-foreground: oklch(1 0 180);
--border: oklch(0.233 0.009 201.834);
--input: oklch(0.233 0.009 201.834);
--primary: oklch(0.865 0.148 204.017);
--primary-foreground: oklch(0.28 0.048 202.347);
--secondary: oklch(0.692 0.312 332.109);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.955 0.216 114.589);
--accent-foreground: oklch(0.307 0.069 113.781);
--destructive: oklch(0.579 0.225 29.741);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.865 0.148 204.017);
--chart-1: oklch(0.865 0.148 204.017);
--chart-2: oklch(0.692 0.312 332.109);
--chart-3: oklch(0.955 0.216 114.589);
--chart-4: oklch(0.695 0.31 331.875);
--chart-5: oklch(0.874 0.149 204.15);
}