blue2 is a shadcn/ui theme built around a vivid indigo primary color (#3a14b8) with vivid violet accents (#8c14b8). The light mode uses a neutral background (#f8f6fd). Dark mode keeps the vivid indigo primary (#3a14b8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f6fdghostwhite | #000000black |
| Foreground | #000000black | #f9f9fbghostwhite |
| Card | #f8f6fdghostwhite | #000000black |
| Card foreground | #000000black | #f9f9fbghostwhite |
| Popover | #f8f6fdghostwhite | #000000black |
| Popover foreground | #000000black | #f9f9fbghostwhite |
| Primary | #3a14b8indigo | #3a14b8indigo |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1440b8darkslateblue | #1440b8darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ecedeewhitesmoke | #111113black |
| Muted foreground | #5b5e67dimgray | #989ba4darkgray |
| Accent | #8c14b8darkviolet | #8c14b8darkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6b1405maroon | #f6583ctomato |
| Destructive foreground | #fbb4a7lightpink | #000000black |
| Border | #e1e0e6gainsboro | #1d1c22black |
| Input | #e1e0e6gainsboro | #1d1c22black |
| Ring | #3a14b8indigo | #3a14b8indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 10.63:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 10.63:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 6.37:1 | AA |
Paste this into your globals.css to use blue2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.009 296.91);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.002 270.102);
--muted-foreground: oklch(0.483 0.014 269.857);
--popover: oklch(0.978 0.009 296.91);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.978 0.009 296.91);
--card-foreground: oklch(0 0 0);
--border: oklch(0.91 0.008 296.927);
--input: oklch(0.91 0.008 296.927);
--primary: oklch(0.392 0.224 279.122);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.43 0.194 264.158);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.488 0.23 313.762);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.346 0.123 32.41);
--destructive-foreground: oklch(0.833 0.085 30.181);
--ring: oklch(0.392 0.224 279.122);
--chart-1: oklch(0.392 0.224 279.122);
--chart-2: oklch(0.43 0.194 264.158);
--chart-3: oklch(0.488 0.23 313.762);
--chart-4: oklch(0.452 0.206 264.129);
--chart-5: oklch(0.392 0.229 278.185);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 297.029);
--muted: oklch(0.179 0.003 269.96);
--muted-foreground: oklch(0.691 0.013 269.959);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 297.029);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 297.029);
--border: oklch(0.229 0.012 296.138);
--input: oklch(0.229 0.012 296.138);
--primary: oklch(0.392 0.224 279.122);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.43 0.194 264.158);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.488 0.23 313.762);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.668 0.198 32.307);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.392 0.224 279.122);
--chart-1: oklch(0.392 0.224 279.122);
--chart-2: oklch(0.43 0.194 264.158);
--chart-3: oklch(0.488 0.23 313.762);
--chart-4: oklch(0.452 0.206 264.129);
--chart-5: oklch(0.392 0.229 278.185);
}