Favorite for shadcn/ui

Favorite is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d6c2c2). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0e0707black
Foreground
#150404black
#fdfcfcsnow
Card
#fefbfbsnow
#0e0707black
Card foreground
#150404black
#fdfcfcsnow
Popover
#fefbfbsnow
#0e0707black
Popover foreground
#150404black
#fdfcfcsnow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#d6c2c2silver
#302727darkslategray
Secondary foreground
#3d2929darkslategray
#cbbebesilver
Muted
#e7dfdfgainsboro
#201818black
Muted foreground
#504444darkslategray
#bbafafdarkgray
Accent
#d6c2c2silver
#302727darkslategray
Accent foreground
#3d2929darkslategray
#cbbebesilver
Destructive
#9f3a04saddlebrown
#f96f24tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.37:1AAA
Secondary button7.99:1AAA
Muted text7.11:1AAA
Accent7.99:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button7.37:1AAA
Secondary button8.09:1AAA
Muted text8.17:1AAA
Accent8.09:1AAA
Destructive7.33:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.199);
  --foreground: oklch(0.143 0.033 22.133);
  --muted: oklch(0.91 0.009 17.314);
  --muted-foreground: oklch(0.399 0.016 17.853);
  --popover: oklch(0.991 0.002 17.199);
  --popover-foreground: oklch(0.143 0.033 22.133);
  --card: oklch(0.991 0.002 17.199);
  --card-foreground: oklch(0.143 0.033 22.133);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.831 0.022 17.602);
  --secondary-foreground: oklch(0.305 0.029 18.887);
  --accent: oklch(0.831 0.022 17.602);
  --accent-foreground: oklch(0.305 0.029 18.887);
  --destructive: oklch(0.486 0.145 41.793);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.831 0.022 17.602);
  --chart-3: oklch(0.831 0.022 17.602);
  --chart-4: oklch(0.857 0.018 17.518);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 18.932);
  --foreground: oklch(0.991 0.001 17.183);
  --muted: oklch(0.219 0.013 18.159);
  --muted-foreground: oklch(0.764 0.014 17.455);
  --popover: oklch(0.138 0.013 18.932);
  --popover-foreground: oklch(0.991 0.001 17.183);
  --card: oklch(0.138 0.013 18.932);
  --card-foreground: oklch(0.991 0.001 17.183);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.282 0.014 18.036);
  --secondary-foreground: oklch(0.812 0.015 17.458);
  --accent: oklch(0.282 0.014 18.036);
  --accent-foreground: oklch(0.812 0.015 17.458);
  --destructive: oklch(0.7 0.188 44.263);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.282 0.014 18.036);
  --chart-3: oklch(0.282 0.014 18.036);
  --chart-4: oklch(0.311 0.016 18.074);
  --chart-5: oklch(0 0 0);
}