Blue is a shadcn/ui theme built around a light green primary color (#daf1e1) with light purple accents (#f1daea). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#daf1e1) on a neutral background (#040704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040704black |
| Foreground | #000000black | #f9fafaghostwhite |
| Card | #ffffffwhite | #040704black |
| Card foreground | #000000black | #f9fafaghostwhite |
| Popover | #ffffffwhite | #040704black |
| Popover foreground | #000000black | #f9fafaghostwhite |
| Primary | #daf1e1gainsboro | #daf1e1gainsboro |
| Primary foreground | #0e2515black | #0e2515black |
| Secondary | #f1daeamistyrose | #f1daeamistyrose |
| Secondary foreground | #6e2b5bpurple | #6e2b5bpurple |
| Muted | #f6eaf2lavenderblush | #150912black |
| Muted foreground | #554450darkslategray | #bbaab6darkgray |
| Accent | #f1daeamistyrose | #f1daeamistyrose |
| Accent foreground | #6e2b5bpurple | #6e2b5bpurple |
| Destructive | #71230amaroon | #e14714orangered |
| Destructive foreground | #f8c5b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #daf1e1gainsboro | #daf1e1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 13.61:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 13.61:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 4.10: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 0 0);
--muted: oklch(0.948 0.017 335.507);
--muted-foreground: oklch(0.409 0.03 336.461);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.936 0.032 154.551);
--primary-foreground: oklch(0.239 0.042 151.269);
--secondary: oklch(0.912 0.032 335.825);
--secondary-foreground: oklch(0.402 0.113 340.002);
--accent: oklch(0.912 0.032 335.825);
--accent-foreground: oklch(0.402 0.113 340.002);
--destructive: oklch(0.374 0.114 37.264);
--destructive-foreground: oklch(0.865 0.064 39.241);
--ring: oklch(0.936 0.032 154.551);
--chart-1: oklch(0.936 0.032 154.551);
--chart-2: oklch(0.912 0.032 335.825);
--chart-3: oklch(0.912 0.032 335.825);
--chart-4: oklch(0.939 0.023 335.622);
--chart-5: oklch(0.937 0.034 154.507);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.011 154.89);
--foreground: oklch(0.985 0.001 155.164);
--muted: oklch(0.163 0.026 337.843);
--muted-foreground: oklch(0.756 0.026 335.792);
--popover: oklch(0.12 0.011 154.89);
--popover-foreground: oklch(0.985 0.001 155.164);
--card: oklch(0.12 0.011 154.89);
--card-foreground: oklch(0.985 0.001 155.164);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.936 0.032 154.551);
--primary-foreground: oklch(0.239 0.042 151.269);
--secondary: oklch(0.912 0.032 335.825);
--secondary-foreground: oklch(0.402 0.113 340.002);
--accent: oklch(0.912 0.032 335.825);
--accent-foreground: oklch(0.402 0.113 340.002);
--destructive: oklch(0.613 0.199 36.42);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.936 0.032 154.551);
--chart-1: oklch(0.936 0.032 154.551);
--chart-2: oklch(0.912 0.032 335.825);
--chart-3: oklch(0.912 0.032 335.825);
--chart-4: oklch(0.939 0.023 335.622);
--chart-5: oklch(0.937 0.034 154.507);
}