BlueAndPurple is a shadcn/ui theme built around a vivid indigo primary color (#5d32f5) with muted light blue accents (#ced2e3). The light mode uses a neutral background (#e8e8e8). Dark mode keeps the vivid indigo primary (#5d32f5) on a neutral background (#121212).
| Token | Light | Dark |
|---|---|---|
| Background | #e8e8e8lavender | #121212black |
| Foreground | #040611black | #fcfcfdwhite |
| Card | #fafafasnow | #080912black |
| Card foreground | #03050cblack | #ffffffwhite |
| Popover | #fafafasnow | #080912black |
| Popover foreground | #03050cblack | #ffffffwhite |
| Primary | #5d32f5blueviolet | #5d32f5blueviolet |
| Primary foreground | #e8e8e8lavender | #f7f5ffghostwhite |
| Secondary | #3d61ffroyalblue | #3d61ffroyalblue |
| Secondary foreground | #f0f0f0whitesmoke | #ffffffwhite |
| Muted | #d7d9e0gainsboro | #1f2128black |
| Muted foreground | #555868dimgray | #979baadarkgray |
| Accent | #ced2e3lightgrey | #212535darkslategray |
| Accent foreground | #2e3452darkslategray | #b7bcd2lightsteelblue |
| Destructive | #ff0d00red | #f22c21crimson |
| Destructive foreground | #ffe7e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #000000black | #2f3e54darkslategray |
| Ring | #3d61ffroyalblue | #3d61ffroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.49:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 5.27:1 | AA |
| Secondary button | 4.24:1 | AA Large |
| Muted text | 4.97:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.35:1 | AA Large |
| Text on background | 18.29:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 4.83:1 | AA |
| Muted text | 5.80:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use BlueAndPurple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.931 0 171.254);
--foreground: oklch(0.126 0.026 268.939);
--muted: oklch(0.885 0.01 276.021);
--muted-foreground: oklch(0.464 0.025 275.387);
--popover: oklch(0.985 0 170.538);
--popover-foreground: oklch(0.114 0.022 268.251);
--card: oklch(0.985 0 170.538);
--card-foreground: oklch(0.114 0.022 268.251);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0 0 0);
--primary: oklch(0.513 0.264 281.703);
--primary-foreground: oklch(0.931 0 171.254);
--secondary: oklch(0.567 0.237 267.896);
--secondary-foreground: oklch(0.955 0 180);
--accent: oklch(0.866 0.024 275.781);
--accent-foreground: oklch(0.335 0.052 273.604);
--destructive: oklch(0.63 0.256 29.629);
--destructive-foreground: oklch(0.947 0.026 21.258);
--ring: oklch(0.567 0.237 267.896);
--chart-1: oklch(0.513 0.264 281.703);
--chart-2: oklch(0.567 0.237 267.896);
--chart-3: oklch(0.866 0.024 275.781);
--chart-4: oklch(0.596 0.219 269.061);
--chart-5: oklch(0.511 0.27 280.985);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.182 0 164.055);
--foreground: oklch(0.991 0.001 276.148);
--muted: oklch(0.249 0.013 275.396);
--muted-foreground: oklch(0.691 0.023 275.711);
--popover: oklch(0.144 0.019 273.129);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.019 273.129);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.361 0.043 256.858);
--primary: oklch(0.513 0.264 281.703);
--primary-foreground: oklch(0.975 0.012 296.098);
--secondary: oklch(0.567 0.237 267.896);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.269 0.031 274.373);
--accent-foreground: oklch(0.798 0.032 275.616);
--destructive: oklch(0.62 0.232 29.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.237 267.896);
--chart-1: oklch(0.513 0.264 281.703);
--chart-2: oklch(0.567 0.237 267.896);
--chart-3: oklch(0.269 0.031 274.373);
--chart-4: oklch(0.596 0.219 269.061);
--chart-5: oklch(0.511 0.27 280.985);
}