Eurodac for shadcn/ui

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 neutral background (#f6f8fe). Dark mode switches to a muted light cyan primary (#d3dfe4) on a neutral background (#010309).

Color palette

TokenLightDark
Background
#f6f8feghostwhite
#010309black
Foreground
#000000black
#f8fbfcghostwhite
Card
#f6f8feghostwhite
#030607black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f7fbfdghostwhite
#030607black
Popover foreground
#010305black
#fcfdfdwhite
Primary
#192652midnightblue
#d3dfe4gainsboro
Primary foreground
#ffffffwhite
#334952darkslategray
Secondary
#e4c66cburlywood
#d3e4e0gainsboro
Secondary foreground
#141e42midnightblue
#33524bdarkslategray
Muted
#dbe7e6gainsboro
#192e2adarkslategray
Muted foreground
#4f7471dimgray
#9d9f9fdarkgray
Accent
#e2e8fclavender
#d3d7e4gainsboro
Accent foreground
#192652midnightblue
#333a52darkslategray
Destructive
#981f06darkred
#f53a14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#bdc8eblightsteelblue
#1a1d1eblack
Input
#7080b5lightslategray
#1a1d1eblack
Ring
#000000black
#d3dfe4gainsboro

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button14.57:1AAA
Secondary button9.73:1AAA
Muted text4.07:1AA Large
Accent11.93:1AAA
Destructive8.31:1AAA
Dark mode
Text on background19.83:1AAA
Text on card19.95:1AAA
Primary button6.96:1AA
Secondary button6.48:1AA
Muted text5.38:1AA
Accent7.80:1AAA
Destructive3.82:1AA Large

CSS variables

Paste this into your globals.css to use Eurodac in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 271.33);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.013 190.943);
  --muted-foreground: oklch(0.53 0.042 189.614);
  --popover: oklch(0.986 0.005 223.179);
  --popover-foreground: oklch(0.095 0.013 216.05);
  --card: oklch(0.979 0.008 271.33);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.836 0.051 271.525);
  --input: oklch(0.608 0.083 270.898);
  --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.443 0.16 32.532);
  --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);
}