Eurodac is a shadcn/ui theme built around a deep blue primary color (#192652) with vivid light blue accents (#e2e8fc). The light mode uses a blue-tinted background (#0f1731). Dark mode switches to a muted light cyan primary (#d3dfe4) on a neutral background (#010309).
| Token | Light | Dark |
|---|---|---|
| Background | #0f1731black | #010309black |
| Foreground | #ffffffwhite | #f8fbfcghostwhite |
| Card | #192652midnightblue | #030607black |
| Card foreground | #ffffffwhite | #fcfdfdwhite |
| Popover | #192652midnightblue | #030607black |
| Popover foreground | #ffffffwhite | #fcfdfdwhite |
| Primary | #192652midnightblue | #d3dfe4gainsboro |
| Primary foreground | #ffffffwhite | #334952darkslategray |
| Secondary | #e4c66cburlywood | #d3e4e0gainsboro |
| Secondary foreground | #141e42midnightblue | #33524bdarkslategray |
| Muted | #733737saddlebrown | #192e2adarkslategray |
| Muted foreground | #ced6f0gainsboro | #9d9f9fdarkgray |
| Accent | #e2e8fclavender | #d3d7e4gainsboro |
| Accent foreground | #192652midnightblue | #333a52darkslategray |
| Destructive | #733737saddlebrown | #f53a14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #0f1731black | #1a1d1eblack |
| Input | #87a2a0lightslategray | #1a1d1eblack |
| Ring | #000000black | #d3dfe4gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.68:1 | AAA |
| Text on card | 14.57:1 | AAA |
| Primary button | 14.57:1 | AAA |
| Secondary button | 9.73:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 11.93:1 | AAA |
| Destructive | 9.01:1 | AAA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 5.38:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Eurodac in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.213 0.053 268.767);
--foreground: oklch(1 0 180);
--muted: oklch(0.415 0.085 21.392);
--muted-foreground: oklch(0.878 0.037 272.034);
--popover: oklch(0.284 0.082 268.415);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.284 0.082 268.415);
--card-foreground: oklch(1 0 180);
--border: oklch(0.213 0.053 268.767);
--input: oklch(0.691 0.03 190.969);
--primary: oklch(0.284 0.082 268.415);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.834 0.115 91.358);
--secondary-foreground: oklch(0.248 0.069 269.19);
--accent: oklch(0.932 0.028 272.506);
--accent-foreground: oklch(0.284 0.082 268.415);
--destructive: oklch(0.415 0.085 21.392);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0.284 0.082 268.415);
--chart-2: oklch(0.834 0.115 91.358);
--chart-3: oklch(0.932 0.028 272.506);
--chart-4: oklch(0.848 0.107 91.553);
--chart-5: oklch(0.282 0.086 268.084);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.022 259.2);
--foreground: oklch(0.985 0.003 223.16);
--muted: oklch(0.282 0.028 178.87);
--muted-foreground: oklch(0.701 0.002 181.975);
--popover: oklch(0.117 0.007 219.783);
--popover-foreground: oklch(0.993 0.001 223.145);
--card: oklch(0.117 0.007 219.783);
--card-foreground: oklch(0.993 0.001 223.145);
--border: oklch(0.228 0.005 223.358);
--input: oklch(0.228 0.005 223.358);
--primary: oklch(0.896 0.014 223.298);
--primary-foreground: oklch(0.39 0.031 224.376);
--secondary: oklch(0.904 0.018 181.501);
--secondary-foreground: oklch(0.411 0.038 179.14);
--accent: oklch(0.879 0.018 273.624);
--accent-foreground: oklch(0.352 0.043 272.141);
--destructive: oklch(0.634 0.227 32.557);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.896 0.014 223.298);
--chart-1: oklch(0.896 0.014 223.298);
--chart-2: oklch(0.904 0.018 181.501);
--chart-3: oklch(0.879 0.018 273.624);
--chart-4: oklch(0.925 0.014 181.635);
--chart-5: oklch(0.896 0.016 223.322);
}