Questionable for shadcn/ui

Questionable is a shadcn/ui theme built around a muted blue primary color (#506891) with muted orange accents (#917950). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#506891) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030407black
Foreground
#010204black
#ffffffwhite
Card
#f7f9fdghostwhite
#04070bblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfcfewhite
#030407black
Popover foreground
#010204black
#ffffffwhite
Primary
#506891slategray
#506891slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#917950dimgray
#917950dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eee8ddantiquewhite
#221c11black
Muted foreground
#504a3fdarkslategray
#c0baafsilver
Accent
#917950dimgray
#917950dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#da0c01red
#fe2116red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#506891slategray
#506891slategray

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.91:1AAA
Primary button5.66:1AA
Secondary button4.16:1AA Large
Muted text7.18:1AAA
Accent4.16:1AA Large
Destructive5.19:1AA
Dark mode
Text on background20.46:1AAA
Text on card20.20:1AAA
Primary button5.66:1AA
Secondary button4.16:1AA Large
Muted text8.78:1AAA
Accent4.16:1AA Large
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 261.513);
  --foreground: oklch(0.085 0.012 252.563);
  --muted: oklch(0.932 0.016 81.501);
  --muted-foreground: oklch(0.411 0.019 81.397);
  --popover: oklch(0.991 0.003 261.513);
  --popover-foreground: oklch(0.085 0.012 252.563);
  --card: oklch(0.982 0.006 261.512);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.514 0.072 261.025);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.588 0.065 80.624);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.588 0.065 80.624);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.561 0.227 29.671);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.514 0.072 261.025);
  --chart-1: oklch(0.514 0.072 261.025);
  --chart-2: oklch(0.588 0.065 80.624);
  --chart-3: oklch(0.588 0.065 80.624);
  --chart-4: oklch(0.617 0.068 80.61);
  --chart-5: oklch(0.512 0.079 260.949);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.011 255.185);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.229 0.021 80.927);
  --muted-foreground: oklch(0.791 0.017 81.494);
  --popover: oklch(0.11 0.011 255.185);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.012 255.328);
  --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.514 0.072 261.025);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.588 0.065 80.624);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.588 0.065 80.624);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.635 0.248 29.392);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.514 0.072 261.025);
  --chart-1: oklch(0.514 0.072 261.025);
  --chart-2: oklch(0.588 0.065 80.624);
  --chart-3: oklch(0.588 0.065 80.624);
  --chart-4: oklch(0.617 0.068 80.61);
  --chart-5: oklch(0.512 0.079 260.949);
}