Initial for shadcn/ui

Initial is a shadcn/ui theme built around a vivid violet primary color (#c889f5) with vivid teal accents (#89f5c8). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#c889f5) on a violet-tinted background (#08050a).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#08050ablack
Foreground
#0e0415black
#faf9fbghostwhite
Card
#faf7fdghostwhite
#08050ablack
Card foreground
#0e0415black
#faf9fbghostwhite
Popover
#faf7fdghostwhite
#08050ablack
Popover foreground
#0e0415black
#faf9fbghostwhite
Primary
#c889f5violet
#c889f5violet
Primary foreground
#2c0647midnightblue
#2c0647midnightblue
Secondary
#f5c889burlywood
#f5c889burlywood
Secondary foreground
#472c06maroon
#472c06maroon
Muted
#ebe9e5linen
#1a1714black
Muted foreground
#4e4841darkslategray
#beb9b1silver
Accent
#89f5c8aquamarine
#89f5c8aquamarine
Accent foreground
#06472cdarkgreen
#06472cdarkgreen
Destructive
#912903saddlebrown
#fa4e0forangered
Destructive foreground
#fed6c8bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c889f5violet
#c889f5violet

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button6.83:1AA
Secondary button8.30:1AAA
Muted text7.42:1AAA
Accent8.23:1AAA
Destructive6.21:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button6.83:1AA
Secondary button8.30:1AAA
Muted text9.12:1AAA
Accent8.23:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 311.657);
  --foreground: oklch(0.139 0.042 310.57);
  --muted: oklch(0.934 0.005 76.626);
  --muted-foreground: oklch(0.406 0.014 76.444);
  --popover: oklch(0.981 0.008 311.657);
  --popover-foreground: oklch(0.139 0.042 310.57);
  --card: oklch(0.981 0.008 311.657);
  --card-foreground: oklch(0.139 0.042 310.57);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.735 0.164 309.8);
  --primary-foreground: oklch(0.237 0.111 305.525);
  --secondary: oklch(0.859 0.095 75.28);
  --secondary-foreground: oklch(0.318 0.064 69.829);
  --accent: oklch(0.894 0.12 164.951);
  --accent-foreground: oklch(0.352 0.077 159.005);
  --destructive: oklch(0.44 0.145 36.811);
  --destructive-foreground: oklch(0.907 0.049 40.992);
  --ring: oklch(0.735 0.164 309.8);
  --chart-1: oklch(0.735 0.164 309.8);
  --chart-2: oklch(0.859 0.095 75.28);
  --chart-3: oklch(0.894 0.12 164.951);
  --chart-4: oklch(0.875 0.084 75.619);
  --chart-5: oklch(0.733 0.169 309.717);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 312.724);
  --foreground: oklch(0.983 0.004 311.694);
  --muted: oklch(0.208 0.008 76.424);
  --muted-foreground: oklch(0.787 0.012 76.576);
  --popover: oklch(0.124 0.015 312.724);
  --popover-foreground: oklch(0.983 0.004 311.694);
  --card: oklch(0.124 0.015 312.724);
  --card-foreground: oklch(0.983 0.004 311.694);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.735 0.164 309.8);
  --primary-foreground: oklch(0.237 0.111 305.525);
  --secondary: oklch(0.859 0.095 75.28);
  --secondary-foreground: oklch(0.318 0.064 69.829);
  --accent: oklch(0.894 0.12 164.951);
  --accent-foreground: oklch(0.352 0.077 159.005);
  --destructive: oklch(0.661 0.217 36.633);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.735 0.164 309.8);
  --chart-1: oklch(0.735 0.164 309.8);
  --chart-2: oklch(0.859 0.095 75.28);
  --chart-3: oklch(0.894 0.12 164.951);
  --chart-4: oklch(0.875 0.084 75.619);
  --chart-5: oklch(0.733 0.169 309.717);
}