Questionnaire for shadcn/ui

Questionnaire is a shadcn/ui theme built around a red primary color (#da615d) with orange accents (#daa05d). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#da615d) on a red-tinted background (#0c0404).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0404black
Foreground
#120302black
#faf5f5whitesmoke
Card
#ffffffwhite
#0c0404black
Card foreground
#120302black
#faf5f5whitesmoke
Popover
#ffffffwhite
#0c0404black
Popover foreground
#120302black
#faf5f5whitesmoke
Primary
#da615dindianred
#da615dindianred
Primary foreground
#000000black
#000000black
Secondary
#da5d97palevioletred
#da5d97palevioletred
Secondary foreground
#000000black
#000000black
Muted
#e7d0dbgainsboro
#2f1823black
Muted foreground
#594f54dimgray
#b0a6abdarkgray
Accent
#daa05dsandybrown
#daa05dsandybrown
Accent foreground
#040301black
#040301black
Destructive
#ce1a0dfirebrick
#f12c1eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#da615dindianred
#da615dindianred

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button5.85:1AA
Secondary button5.99:1AA
Muted text5.39:1AA
Accent8.98:1AAA
Destructive5.55:1AA
Dark mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button5.85:1AA
Secondary button5.99:1AA
Muted text6.95:1AA
Accent8.98:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.034 26.687);
  --muted: oklch(0.879 0.029 347.777);
  --muted-foreground: oklch(0.44 0.015 347.821);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.034 26.687);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.034 26.687);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.642 0.153 24.323);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.652 0.168 353.644);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.747 0.109 68.497);
  --accent-foreground: oklch(0.096 0.012 80.031);
  --destructive: oklch(0.543 0.211 29.742);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.642 0.153 24.323);
  --chart-1: oklch(0.642 0.153 24.323);
  --chart-2: oklch(0.652 0.168 353.644);
  --chart-3: oklch(0.747 0.109 68.497);
  --chart-4: oklch(0.675 0.156 352.818);
  --chart-5: oklch(0.642 0.16 24.614);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.019 23.344);
  --foreground: oklch(0.974 0.005 19.674);
  --muted: oklch(0.246 0.04 351.022);
  --muted-foreground: oklch(0.734 0.013 347.392);
  --popover: oklch(0.121 0.019 23.344);
  --popover-foreground: oklch(0.974 0.005 19.674);
  --card: oklch(0.121 0.019 23.344);
  --card-foreground: oklch(0.974 0.005 19.674);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.642 0.153 24.323);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.652 0.168 353.644);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.747 0.109 68.497);
  --accent-foreground: oklch(0.096 0.012 80.031);
  --destructive: oklch(0.617 0.231 29.563);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.642 0.153 24.323);
  --chart-1: oklch(0.642 0.153 24.323);
  --chart-2: oklch(0.652 0.168 353.644);
  --chart-3: oklch(0.747 0.109 68.497);
  --chart-4: oklch(0.675 0.156 352.818);
  --chart-5: oklch(0.642 0.16 24.614);
}