Holder for shadcn/ui

Holder is a shadcn/ui theme built around a red primary color (#b43c4a) with teal accents (#3cb4a6). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the red primary (#b43c4a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf6f7snow
#000000black
Foreground
#090202black
#fdfcfcsnow
Card
#fdf2f3lavenderblush
#030303black
Card foreground
#040101black
#ffffffwhite
Popover
#fdf6f7snow
#000000black
Popover foreground
#090202black
#fdfcfcsnow
Primary
#b43c4abrown
#b43c4abrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3cb4a6lightseagreen
#3cb4a6lightseagreen
Secondary foreground
#091b19black
#091b19black
Muted
#eef7f6whitesmoke
#081110black
Muted foreground
#515857dimgray
#a7aeaddarkgray
Accent
#3cb4a6lightseagreen
#3cb4a6lightseagreen
Accent foreground
#091b19black
#091b19black
Destructive
#b23510firebrick
#e14414orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b43c4abrown
#b43c4abrown

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card18.98:1AAA
Primary button5.70:1AA
Secondary button6.97:1AA
Muted text6.66:1AA
Accent6.97:1AA
Destructive6.13:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button5.70:1AA
Secondary button6.97:1AA
Muted text8.45:1AAA
Accent6.97:1AA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 9.094);
  --foreground: oklch(0.101 0.023 10.571);
  --muted: oklch(0.968 0.01 188.675);
  --muted-foreground: oklch(0.452 0.009 188.453);
  --popover: oklch(0.98 0.008 9.094);
  --popover-foreground: oklch(0.101 0.023 10.571);
  --card: oklch(0.97 0.011 9.189);
  --card-foreground: oklch(0.08 0.018 10.571);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.531 0.155 17.443);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.7 0.107 184.044);
  --secondary-foreground: oklch(0.205 0.024 185.672);
  --accent: oklch(0.7 0.107 184.044);
  --accent-foreground: oklch(0.205 0.024 185.672);
  --destructive: oklch(0.514 0.167 35.785);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.155 17.443);
  --chart-1: oklch(0.531 0.155 17.443);
  --chart-2: oklch(0.7 0.107 184.044);
  --chart-3: oklch(0.7 0.107 184.044);
  --chart-4: oklch(0.733 0.112 184.018);
  --chart-5: oklch(0.532 0.163 18.095);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 8.932);
  --muted: oklch(0.169 0.014 186.933);
  --muted-foreground: oklch(0.746 0.008 188.665);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 8.932);
  --card: oklch(0.092 0 180);
  --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.531 0.155 17.443);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.7 0.107 184.044);
  --secondary-foreground: oklch(0.205 0.024 185.672);
  --accent: oklch(0.7 0.107 184.044);
  --accent-foreground: oklch(0.205 0.024 185.672);
  --destructive: oklch(0.609 0.201 35.559);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.155 17.443);
  --chart-1: oklch(0.531 0.155 17.443);
  --chart-2: oklch(0.7 0.107 184.044);
  --chart-3: oklch(0.7 0.107 184.044);
  --chart-4: oklch(0.733 0.112 184.018);
  --chart-5: oklch(0.532 0.163 18.095);
}