Single for shadcn/ui

Single is a shadcn/ui theme built around a red primary color (#e1515f) with muted light red accents (#e3d3d5). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the red primary (#e1515f) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040101black
Foreground
#0d0304black
#fdfcfcsnow
Card
#fdfcfcsnow
#040101black
Card foreground
#0d0304black
#fdfcfcsnow
Popover
#fdfcfcsnow
#040101black
Popover foreground
#0d0304black
#fdfcfcsnow
Primary
#e1515findianred
#e1515findianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ebe5e6linen
#33292adarkslategray
Secondary foreground
#594547darkslategray
#cdc1c2silver
Muted
#f4f1f1whitesmoke
#0e0b0cblack
Muted foreground
#5f5455dimgray
#aba0a1darkgray
Accent
#e3d3d5gainsboro
#453032darkslategray
Accent foreground
#513437darkslategray
#dbcccdlightgrey
Destructive
#cd370afirebrick
#f4420borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e1515findianred
#e1515findianred

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button3.78:1AA Large
Secondary button7.13:1AAA
Muted text6.47:1AA
Accent7.69:1AAA
Destructive5.07:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button3.78:1AA Large
Secondary button8.06:1AAA
Muted text7.70:1AAA
Accent7.84:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 10.12);
  --foreground: oklch(0.117 0.025 12.102);
  --muted: oklch(0.96 0.003 10.143);
  --muted-foreground: oklch(0.456 0.014 10.785);
  --popover: oklch(0.991 0.002 10.12);
  --popover-foreground: oklch(0.117 0.025 12.102);
  --card: oklch(0.991 0.002 10.12);
  --card-foreground: oklch(0.117 0.025 12.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.632 0.18 18.118);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.927 0.007 10.238);
  --secondary-foreground: oklch(0.412 0.028 11.66);
  --accent: oklch(0.881 0.018 10.53);
  --accent-foreground: oklch(0.36 0.042 12.844);
  --destructive: oklch(0.561 0.192 34.936);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.632 0.18 18.118);
  --chart-1: oklch(0.632 0.18 18.118);
  --chart-2: oklch(0.927 0.007 10.238);
  --chart-3: oklch(0.881 0.018 10.53);
  --chart-4: oklch(0.951 0.004 10.181);
  --chart-5: oklch(0.633 0.186 18.551);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.013 11.419);
  --foreground: oklch(0.991 0.001 10.11);
  --muted: oklch(0.155 0.004 10.725);
  --muted-foreground: oklch(0.716 0.013 10.477);
  --popover: oklch(0.083 0.013 11.419);
  --popover-foreground: oklch(0.991 0.001 10.11);
  --card: oklch(0.083 0.013 11.419);
  --card-foreground: oklch(0.991 0.001 10.11);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.632 0.18 18.118);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.292 0.015 11.259);
  --secondary-foreground: oklch(0.821 0.014 10.466);
  --accent: oklch(0.335 0.031 12.223);
  --accent-foreground: oklch(0.858 0.018 10.543);
  --destructive: oklch(0.638 0.221 34.741);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.632 0.18 18.118);
  --chart-1: oklch(0.632 0.18 18.118);
  --chart-2: oklch(0.292 0.015 11.259);
  --chart-3: oklch(0.335 0.031 12.223);
  --chart-4: oklch(0.321 0.017 11.303);
  --chart-5: oklch(0.633 0.186 18.551);
}