Faint for shadcn/ui

Faint is a shadcn/ui theme built around a vivid deep pink primary color (#690226) with vivid deep teal accents (#026945). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#690226) on a pink-tinted background (#0e0609).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0609black
Foreground
#0e0206black
#fdfcfcsnow
Card
#ffffffwhite
#0e0609black
Card foreground
#0e0206black
#fdfcfcsnow
Popover
#ffffffwhite
#0e0609black
Popover foreground
#0e0206black
#fdfcfcsnow
Primary
#690226maroon
#690226maroon
Primary foreground
#fda0c1lightpink
#fda0c1lightpink
Secondary
#026945darkslategray
#026945darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7f3efhoneydew
#0c1814black
Muted foreground
#566761dimgray
#98a9a3darkgray
Accent
#026945darkslategray
#026945darkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6a180bmaroon
#e23318orangered
Destructive foreground
#f7bab1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#690226maroon
#690226maroon

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button6.70:1AA
Secondary button6.75:1AA
Muted text5.27:1AA
Accent6.75:1AA
Destructive7.21:1AAA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button6.70:1AA
Secondary button6.75:1AA
Muted text7.39:1AAA
Accent6.75:1AA
Destructive4.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.116 0.033 353.653);
  --muted: oklch(0.955 0.014 173.141);
  --muted-foreground: oklch(0.497 0.023 172.178);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.116 0.033 353.653);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.116 0.033 353.653);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.334 0.132 10.312);
  --primary-foreground: oklch(0.808 0.117 357.503);
  --secondary: oklch(0.46 0.102 161.003);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.46 0.102 161.003);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.348 0.118 31.66);
  --destructive-foreground: oklch(0.842 0.072 28.616);
  --ring: oklch(0.334 0.132 10.312);
  --chart-1: oklch(0.334 0.132 10.312);
  --chart-2: oklch(0.46 0.102 161.003);
  --chart-3: oklch(0.46 0.102 161.003);
  --chart-4: oklch(0.506 0.112 160.68);
  --chart-5: oklch(0.336 0.134 10.827);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 354.651);
  --foreground: oklch(0.992 0.002 353.62);
  --muted: oklch(0.196 0.019 170.209);
  --muted-foreground: oklch(0.72 0.021 172.706);
  --popover: oklch(0.138 0.017 354.651);
  --popover-foreground: oklch(0.992 0.002 353.62);
  --card: oklch(0.138 0.017 354.651);
  --card-foreground: oklch(0.992 0.002 353.62);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.334 0.132 10.312);
  --primary-foreground: oklch(0.808 0.117 357.503);
  --secondary: oklch(0.46 0.102 161.003);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.46 0.102 161.003);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.596 0.214 31.569);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.334 0.132 10.312);
  --chart-1: oklch(0.334 0.132 10.312);
  --chart-2: oklch(0.46 0.102 161.003);
  --chart-3: oklch(0.46 0.102 161.003);
  --chart-4: oklch(0.506 0.112 160.68);
  --chart-5: oklch(0.336 0.134 10.827);
}