Blue/Green is a shadcn/ui theme built around a blue primary color (#3e63dd) with muted light indigo accents (#f0f0f3). The light mode uses an indigo-tinted background (#f3f3fb). Dark mode keeps the blue primary (#3e63dd) on an indigo-tinted background (#101018).
| Token | Light | Dark |
|---|---|---|
| Background | #f3f3fbwhitesmoke | #101018black |
| Foreground | #1c2024black | #edeef0whitesmoke |
| Card | #fcfcfdwhite | #05050ablack |
| Card foreground | #1c2024black | #edeef0whitesmoke |
| Popover | #fcfcfdwhite | #05050ablack |
| Popover foreground | #1c2024black | #edeef0whitesmoke |
| Primary | #3e63ddroyalblue | #3e63ddroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #29b397lightseagreen | #29b397lightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0f0f3whitesmoke | #212225black |
| Muted foreground | #1c2024black | #edeef0whitesmoke |
| Accent | #f0f0f3whitesmoke | #212225black |
| Accent foreground | #1c2024black | #edeef0whitesmoke |
| Destructive | #e54666indianred | #e5484dindianred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #d9d9e0gainsboro | #363a3fdarkslategray |
| Input | #d9d9e0gainsboro | #363a3fdarkslategray |
| Ring | #3e63ddroyalblue | #3e63ddroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 14.84:1 | AAA |
| Text on card | 15.98:1 | AAA |
| Primary button | 5.20:1 | AA |
| Secondary button | 2.62:1 | Fail |
| Muted text | 14.40:1 | AAA |
| Accent | 14.40:1 | AAA |
| Destructive | 3.88:1 | AA Large |
| Text on background | 16.30:1 | AAA |
| Text on card | 17.51:1 | AAA |
| Primary button | 5.20:1 | AA |
| Secondary button | 2.64:1 | Fail |
| Muted text | 13.69:1 | AAA |
| Accent | 13.69:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Blue/Green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.966 0.011 286.199);
--foreground: oklch(0.241 0.01 248.229);
--muted: oklch(0.956 0.004 286.324);
--muted-foreground: oklch(0.241 0.01 248.229);
--popover: oklch(0.991 0.001 286.376);
--popover-foreground: oklch(0.241 0.01 248.229);
--card: oklch(0.991 0.001 286.376);
--card-foreground: oklch(0.241 0.01 248.229);
--border: oklch(0.887 0.01 286.204);
--input: oklch(0.887 0.01 286.204);
--primary: oklch(0.544 0.191 267.007);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.689 0.121 175.153);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.956 0.004 286.324);
--accent-foreground: oklch(0.241 0.01 248.229);
--destructive: oklch(0.628 0.195 13.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.544 0.191 267.007);
--chart-1: oklch(0.544 0.191 267.007);
--chart-2: oklch(0.689 0.121 175.153);
--chart-3: oklch(0.956 0.004 286.324);
--chart-4: oklch(0.724 0.127 175.099);
--chart-5: oklch(0.541 0.199 266.728);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.177 0.016 284.599);
--foreground: oklch(0.949 0.003 264.542);
--muted: oklch(0.252 0.006 271.182);
--muted-foreground: oklch(0.949 0.003 264.542);
--popover: oklch(0.118 0.014 284.115);
--popover-foreground: oklch(0.949 0.003 264.542);
--card: oklch(0.118 0.014 284.115);
--card-foreground: oklch(0.949 0.003 264.542);
--border: oklch(0.347 0.01 253.965);
--input: oklch(0.347 0.01 253.965);
--primary: oklch(0.544 0.191 267.007);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.688 0.12 175.119);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.252 0.006 271.182);
--accent-foreground: oklch(0.949 0.003 264.542);
--destructive: oklch(0.626 0.193 23.027);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.544 0.191 267.007);
--chart-1: oklch(0.544 0.191 267.007);
--chart-2: oklch(0.688 0.12 175.119);
--chart-3: oklch(0.252 0.006 271.182);
--chart-4: oklch(0.723 0.127 175.065);
--chart-5: oklch(0.541 0.199 266.728);
}