Vital for shadcn/ui

Vital is a shadcn/ui theme built around a vivid purple primary color (#d788f1) with vivid teal accents (#88f1d7). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#d788f1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#070109black
#fbf9fbsnow
Card
#fcf6fdghostwhite
#030303black
Card foreground
#040105black
#fdfcfdwhite
Popover
#fcf6fdghostwhite
#030303black
Popover foreground
#040105black
#fdfcfdwhite
Primary
#d788f1violet
#d788f1violet
Primary foreground
#320740midnightblue
#320740midnightblue
Secondary
#f1d788khaki
#f1d788khaki
Secondary foreground
#403207darkolivegreen
#403207darkolivegreen
Muted
#efeadcantiquewhite
#231e10black
Muted foreground
#474438darkslategray
#c7c3b8silver
Accent
#88f1d7aquamarine
#88f1d7aquamarine
Accent foreground
#074032darkslategray
#074032darkslategray
Destructive
#840101maroon
#fe1616red
Destructive foreground
#ffb8b8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d788f1violet
#d788f1violet

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card19.55:1AAA
Primary button7.01:1AAA
Secondary button8.82:1AAA
Muted text8.12:1AAA
Accent8.73:1AAA
Destructive6.45:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.20:1AAA
Primary button7.01:1AAA
Secondary button8.82:1AAA
Muted text9.43:1AAA
Accent8.73:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 317.754);
  --foreground: oklch(0.1 0.035 320.63);
  --muted: oklch(0.937 0.019 91.575);
  --muted-foreground: oklch(0.385 0.019 91.753);
  --popover: oklch(0.98 0.011 317.745);
  --popover-foreground: oklch(0.08 0.028 320.63);
  --card: oklch(0.98 0.011 317.745);
  --card-foreground: oklch(0.08 0.028 320.63);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.747 0.166 317.295);
  --primary-foreground: oklch(0.243 0.103 315.843);
  --secondary: oklch(0.883 0.102 91.663);
  --secondary-foreground: oklch(0.323 0.06 89.29);
  --accent: oklch(0.888 0.105 175.719);
  --accent-foreground: oklch(0.332 0.061 171.112);
  --destructive: oklch(0.385 0.158 29.162);
  --destructive-foreground: oklch(0.848 0.082 18.922);
  --ring: oklch(0.747 0.166 317.295);
  --chart-1: oklch(0.747 0.166 317.295);
  --chart-2: oklch(0.883 0.102 91.663);
  --chart-3: oklch(0.888 0.105 175.719);
  --chart-4: oklch(0.896 0.092 91.759);
  --chart-5: oklch(0.746 0.172 317.267);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.004 317.756);
  --muted: oklch(0.236 0.025 91.734);
  --muted-foreground: oklch(0.817 0.016 91.574);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.002 317.76);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.002 317.76);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.747 0.166 317.295);
  --primary-foreground: oklch(0.243 0.103 315.843);
  --secondary: oklch(0.883 0.102 91.663);
  --secondary-foreground: oklch(0.323 0.06 89.29);
  --accent: oklch(0.888 0.105 175.719);
  --accent-foreground: oklch(0.332 0.061 171.112);
  --destructive: oklch(0.631 0.252 28.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.747 0.166 317.295);
  --chart-1: oklch(0.747 0.166 317.295);
  --chart-2: oklch(0.883 0.102 91.663);
  --chart-3: oklch(0.888 0.105 175.719);
  --chart-4: oklch(0.896 0.092 91.759);
  --chart-5: oklch(0.746 0.172 317.267);
}