Deafening for shadcn/ui

Deafening is a shadcn/ui theme built around a light blue primary color (#9eb1f0) with light violet accents (#b49ef0). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the light blue primary (#9eb1f0) on a blue-tinted background (#04060b).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#04060bblack
Foreground
#03050cblack
#ffffffwhite
Card
#fbfcfdwhite
#04060bblack
Card foreground
#03050cblack
#ffffffwhite
Popover
#fbfcfdwhite
#04060bblack
Popover foreground
#03050cblack
#ffffffwhite
Primary
#9eb1f0lightsteelblue
#9eb1f0lightsteelblue
Primary foreground
#0c1c4fmidnightblue
#0c1c4fmidnightblue
Secondary
#9edaf0lightblue
#9edaf0lightblue
Secondary foreground
#0c3e4fdarkslategray
#0c3e4fdarkslategray
Muted
#eaf2f5whitesmoke
#0a1215black
Muted foreground
#506168dimgray
#97a9afdarkgray
Accent
#b49ef0lightsteelblue
#b49ef0lightsteelblue
Accent foreground
#1e0c4fmidnightblue
#1e0c4fmidnightblue
Destructive
#af100dfirebrick
#ef322ecrimson
Destructive foreground
#fef1f1lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9eb1f0lightsteelblue
#9eb1f0lightsteelblue

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button7.72:1AAA
Secondary button7.55:1AAA
Muted text5.71:1AA
Accent7.43:1AAA
Destructive6.54:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button7.72:1AAA
Secondary button7.55:1AAA
Muted text7.76:1AAA
Accent7.43:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 272.634);
  --foreground: oklch(0.118 0.018 265.382);
  --muted: oklch(0.957 0.01 221.395);
  --muted-foreground: oklch(0.482 0.024 221.882);
  --popover: oklch(0.991 0.002 272.634);
  --popover-foreground: oklch(0.118 0.018 265.382);
  --card: oklch(0.991 0.002 272.634);
  --card-foreground: oklch(0.118 0.018 265.382);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.093 271.053);
  --primary-foreground: oklch(0.251 0.097 266.383);
  --secondary: oklch(0.855 0.068 222.484);
  --secondary-foreground: oklch(0.34 0.059 227.368);
  --accent: oklch(0.749 0.118 295.683);
  --accent-foreground: oklch(0.237 0.112 286.339);
  --destructive: oklch(0.48 0.189 28.741);
  --destructive-foreground: oklch(0.968 0.014 18.585);
  --ring: oklch(0.769 0.093 271.053);
  --chart-1: oklch(0.769 0.093 271.053);
  --chart-2: oklch(0.855 0.068 222.484);
  --chart-3: oklch(0.749 0.118 295.683);
  --chart-4: oklch(0.874 0.059 222.221);
  --chart-5: oklch(0.767 0.097 270.967);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.015 266.771);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.175 0.014 222.486);
  --muted-foreground: oklch(0.722 0.022 221.612);
  --popover: oklch(0.121 0.015 266.771);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.015 266.771);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.769 0.093 271.053);
  --primary-foreground: oklch(0.251 0.097 266.383);
  --secondary: oklch(0.855 0.068 222.484);
  --secondary-foreground: oklch(0.34 0.059 227.368);
  --accent: oklch(0.749 0.118 295.683);
  --accent-foreground: oklch(0.237 0.112 286.339);
  --destructive: oklch(0.62 0.224 27.48);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.093 271.053);
  --chart-1: oklch(0.769 0.093 271.053);
  --chart-2: oklch(0.855 0.068 222.484);
  --chart-3: oklch(0.749 0.118 295.683);
  --chart-4: oklch(0.874 0.059 222.221);
  --chart-5: oklch(0.767 0.097 270.967);
}