Hearing for shadcn/ui

Hearing is a shadcn/ui theme built around a vivid deep yellow primary color (#1f1f04) with vivid deep purple accents (#1f041f). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid deep yellow primary (#1f1f04) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcf8snow
#000000black
Foreground
#080802black
#f9f9f5whitesmoke
Card
#fafaf5whitesmoke
#030303black
Card foreground
#040401black
#fbfbf9snow
Popover
#fcfcf8snow
#000000black
Popover foreground
#080802black
#f9f9f5whitesmoke
Primary
#1f1f04black
#1f1f04black
Primary foreground
#d3d01dgoldenrod
#d3d01dgoldenrod
Secondary
#041f1fblack
#041f1fblack
Secondary foreground
#1dd3d0darkturquoise
#1dd3d0darkturquoise
Muted
#dee3e3gainsboro
#1c2121black
Muted foreground
#576060dimgray
#9fa8a8darkgray
Accent
#1f041fblack
#1f041fblack
Accent foreground
#e96bebviolet
#e96bebviolet
Destructive
#ca280cfirebrick
#f24121orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f1f04black
#1f1f04black

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.61:1AAA
Primary button10.19:1AAA
Secondary button9.20:1AAA
Muted text4.98:1AA
Accent7.08:1AAA
Destructive5.47:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.95:1AAA
Primary button10.19:1AAA
Secondary button9.20:1AAA
Muted text6.69:1AA
Accent7.08:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 105.705);
  --foreground: oklch(0.133 0.021 108.3);
  --muted: oklch(0.912 0.005 195.873);
  --muted-foreground: oklch(0.482 0.011 195.565);
  --popover: oklch(0.989 0.005 105.705);
  --popover-foreground: oklch(0.133 0.021 108.3);
  --card: oklch(0.984 0.007 105.749);
  --card-foreground: oklch(0.106 0.016 108.3);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.233 0.043 108.441);
  --primary-foreground: oklch(0.833 0.175 108.568);
  --secondary: oklch(0.22 0.033 193.496);
  --secondary-foreground: oklch(0.785 0.131 192.931);
  --accent: oklch(0.178 0.065 327.227);
  --accent-foreground: oklch(0.724 0.216 326.879);
  --destructive: oklch(0.545 0.2 31.869);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.233 0.043 108.441);
  --chart-1: oklch(0.233 0.043 108.441);
  --chart-2: oklch(0.22 0.033 193.496);
  --chart-3: oklch(0.178 0.065 327.227);
  --chart-4: oklch(0.271 0.042 193.327);
  --chart-5: oklch(0.235 0.045 108.495);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 105.71);
  --muted: oklch(0.243 0.007 195.465);
  --muted-foreground: oklch(0.724 0.01 195.724);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.005 105.71);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.988 0.003 105.679);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.233 0.043 108.441);
  --primary-foreground: oklch(0.833 0.175 108.568);
  --secondary: oklch(0.22 0.033 193.496);
  --secondary-foreground: oklch(0.785 0.131 192.931);
  --accent: oklch(0.178 0.065 327.227);
  --accent-foreground: oklch(0.724 0.216 326.879);
  --destructive: oklch(0.636 0.218 32.293);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.233 0.043 108.441);
  --chart-1: oklch(0.233 0.043 108.441);
  --chart-2: oklch(0.22 0.033 193.496);
  --chart-3: oklch(0.178 0.065 327.227);
  --chart-4: oklch(0.271 0.042 193.327);
  --chart-5: oklch(0.235 0.045 108.495);
}