Assured for shadcn/ui

Assured is a shadcn/ui theme built around a muted deep blue primary color (#080a0c) with muted light blue accents (#c9cdd4). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted deep blue primary (#080a0c) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#fbfcfewhite
#010204black
Foreground
#020409black
#f9fafbghostwhite
Card
#fbfcfewhite
#010204black
Card foreground
#020409black
#f9fafbghostwhite
Popover
#fbfcfewhite
#010204black
Popover foreground
#020409black
#f9fafbghostwhite
Primary
#080a0cblack
#080a0cblack
Primary foreground
#919eb6darkgray
#919eb6darkgray
Secondary
#e5e5e6gainsboro
#272a30darkslategray
Secondary foreground
#4b4c4edarkslategray
#bec3casilver
Muted
#dbdfe6gainsboro
#191d24black
Muted foreground
#54585fdimgray
#a0a4abdarkgray
Accent
#c9cdd4lightgrey
#313845darkslategray
Accent foreground
#30343bdarkslategray
#ccd1dblightgrey
Destructive
#951009darkred
#f34339tomato
Destructive foreground
#fcd6d4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080a0cblack
#080a0cblack

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button7.34:1AAA
Secondary button6.84:1AA
Muted text5.33:1AA
Accent7.83:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.34:1AAA
Secondary button8.11:1AAA
Muted text6.75:1AA
Accent7.73:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 263.05);
  --foreground: oklch(0.106 0.017 253.085);
  --muted: oklch(0.902 0.011 263.03);
  --muted-foreground: oklch(0.458 0.012 262.986);
  --popover: oklch(0.991 0.002 263.05);
  --popover-foreground: oklch(0.106 0.017 253.085);
  --card: oklch(0.991 0.002 263.05);
  --card-foreground: oklch(0.106 0.017 253.085);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.142 0.006 261.478);
  --primary-foreground: oklch(0.696 0.038 262.868);
  --secondary: oklch(0.923 0.001 263.052);
  --secondary-foreground: oklch(0.416 0.004 263.038);
  --accent: oklch(0.847 0.01 263.029);
  --accent-foreground: oklch(0.323 0.015 262.911);
  --destructive: oklch(0.428 0.166 29.371);
  --destructive-foreground: oklch(0.907 0.044 21.55);
  --ring: oklch(0.142 0.006 261.478);
  --chart-1: oklch(0.142 0.006 261.478);
  --chart-2: oklch(0.923 0.001 263.052);
  --chart-3: oklch(0.847 0.01 263.029);
  --chart-4: oklch(0.946 0.001 263.052);
  --chart-5: oklch(0.142 0.007 261.188);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 255.004);
  --foreground: oklch(0.984 0.001 263.051);
  --muted: oklch(0.23 0.015 262.812);
  --muted-foreground: oklch(0.718 0.011 263.022);
  --popover: oklch(0.085 0.011 255.004);
  --popover-foreground: oklch(0.984 0.001 263.051);
  --card: oklch(0.085 0.011 255.004);
  --card-foreground: oklch(0.984 0.001 263.051);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.142 0.006 261.478);
  --primary-foreground: oklch(0.696 0.038 262.868);
  --secondary: oklch(0.284 0.011 262.938);
  --secondary-foreground: oklch(0.815 0.012 263.024);
  --accent: oklch(0.338 0.025 262.77);
  --accent-foreground: oklch(0.861 0.014 263.018);
  --destructive: oklch(0.642 0.215 27.949);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.142 0.006 261.478);
  --chart-1: oklch(0.142 0.006 261.478);
  --chart-2: oklch(0.284 0.011 262.938);
  --chart-3: oklch(0.338 0.025 262.77);
  --chart-4: oklch(0.314 0.013 262.931);
  --chart-5: oklch(0.142 0.007 261.188);
}