BLUE is a shadcn/ui theme built around a vivid light blue primary color (#82aaff) with neutral gray accents (#302e2c). The light mode uses a blue-tinted background (#e8f4fd). Dark mode keeps the vivid light blue primary (#82aaff) on a blue-tinted background (#090b10).
| Token | Light | Dark |
|---|---|---|
| Background | #e8f4fdaliceblue | #090b10black |
| Foreground | #191919black | #fefefewhite |
| Card | #d1e8fflavender | #0f111ablack |
| Card foreground | #191919black | #fefefewhite |
| Popover | #d1e8fflavender | #0e0a07black |
| Popover foreground | #fefefewhite | #fefefewhite |
| Primary | #82aafflightskyblue | #82aafflightskyblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #302e2cdarkslategray | #302e2cdarkslategray |
| Secondary foreground | #cac6c4silver | #cac6c4silver |
| Muted | #201813black | #201813black |
| Muted foreground | #b1adaadarkgray | #b1adaadarkgray |
| Accent | #302e2cdarkslategray | #302e2cdarkslategray |
| Accent foreground | #cac6c4silver | #cac6c4silver |
| Destructive | #800000maroon | #800000maroon |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #221e1bblack | #221e1bblack |
| Input | #221e1bblack | #221e1bblack |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.71:1 | AAA |
| Text on card | 13.95:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 10.94:1 | AAA |
| Text on background | 19.51:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 9.14:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 10.94:1 | AAA |
Paste this into your globals.css to use BLUE in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.961 0.017 242.753);
--foreground: oklch(0.213 0 168.69);
--muted: oklch(0.218 0.015 57.374);
--muted-foreground: oklch(0.749 0.006 58.254);
--popover: oklch(0.921 0.04 248.259);
--popover-foreground: oklch(0.997 0 180);
--card: oklch(0.921 0.04 248.264);
--card-foreground: oklch(0.213 0 168.69);
--border: oklch(0.239 0.009 57.85);
--input: oklch(0.239 0.009 57.85);
--primary: oklch(0.744 0.131 264.279);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.301 0.005 58.124);
--secondary-foreground: oklch(0.83 0.005 58.28);
--accent: oklch(0.301 0.005 58.124);
--accent-foreground: oklch(0.83 0.005 58.28);
--destructive: oklch(0.377 0.155 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(0.744 0.131 264.279);
--chart-2: oklch(0.301 0.005 58.124);
--chart-3: oklch(0.301 0.005 58.124);
--chart-4: oklch(0.332 0.006 58.116);
--chart-5: oklch(0.743 0.135 264.222);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.15 0.011 267.691);
--foreground: oklch(0.997 0 180);
--muted: oklch(0.218 0.015 57.374);
--muted-foreground: oklch(0.749 0.006 58.254);
--popover: oklch(0.147 0.01 60.947);
--popover-foreground: oklch(0.997 0 180);
--card: oklch(0.18 0.019 274.648);
--card-foreground: oklch(0.997 0 180);
--border: oklch(0.239 0.009 57.85);
--input: oklch(0.239 0.009 57.85);
--primary: oklch(0.744 0.131 264.279);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.301 0.005 58.124);
--secondary-foreground: oklch(0.83 0.005 58.28);
--accent: oklch(0.301 0.005 58.124);
--accent-foreground: oklch(0.83 0.005 58.28);
--destructive: oklch(0.377 0.155 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(0.744 0.131 264.279);
--chart-2: oklch(0.301 0.005 58.124);
--chart-3: oklch(0.301 0.005 58.124);
--chart-4: oklch(0.332 0.006 58.116);
--chart-5: oklch(0.743 0.135 264.222);
}