Infatuated for shadcn/ui

Infatuated is a shadcn/ui theme built around a vivid deep green primary color (#2a3905) with vivid deep violet accents (#130539). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid deep green primary (#2a3905) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fbfdf7snow
#030302black
Foreground
#030401black
#fdfdfcwhite
Card
#fbfdf7snow
#030302black
Card foreground
#030401black
#fdfdfcwhite
Popover
#fbfdf7snow
#030302black
Popover foreground
#030401black
#fdfdfcwhite
Primary
#2a3905darkgreen
#2a3905darkgreen
Primary foreground
#b2ed1dgreenyellow
#b2ed1dgreenyellow
Secondary
#130539midnightblue
#130539midnightblue
Secondary foreground
#e3d9fclavender
#e3d9fclavender
Muted
#dbd8e4gainsboro
#1e1b27black
Muted foreground
#413e46darkslategray
#bbb9c1silver
Accent
#130539midnightblue
#130539midnightblue
Accent foreground
#e3d9fclavender
#e3d9fclavender
Destructive
#ac0702darkred
#f70b02red
Destructive foreground
#ffe2e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a3905darkgreen
#2a3905darkgreen

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button8.95:1AAA
Secondary button14.09:1AAA
Muted text7.44:1AAA
Accent14.09:1AAA
Destructive6.19:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button8.95:1AAA
Secondary button14.09:1AAA
Muted text8.71:1AAA
Accent14.09:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 119.445);
  --foreground: oklch(0.102 0.015 119.278);
  --muted: oklch(0.887 0.017 298.966);
  --muted-foreground: oklch(0.37 0.014 298.665);
  --popover: oklch(0.991 0.008 119.445);
  --popover-foreground: oklch(0.102 0.015 119.278);
  --card: oklch(0.991 0.008 119.445);
  --card-foreground: oklch(0.102 0.015 119.278);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.319 0.075 124.826);
  --primary-foreground: oklch(0.873 0.217 126.009);
  --secondary: oklch(0.186 0.093 286.994);
  --secondary-foreground: oklch(0.905 0.048 298.389);
  --accent: oklch(0.186 0.093 286.994);
  --accent-foreground: oklch(0.905 0.048 298.389);
  --destructive: oklch(0.469 0.189 29.55);
  --destructive-foreground: oklch(0.935 0.032 20.107);
  --ring: oklch(0.319 0.075 124.826);
  --chart-1: oklch(0.319 0.075 124.826);
  --chart-2: oklch(0.186 0.093 286.994);
  --chart-3: oklch(0.186 0.093 286.994);
  --chart-4: oklch(0.211 0.109 285.473);
  --chart-5: oklch(0.322 0.077 124.965);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 119.289);
  --foreground: oklch(0.993 0.001 119.322);
  --muted: oklch(0.231 0.024 297.45);
  --muted-foreground: oklch(0.789 0.011 299.057);
  --popover: oklch(0.098 0.008 119.289);
  --popover-foreground: oklch(0.993 0.001 119.322);
  --card: oklch(0.098 0.008 119.289);
  --card-foreground: oklch(0.993 0.001 119.322);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.319 0.075 124.826);
  --primary-foreground: oklch(0.873 0.217 126.009);
  --secondary: oklch(0.186 0.093 286.994);
  --secondary-foreground: oklch(0.905 0.048 298.389);
  --accent: oklch(0.186 0.093 286.994);
  --accent-foreground: oklch(0.905 0.048 298.389);
  --destructive: oklch(0.616 0.25 29.434);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.319 0.075 124.826);
  --chart-1: oklch(0.319 0.075 124.826);
  --chart-2: oklch(0.186 0.093 286.994);
  --chart-3: oklch(0.186 0.093 286.994);
  --chart-4: oklch(0.211 0.109 285.473);
  --chart-5: oklch(0.322 0.077 124.965);
}