Vacation for shadcn/ui

Vacation is a shadcn/ui theme built around a muted violet primary color (#9c94ad) with muted green accents (#94ad9c). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted violet primary (#9c94ad) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#07050ablack
Foreground
#06020dblack
#fcfcfdwhite
Card
#f6f4fawhitesmoke
#09070eblack
Card foreground
#040109black
#ffffffwhite
Popover
#f9f8fcghostwhite
#07050ablack
Popover foreground
#06020dblack
#fcfcfdwhite
Primary
#9c94addarkgray
#9c94addarkgray
Primary foreground
#070709black
#070709black
Secondary
#ad9c94rosybrown
#ad9c94rosybrown
Secondary foreground
#090707black
#090707black
Muted
#f2efeewhitesmoke
#110f0dblack
Muted foreground
#5b4e48darkolivegreen
#b7aaa4darkgray
Accent
#94ad9cdarkseagreen
#94ad9cdarkseagreen
Accent foreground
#070907black
#070907black
Destructive
#7d2708saddlebrown
#f26431tomato
Destructive foreground
#fbcdbcpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9c94addarkgray
#9c94addarkgray

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.03:1AAA
Primary button6.97:1AA
Secondary button7.62:1AAA
Muted text6.97:1AA
Accent8.29:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.78:1AAA
Text on card20.05:1AAA
Primary button6.97:1AA
Secondary button7.62:1AAA
Muted text8.48:1AAA
Accent8.29:1AAA
Destructive6.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 300.674);
  --foreground: oklch(0.107 0.034 300.851);
  --muted: oklch(0.954 0.003 46.819);
  --muted-foreground: oklch(0.435 0.021 46.382);
  --popover: oklch(0.981 0.006 300.674);
  --popover-foreground: oklch(0.107 0.034 300.851);
  --card: oklch(0.971 0.008 300.626);
  --card-foreground: oklch(0.093 0.029 301.35);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.683 0.037 299.881);
  --primary-foreground: oklch(0.129 0.005 300.838);
  --secondary: oklch(0.706 0.023 46.519);
  --secondary-foreground: oklch(0.132 0.003 48.486);
  --accent: oklch(0.724 0.036 155.532);
  --accent-foreground: oklch(0.134 0.005 156.461);
  --destructive: oklch(0.401 0.125 37.748);
  --destructive-foreground: oklch(0.883 0.057 40.951);
  --ring: oklch(0.683 0.037 299.881);
  --chart-1: oklch(0.683 0.037 299.881);
  --chart-2: oklch(0.706 0.023 46.519);
  --chart-3: oklch(0.724 0.036 155.532);
  --chart-4: oklch(0.73 0.021 46.556);
  --chart-5: oklch(0.677 0.045 299.662);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.014 300.973);
  --foreground: oklch(0.991 0.002 300.734);
  --muted: oklch(0.169 0.005 46.552);
  --muted-foreground: oklch(0.747 0.018 46.599);
  --popover: oklch(0.122 0.014 300.973);
  --popover-foreground: oklch(0.991 0.002 300.734);
  --card: oklch(0.134 0.016 300.146);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.683 0.037 299.881);
  --primary-foreground: oklch(0.129 0.005 300.838);
  --secondary: oklch(0.706 0.023 46.519);
  --secondary-foreground: oklch(0.132 0.003 48.486);
  --accent: oklch(0.724 0.036 155.532);
  --accent-foreground: oklch(0.134 0.005 156.461);
  --destructive: oklch(0.676 0.186 39.143);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.683 0.037 299.881);
  --chart-1: oklch(0.683 0.037 299.881);
  --chart-2: oklch(0.706 0.023 46.519);
  --chart-3: oklch(0.724 0.036 155.532);
  --chart-4: oklch(0.73 0.021 46.556);
  --chart-5: oklch(0.677 0.045 299.662);
}