Fancy for shadcn/ui

Fancy is a shadcn/ui theme built around a vivid deep green primary color (#1d4404) with vivid deep pink accents (#44041d). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the vivid deep green primary (#1d4404) on a green-tinted background (#090f05).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#090f05black
Foreground
#070c03black
#fcfdfcwhite
Card
#f9fdf7mintcream
#090f05black
Card foreground
#070c03black
#fcfdfcwhite
Popover
#f9fdf7mintcream
#090f05black
Popover foreground
#070c03black
#fcfdfcwhite
Primary
#1d4404darkgreen
#1d4404darkgreen
Primary foreground
#75f320lawngreen
#75f320lawngreen
Secondary
#041d44midnightblue
#041d44midnightblue
Secondary foreground
#81b1f8lightskyblue
#81b1f8lightskyblue
Muted
#e1e5ealavender
#15191eblack
Muted foreground
#474f5cdarkslategray
#a3abb8darkgray
Accent
#44041dmaroon
#44041dmaroon
Accent foreground
#f881b1hotpink
#f881b1hotpink
Destructive
#65130bmaroon
#cf2617firebrick
Destructive foreground
#f6b3aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d4404darkgreen
#1d4404darkgreen

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button7.77:1AAA
Secondary button7.56:1AAA
Muted text6.51:1AA
Accent6.85:1AA
Destructive7.25:1AAA
Dark mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button7.77:1AAA
Secondary button7.56:1AAA
Muted text7.64:1AAA
Accent6.85:1AA
Destructive5.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.009 132.428);
  --foreground: oklch(0.146 0.026 131.002);
  --muted: oklch(0.92 0.008 258.334);
  --muted-foreground: oklch(0.427 0.024 258.371);
  --popover: oklch(0.99 0.009 132.428);
  --popover-foreground: oklch(0.146 0.026 131.002);
  --card: oklch(0.99 0.009 132.428);
  --card-foreground: oklch(0.146 0.026 131.002);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.344 0.1 136.447);
  --primary-foreground: oklch(0.858 0.252 137.018);
  --secondary: oklch(0.239 0.08 258.284);
  --secondary-foreground: oklch(0.754 0.116 258.283);
  --accent: oklch(0.253 0.096 3.649);
  --accent-foreground: oklch(0.75 0.154 356.146);
  --destructive: oklch(0.333 0.117 29.753);
  --destructive-foreground: oklch(0.826 0.08 24.783);
  --ring: oklch(0.344 0.1 136.447);
  --chart-1: oklch(0.344 0.1 136.447);
  --chart-2: oklch(0.239 0.08 258.284);
  --chart-3: oklch(0.253 0.096 3.649);
  --chart-4: oklch(0.269 0.093 258.813);
  --chart-5: oklch(0.347 0.102 136.55);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.024 132.083);
  --foreground: oklch(0.993 0.001 132.367);
  --muted: oklch(0.211 0.012 258.372);
  --muted-foreground: oklch(0.739 0.021 258.364);
  --popover: oklch(0.159 0.024 132.083);
  --popover-foreground: oklch(0.993 0.001 132.367);
  --card: oklch(0.159 0.024 132.083);
  --card-foreground: oklch(0.993 0.001 132.367);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.344 0.1 136.447);
  --primary-foreground: oklch(0.858 0.252 137.018);
  --secondary: oklch(0.239 0.08 258.284);
  --secondary-foreground: oklch(0.754 0.116 258.283);
  --accent: oklch(0.253 0.096 3.649);
  --accent-foreground: oklch(0.75 0.154 356.146);
  --destructive: oklch(0.552 0.205 30.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.344 0.1 136.447);
  --chart-1: oklch(0.344 0.1 136.447);
  --chart-2: oklch(0.239 0.08 258.284);
  --chart-3: oklch(0.253 0.096 3.649);
  --chart-4: oklch(0.269 0.093 258.813);
  --chart-5: oklch(0.347 0.102 136.55);
}