Fancy for shadcn/ui

Fancy is a shadcn/ui theme built around a light teal primary color (#c0e8d4) with muted teal accents (#b5c5bd). The light mode uses a neutral background (#fbfefd). Dark mode keeps the light teal primary (#c0e8d4) on a teal-tinted background (#070d0a).

Color palette

TokenLightDark
Background
#fbfefdwhite
#070d0ablack
Foreground
#04160dblack
#f9fbfamintcream
Card
#f7fdfamintcream
#09110dblack
Card foreground
#03110ablack
#fcfdfcwhite
Popover
#fbfefdwhite
#070d0ablack
Popover foreground
#04160dblack
#f9fbfamintcream
Primary
#c0e8d4powderblue
#c0e8d4powderblue
Primary foreground
#20563cdarkslategray
#20563cdarkslategray
Secondary
#cdd0cflightgrey
#24322cdarkslategray
Secondary foreground
#333836darkslategray
#bbcec5silver
Muted
#f0f5f2whitesmoke
#0a0f0dblack
Muted foreground
#474d4adarkslategray
#b2b8b5silver
Accent
#b5c5bdsilver
#345043darkslategray
Accent foreground
#1f2824darkslategray
#d4e3dcgainsboro
Destructive
#d54b01chocolate
#fe772ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c0e8d4powderblue
#c0e8d4powderblue

Contrast

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

Light mode
Text on background18.38:1AAA
Text on card18.73:1AAA
Primary button6.38:1AA
Secondary button7.70:1AAA
Muted text7.82:1AAA
Accent8.39:1AAA
Destructive4.33:1AA Large
Dark mode
Text on background18.83:1AAA
Text on card18.81:1AAA
Primary button6.38:1AA
Secondary button8.10:1AAA
Muted text9.57:1AAA
Accent6.64:1AA
Destructive7.91:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 165.911);
  --foreground: oklch(0.18 0.032 161.601);
  --muted: oklch(0.965 0.006 165.851);
  --muted-foreground: oklch(0.414 0.009 165.424);
  --popover: oklch(0.994 0.004 165.911);
  --popover-foreground: oklch(0.18 0.032 161.601);
  --card: oklch(0.989 0.008 165.803);
  --card-foreground: oklch(0.163 0.027 163.37);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.896 0.049 164.458);
  --primary-foreground: oklch(0.408 0.073 159.514);
  --secondary: oklch(0.856 0.005 165.863);
  --secondary-foreground: oklch(0.335 0.007 165.458);
  --accent: oklch(0.808 0.02 165.325);
  --accent-foreground: oklch(0.267 0.014 164.497);
  --destructive: oklch(0.597 0.185 40.441);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.896 0.049 164.458);
  --chart-1: oklch(0.896 0.049 164.458);
  --chart-2: oklch(0.856 0.005 165.863);
  --chart-3: oklch(0.808 0.02 165.325);
  --chart-4: oklch(0.879 0.004 165.891);
  --chart-5: oklch(0.898 0.052 164.356);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.012 164.8);
  --foreground: oklch(0.986 0.003 165.939);
  --muted: oklch(0.163 0.009 164.42);
  --muted-foreground: oklch(0.777 0.008 165.75);
  --popover: oklch(0.152 0.012 164.8);
  --popover-foreground: oklch(0.986 0.003 165.939);
  --card: oklch(0.166 0.014 163.594);
  --card-foreground: oklch(0.993 0.001 165.979);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.896 0.049 164.458);
  --primary-foreground: oklch(0.408 0.073 159.514);
  --secondary: oklch(0.303 0.022 163.883);
  --secondary-foreground: oklch(0.834 0.024 165.23);
  --accent: oklch(0.405 0.041 162.957);
  --accent-foreground: oklch(0.902 0.019 165.451);
  --destructive: oklch(0.72 0.183 45.159);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.896 0.049 164.458);
  --chart-1: oklch(0.896 0.049 164.458);
  --chart-2: oklch(0.303 0.022 163.883);
  --chart-3: oklch(0.405 0.041 162.957);
  --chart-4: oklch(0.336 0.025 163.801);
  --chart-5: oklch(0.898 0.052 164.356);
}