Concerned for shadcn/ui

Concerned is a shadcn/ui theme built around a muted deep red primary color (#4a3a3e) with muted deep orange accents (#4a3f3a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#4a3a3e) on a neutral background (#070404).

Color palette

TokenLightDark
Background
#ffffffwhite
#070404black
Foreground
#0b0406black
#fcf8f9snow
Card
#fcfcfcsnow
#0a0506black
Card foreground
#080304black
#fdfbfcsnow
Popover
#ffffffwhite
#070404black
Popover foreground
#0b0406black
#fcf8f9snow
Primary
#4a3a3edarkslategray
#4a3a3edarkslategray
Primary foreground
#e0d7d9gainsboro
#e0d7d9gainsboro
Secondary
#4a3a46darkslategray
#4a3a46darkslategray
Secondary foreground
#e0d7ddgainsboro
#e0d7ddgainsboro
Muted
#f1e9efwhitesmoke
#160e14black
Muted foreground
#676566dimgray
#9a9899darkgray
Accent
#4a3f3adarkslategray
#4a3f3adarkslategray
Accent foreground
#e0d9d7gainsboro
#e0d9d7gainsboro
Destructive
#880b02darkred
#fb2718orangered
Destructive foreground
#fec2belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a3a3edarkslategray
#4a3a3edarkslategray

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.04:1AAA
Primary button7.53:1AAA
Secondary button7.48:1AAA
Muted text4.87:1AA
Accent7.32:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.61:1AAA
Primary button7.53:1AAA
Secondary button7.48:1AAA
Muted text6.62:1AA
Accent7.32:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.019 1.107);
  --muted: oklch(0.943 0.011 334.728);
  --muted-foreground: oklch(0.509 0.003 334.646);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.019 1.107);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.016 0.978);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.368 0.023 2.664);
  --primary-foreground: oklch(0.887 0.01 1.267);
  --secondary: oklch(0.371 0.029 335.842);
  --secondary-foreground: oklch(0.888 0.013 334.774);
  --accent: oklch(0.377 0.018 41.018);
  --accent-foreground: oklch(0.891 0.008 41.238);
  --destructive: oklch(0.398 0.156 30.147);
  --destructive-foreground: oklch(0.867 0.07 23.283);
  --ring: oklch(0.368 0.023 2.664);
  --chart-1: oklch(0.368 0.023 2.664);
  --chart-2: oklch(0.371 0.029 335.842);
  --chart-3: oklch(0.377 0.018 41.018);
  --chart-4: oklch(0.399 0.032 335.866);
  --chart-5: oklch(0.366 0.029 3.112);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.009 0.97);
  --foreground: oklch(0.982 0.004 1.083);
  --muted: oklch(0.177 0.017 336.083);
  --muted-foreground: oklch(0.682 0.003 334.61);
  --popover: oklch(0.11 0.009 0.97);
  --popover-foreground: oklch(0.982 0.004 1.083);
  --card: oklch(0.126 0.011 0.97);
  --card-foreground: oklch(0.991 0.002 1.021);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.368 0.023 2.664);
  --primary-foreground: oklch(0.887 0.01 1.267);
  --secondary: oklch(0.371 0.029 335.842);
  --secondary-foreground: oklch(0.888 0.013 334.774);
  --accent: oklch(0.377 0.018 41.018);
  --accent-foreground: oklch(0.891 0.008 41.238);
  --destructive: oklch(0.634 0.243 29.694);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.368 0.023 2.664);
  --chart-1: oklch(0.368 0.023 2.664);
  --chart-2: oklch(0.371 0.029 335.842);
  --chart-3: oklch(0.377 0.018 41.018);
  --chart-4: oklch(0.399 0.032 335.866);
  --chart-5: oklch(0.366 0.029 3.112);
}