Answer for shadcn/ui

Answer is a shadcn/ui theme built around a neutral gray primary color (#353536) with neutral gray accents (#353536). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#353536) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#fbfcfewhite
#020203black
Foreground
#020612black
#f5f6fawhitesmoke
Card
#fbfcfewhite
#020203black
Card foreground
#020612black
#f5f6fawhitesmoke
Popover
#fbfcfewhite
#020203black
Popover foreground
#020612black
#f5f6fawhitesmoke
Primary
#353536darkslategray
#353536darkslategray
Primary foreground
#cececflightgrey
#cececflightgrey
Secondary
#353636darkslategray
#353636darkslategray
Secondary foreground
#cecfcflightgrey
#cecfcflightgrey
Muted
#cee2e9gainsboro
#162a31darkslategray
Muted foreground
#404f54darkslategray
#abbabfsilver
Accent
#353536darkslategray
#353536darkslategray
Accent foreground
#cececflightgrey
#cececflightgrey
Destructive
#b03703firebrick
#f64c04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#353536darkslategray
#353536darkslategray

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button7.76:1AAA
Secondary button7.77:1AAA
Muted text6.35:1AA
Accent7.78:1AAA
Destructive6.20:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button7.76:1AAA
Secondary button7.77:1AAA
Muted text7.42:1AAA
Accent7.78:1AAA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 271.384);
  --foreground: oklch(0.125 0.031 261.231);
  --muted: oklch(0.9 0.023 219.726);
  --muted-foreground: oklch(0.417 0.021 220.051);
  --popover: oklch(0.991 0.003 271.384);
  --popover-foreground: oklch(0.125 0.031 261.231);
  --card: oklch(0.991 0.003 271.384);
  --card-foreground: oklch(0.125 0.031 261.231);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.33 0.001 271.368);
  --primary-foreground: oklch(0.852 0.001 271.398);
  --secondary: oklch(0.331 0.001 219.534);
  --secondary-foreground: oklch(0.853 0.001 219.515);
  --accent: oklch(0.33 0.002 297.723);
  --accent-foreground: oklch(0.852 0.001 297.797);
  --destructive: oklch(0.51 0.165 38.054);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.33 0.001 271.368);
  --chart-1: oklch(0.33 0.001 271.368);
  --chart-2: oklch(0.331 0.001 219.534);
  --chart-3: oklch(0.33 0.002 297.723);
  --chart-4: oklch(0.361 0.001 219.535);
  --chart-5: oklch(0.327 0.006 271.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.007 267.355);
  --foreground: oklch(0.974 0.005 271.365);
  --muted: oklch(0.272 0.028 221.256);
  --muted-foreground: oklch(0.779 0.019 219.71);
  --popover: oklch(0.086 0.007 267.355);
  --popover-foreground: oklch(0.974 0.005 271.365);
  --card: oklch(0.086 0.007 267.355);
  --card-foreground: oklch(0.974 0.005 271.365);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.33 0.001 271.368);
  --primary-foreground: oklch(0.852 0.001 271.398);
  --secondary: oklch(0.331 0.001 219.534);
  --secondary-foreground: oklch(0.853 0.001 219.515);
  --accent: oklch(0.33 0.002 297.723);
  --accent-foreground: oklch(0.852 0.001 297.797);
  --destructive: oklch(0.653 0.216 37.32);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.33 0.001 271.368);
  --chart-1: oklch(0.33 0.001 271.368);
  --chart-2: oklch(0.331 0.001 219.534);
  --chart-3: oklch(0.33 0.002 297.723);
  --chart-4: oklch(0.361 0.001 219.535);
  --chart-5: oklch(0.327 0.006 271.236);
}