3 for shadcn/ui

3 is a shadcn/ui theme built around a vivid blue primary color (#3d61ff) with muted light blue accents (#ced2e3). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid deep teal primary (#054045) on a neutral background (#27282a).

Color palette

TokenLightDark
Background
#ffffffwhite
#27282adarkslategray
Foreground
#040611black
#fcfcfdwhite
Card
#ffffffwhite
#1c1c1cblack
Card foreground
#03050cblack
#feffffwhite
Popover
#fcfcfcsnow
#1c1c1cblack
Popover foreground
#03050cblack
#ffffffwhite
Primary
#3d61ffroyalblue
#054045darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e0e2ebgainsboro
#fafafasnow
Secondary foreground
#3d435cdarkslategray
#000000black
Muted
#d7d9e0gainsboro
#18181bblack
Muted foreground
#555868dimgray
#757779gray
Accent
#ced2e3lightgrey
#054045darkslategray
Accent foreground
#2e3452darkslategray
#00d0e9darkturquoise
Destructive
#ff0d00red
#da373ccrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#ffffffwhite
#252525darkslategray
Input
#e5e7eblavender
#3d3d3ddarkslategray
Ring
#3d61ffroyalblue
#212121black

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.37:1AAA
Primary button4.83:1AA
Secondary button7.55:1AAA
Muted text4.97:1AA
Accent8.07:1AAA
Destructive3.95:1AA Large
Dark mode
Text on background14.39:1AAA
Text on card17.01:1AAA
Primary button11.50:1AAA
Secondary button20.11:1AAA
Muted text3.94:1AA Large
Accent6.13:1AA
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.026 268.939);
  --muted: oklch(0.885 0.01 276.021);
  --muted-foreground: oklch(0.464 0.025 275.387);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.114 0.022 268.251);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.114 0.022 268.251);
  --border: oklch(1 0 180);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.567 0.237 267.896);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.915 0.011 276);
  --secondary-foreground: oklch(0.388 0.043 274.435);
  --accent: oklch(0.866 0.024 275.781);
  --accent-foreground: oklch(0.335 0.052 273.604);
  --destructive: oklch(0.63 0.256 29.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.567 0.237 267.896);
  --chart-1: oklch(0.567 0.237 267.896);
  --chart-2: oklch(0.915 0.011 276);
  --chart-3: oklch(0.866 0.024 275.781);
  --chart-4: oklch(0.94 0.008 276.055);
  --chart-5: oklch(0.565 0.244 267.612);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.277 0.004 264.502);
  --foreground: oklch(0.991 0.001 276.148);
  --muted: oklch(0.21 0.006 285.885);
  --muted-foreground: oklch(0.568 0.004 247.894);
  --popover: oklch(0.226 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.226 0 180);
  --card-foreground: oklch(0.999 0.001 197.141);
  --border: oklch(0.266 0 180);
  --input: oklch(0.359 0 213.69);
  --primary: oklch(0.34 0.056 203.988);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.985 0 170.538);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.34 0.056 203.988);
  --accent-foreground: oklch(0.786 0.136 210.022);
  --destructive: oklch(0.588 0.199 24.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.249 0 180);
  --chart-1: oklch(0.34 0.056 203.988);
  --chart-2: oklch(0.985 0 170.538);
  --chart-3: oklch(0.34 0.056 203.988);
  --chart-4: oklch(1.008 0 170.538);
  --chart-5: oklch(0.343 0.057 204.083);
}