Questioner for shadcn/ui

Questioner is a shadcn/ui theme built around a neutral gray primary color (#8e8083) with neutral gray accents (#80838e). The light mode uses a neutral background (#fdf6f8). Dark mode keeps the neutral gray primary (#8e8083) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf6f8snow
#000000black
Foreground
#040102black
#ffffffwhite
Card
#fdf6f8snow
#000000black
Card foreground
#040102black
#ffffffwhite
Popover
#fdf6f8snow
#000000black
Popover foreground
#040102black
#ffffffwhite
Primary
#8e8083gray
#8e8083gray
Primary foreground
#000000black
#000000black
Secondary
#838e80gray
#838e80gray
Secondary foreground
#000000black
#000000black
Muted
#dbe3d9gainsboro
#1e261cblack
Muted foreground
#636b61dimgray
#969e94darkgray
Accent
#80838egray
#80838egray
Accent foreground
#000000black
#000000black
Destructive
#6a2e0csaddlebrown
#e6671echocolate
Destructive foreground
#f6cab1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8e8083gray
#8e8083gray

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button5.57:1AA
Secondary button6.17:1AA
Muted text4.20:1AA Large
Accent5.57:1AA
Destructive6.98:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.57:1AA
Secondary button6.17:1AA
Muted text5.61:1AA
Accent5.57:1AA
Destructive6.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 1.183);
  --foreground: oklch(0.081 0.019 0.988);
  --muted: oklch(0.907 0.017 138.349);
  --muted-foreground: oklch(0.518 0.018 138.368);
  --popover: oklch(0.98 0.008 1.183);
  --popover-foreground: oklch(0.081 0.019 0.988);
  --card: oklch(0.98 0.008 1.183);
  --card-foreground: oklch(0.081 0.019 0.988);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.614 0.018 1.774);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.635 0.025 138.372);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.612 0.017 272.35);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.378 0.096 46.281);
  --destructive-foreground: oklch(0.872 0.061 51.696);
  --ring: oklch(0.614 0.018 1.774);
  --chart-1: oklch(0.614 0.018 1.774);
  --chart-2: oklch(0.635 0.025 138.372);
  --chart-3: oklch(0.612 0.017 272.35);
  --chart-4: oklch(0.659 0.023 138.367);
  --chart-5: oklch(0.609 0.027 2.191);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.259 0.023 138.439);
  --muted-foreground: oklch(0.69 0.017 138.356);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.614 0.018 1.774);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.635 0.025 138.372);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.612 0.017 272.35);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.661 0.176 45.35);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.614 0.018 1.774);
  --chart-1: oklch(0.614 0.018 1.774);
  --chart-2: oklch(0.635 0.025 138.372);
  --chart-3: oklch(0.612 0.017 272.35);
  --chart-4: oklch(0.659 0.023 138.367);
  --chart-5: oklch(0.609 0.027 2.191);
}