Faint for shadcn/ui

Faint is a shadcn/ui theme built around a vivid green primary color (#48f968) with muted light green accents (#d3e4d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#48f968) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#041006black
#f5f9f6whitesmoke
Card
#fcfcfcsnow
#020803black
Card foreground
#030c05black
#f8fbf9mintcream
Popover
#ffffffwhite
#010402black
Popover foreground
#041006black
#f5f9f6whitesmoke
Primary
#48f968mediumseagreen
#48f968mediumseagreen
Primary foreground
#000f03black
#000f03black
Secondary
#e5ebe6gainsboro
#171717black
Secondary foreground
#435b48darkslategray
#b0b0b0darkgray
Muted
#d7e5d9gainsboro
#281a1ablack
Muted foreground
#414441darkslategray
#bebbbbsilver
Accent
#d3e4d6gainsboro
#312b2bdarkslategray
Accent foreground
#335239darkslategray
#cac4c4silver
Destructive
#702c0asaddlebrown
#ea631fchocolate
Destructive foreground
#f8cbb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#48f968mediumseagreen
#48f968mediumseagreen

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.40:1AAA
Primary button14.08:1AAA
Secondary button6.15:1AA
Muted text7.55:1AAA
Accent6.55:1AA
Destructive6.89:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.41:1AAA
Primary button14.08:1AAA
Secondary button8.27:1AAA
Muted text8.77:1AAA
Accent8.07:1AAA
Destructive6.29:1AA

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.158 0.03 149.705);
  --muted: oklch(0.908 0.021 151.067);
  --muted-foreground: oklch(0.382 0.005 151.217);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.03 149.705);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.026 150.273);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.865 0.236 146.024);
  --primary-foreground: oklch(0.147 0.039 149.499);
  --secondary: oklch(0.935 0.01 151.246);
  --secondary-foreground: oklch(0.445 0.043 149.933);
  --accent: oklch(0.901 0.025 151.001);
  --accent-foreground: oklch(0.405 0.055 149.219);
  --destructive: oklch(0.386 0.105 43.033);
  --destructive-foreground: oklch(0.875 0.06 48.016);
  --ring: oklch(0.865 0.236 146.024);
  --chart-1: oklch(0.865 0.236 146.024);
  --chart-2: oklch(0.935 0.01 151.246);
  --chart-3: oklch(0.901 0.025 151.001);
  --chart-4: oklch(0.957 0.007 151.303);
  --chart-5: oklch(0.872 0.241 145.888);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.015 150.561);
  --foreground: oklch(0.979 0.006 151.313);
  --muted: oklch(0.236 0.022 18.867);
  --muted-foreground: oklch(0.795 0.003 17.22);
  --popover: oklch(0.097 0.015 150.561);
  --popover-foreground: oklch(0.979 0.006 151.313);
  --card: oklch(0.122 0.019 150.561);
  --card-foreground: oklch(0.986 0.004 151.345);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.865 0.236 146.024);
  --primary-foreground: oklch(0.147 0.039 149.499);
  --secondary: oklch(0.204 0 180);
  --secondary-foreground: oklch(0.757 0 180);
  --accent: oklch(0.296 0.008 17.618);
  --accent-foreground: oklch(0.824 0.008 17.309);
  --destructive: oklch(0.661 0.183 42.725);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.865 0.236 146.024);
  --chart-1: oklch(0.865 0.236 146.024);
  --chart-2: oklch(0.204 0 180);
  --chart-3: oklch(0.296 0.008 17.618);
  --chart-4: oklch(0.238 0 161.565);
  --chart-5: oklch(0.872 0.241 145.888);
}