Vanity for shadcn/ui

Vanity is a shadcn/ui theme built around a light cyan primary color (#b2cfdc) with light blue accents (#b2b9dc). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the light cyan primary (#b2cfdc) on a neutral background (#020608).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#020608black
Foreground
#020609black
#f5f8f9whitesmoke
Card
#f2f9fcaliceblue
#04090cblack
Card foreground
#010304black
#f9fafbghostwhite
Popover
#f2f9fcaliceblue
#04090cblack
Popover foreground
#010304black
#f9fafbghostwhite
Primary
#b2cfdclightsteelblue
#b2cfdclightsteelblue
Primary foreground
#1c343fdarkslategray
#1c343fdarkslategray
Secondary
#b2dcd4powderblue
#b2dcd4powderblue
Secondary foreground
#1c3f39darkslategray
#1c3f39darkslategray
Muted
#e1eae8gainsboro
#151e1cblack
Muted foreground
#4d605ddimgray
#9fb2aedarkgray
Accent
#b2b9dclightsteelblue
#b2b9dclightsteelblue
Accent foreground
#1c233fmidnightblue
#1c233fmidnightblue
Destructive
#b34e14sienna
#e97735peru
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b2cfdclightsteelblue
#b2cfdclightsteelblue

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.45:1AAA
Primary button7.94:1AAA
Secondary button7.74:1AAA
Muted text5.44:1AA
Accent7.99:1AAA
Destructive5.21:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.14:1AAA
Primary button7.94:1AAA
Secondary button7.74:1AAA
Muted text7.65:1AAA
Accent7.99:1AAA
Destructive7.13:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 226.927);
  --foreground: oklch(0.118 0.014 219.96);
  --muted: oklch(0.93 0.01 184.022);
  --muted-foreground: oklch(0.473 0.024 182.898);
  --popover: oklch(0.978 0.008 226.964);
  --popover-foreground: oklch(0.093 0.011 219.96);
  --card: oklch(0.978 0.008 226.964);
  --card-foreground: oklch(0.093 0.011 219.96);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.836 0.037 227.484);
  --primary-foreground: oklch(0.312 0.036 229.321);
  --secondary: oklch(0.863 0.046 182.82);
  --secondary-foreground: oklch(0.341 0.042 180.213);
  --accent: oklch(0.792 0.05 275.249);
  --accent-foreground: oklch(0.265 0.054 272.658);
  --destructive: oklch(0.547 0.146 45.203);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.037 227.484);
  --chart-1: oklch(0.836 0.037 227.484);
  --chart-2: oklch(0.863 0.046 182.82);
  --chart-3: oklch(0.792 0.05 275.249);
  --chart-4: oklch(0.881 0.04 183.06);
  --chart-5: oklch(0.837 0.039 227.542);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.012 221.2);
  --foreground: oklch(0.978 0.003 226.9);
  --muted: oklch(0.226 0.014 182.591);
  --muted-foreground: oklch(0.747 0.022 183.518);
  --popover: oklch(0.134 0.013 221.891);
  --popover-foreground: oklch(0.985 0.002 226.886);
  --card: oklch(0.134 0.013 221.891);
  --card-foreground: oklch(0.985 0.002 226.886);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.836 0.037 227.484);
  --primary-foreground: oklch(0.312 0.036 229.321);
  --secondary: oklch(0.863 0.046 182.82);
  --secondary-foreground: oklch(0.341 0.042 180.213);
  --accent: oklch(0.792 0.05 275.249);
  --accent-foreground: oklch(0.265 0.054 272.658);
  --destructive: oklch(0.689 0.161 47.559);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.836 0.037 227.484);
  --chart-1: oklch(0.836 0.037 227.484);
  --chart-2: oklch(0.863 0.046 182.82);
  --chart-3: oklch(0.792 0.05 275.249);
  --chart-4: oklch(0.881 0.04 183.06);
  --chart-5: oklch(0.837 0.039 227.542);
}