Responsible for shadcn/ui

Responsible is a shadcn/ui theme built around a deep teal primary color (#1f514d) with deep red accents (#511f23). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the deep teal primary (#1f514d) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#f7fdfdmintcream
#010404black
Foreground
#020807black
#fbfdfdwhite
Card
#f7fdfdmintcream
#010404black
Card foreground
#020807black
#fbfdfdwhite
Popover
#f7fdfdmintcream
#010404black
Popover foreground
#020807black
#fbfdfdwhite
Primary
#1f514ddarkslategray
#1f514ddarkslategray
Primary foreground
#bce6e2powderblue
#bce6e2powderblue
Secondary
#511f23maroon
#511f23maroon
Secondary foreground
#e6bcc0lightpink
#e6bcc0lightpink
Muted
#f4ebeclinen
#140b0bblack
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#511f23maroon
#511f23maroon
Accent foreground
#e6bcc0lightpink
#e6bcc0lightpink
Destructive
#a7320cfirebrick
#ee4811orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f514ddarkslategray
#1f514ddarkslategray

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button6.61:1AA
Secondary button7.83:1AAA
Muted text6.68:1AA
Accent7.83:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button6.61:1AA
Secondary button7.83:1AAA
Muted text8.65:1AAA
Accent7.83:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 191.101);
  --foreground: oklch(0.125 0.014 190.379);
  --muted: oklch(0.948 0.01 11.48);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(0.989 0.007 191.101);
  --popover-foreground: oklch(0.125 0.014 190.379);
  --card: oklch(0.989 0.007 191.101);
  --card-foreground: oklch(0.125 0.014 190.379);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.401 0.054 187.767);
  --primary-foreground: oklch(0.894 0.043 190.178);
  --secondary: oklch(0.315 0.076 17.456);
  --secondary-foreground: oklch(0.834 0.048 12.51);
  --accent: oklch(0.315 0.076 17.456);
  --accent-foreground: oklch(0.834 0.048 12.51);
  --destructive: oklch(0.49 0.159 36.443);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.401 0.054 187.767);
  --chart-1: oklch(0.401 0.054 187.767);
  --chart-2: oklch(0.315 0.076 17.456);
  --chart-3: oklch(0.315 0.076 17.456);
  --chart-4: oklch(0.342 0.084 17.651);
  --chart-5: oklch(0.405 0.057 187.583);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 190.466);
  --foreground: oklch(0.994 0.002 191.202);
  --muted: oklch(0.161 0.016 13.51);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.098 0.01 190.466);
  --popover-foreground: oklch(0.994 0.002 191.202);
  --card: oklch(0.098 0.01 190.466);
  --card-foreground: oklch(0.994 0.002 191.202);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.401 0.054 187.767);
  --primary-foreground: oklch(0.894 0.043 190.178);
  --secondary: oklch(0.315 0.076 17.456);
  --secondary-foreground: oklch(0.834 0.048 12.51);
  --accent: oklch(0.315 0.076 17.456);
  --accent-foreground: oklch(0.834 0.048 12.51);
  --destructive: oklch(0.636 0.211 36.019);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.401 0.054 187.767);
  --chart-1: oklch(0.401 0.054 187.767);
  --chart-2: oklch(0.315 0.076 17.456);
  --chart-3: oklch(0.315 0.076 17.456);
  --chart-4: oklch(0.342 0.084 17.651);
  --chart-5: oklch(0.405 0.057 187.583);
}