blue is a shadcn/ui theme built around a vivid blue primary color (#547ff8) with vivid blue accents (#547ff8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#547ff8) on an indigo-tinted background (#1a1a33).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #1a1a33midnightblue |
| Foreground | #02050dblack | #f9fafaghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020309black | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #02050dblack | #f9fafaghostwhite |
| Primary | #547ff8cornflowerblue | #547ff8cornflowerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #f8547flightcoral | #f8547flightcoral |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5e1e2gainsboro | #4a5870dimgray |
| Muted foreground | #534146darkslategray | #b3b3b3darkgray |
| Accent | #547ff8cornflowerblue | #547ff8cornflowerblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ef4444tomato | #ed4545tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #f1f2f4whitesmoke | #1f2937darkslategray |
| Input | #f1f2f4whitesmoke | #1f2937darkslategray |
| Ring | #547ff8cornflowerblue | #547ff8cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 3.62:1 | AA Large |
| Secondary button | 3.20:1 | AA Large |
| Muted text | 7.32:1 | AAA |
| Accent | 3.64:1 | AA Large |
| Destructive | 3.76:1 | AA Large |
| Text on background | 16.20:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 3.62:1 | AA Large |
| Secondary button | 3.20:1 | AA Large |
| Muted text | 3.41:1 | AA Large |
| Accent | 3.64:1 | AA Large |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.022 260.58);
--muted: oklch(0.913 0.004 358.924);
--muted-foreground: oklch(0.396 0.026 0.564);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.022 260.58);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.019 260.161);
--border: oklch(0.96 0.003 270.096);
--input: oklch(0.96 0.003 270.096);
--primary: oklch(0.629 0.186 266.143);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.678 0.201 8.191);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.628 0.187 266.375);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.629 0.186 266.143);
--chart-1: oklch(0.629 0.186 266.143);
--chart-2: oklch(0.678 0.201 8.191);
--chart-3: oklch(0.628 0.187 266.375);
--chart-4: oklch(0.698 0.186 6.814);
--chart-5: oklch(0.627 0.192 265.991);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.232 0.048 282.033);
--foreground: oklch(0.984 0.001 270.112);
--muted: oklch(0.459 0.042 260.108);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.001 270.112);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 270.116);
--border: oklch(0.279 0.03 256.848);
--input: oklch(0.279 0.03 256.848);
--primary: oklch(0.629 0.186 266.143);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.678 0.201 8.191);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.628 0.187 266.375);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.634 0.204 25.157);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.628 0.187 266.375);
--chart-1: oklch(0.629 0.186 266.143);
--chart-2: oklch(0.678 0.201 8.191);
--chart-3: oklch(0.628 0.187 266.375);
--chart-4: oklch(0.698 0.186 6.814);
--chart-5: oklch(0.627 0.192 265.991);
}