Experience for shadcn/ui

Experience is a shadcn/ui theme built around an indigo primary color (#382598) with muted light indigo accents (#c9c7d1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the indigo primary (#382598) on a neutral background (#040407).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040407black
Foreground
#080514black
#ffffffwhite
Card
#fcfbfewhite
#040407black
Card foreground
#080514black
#ffffffwhite
Popover
#fcfbfewhite
#040407black
Popover foreground
#080514black
#ffffffwhite
Primary
#382598darkslateblue
#382598darkslateblue
Primary foreground
#f4f3fcghostwhite
#f4f3fcghostwhite
Secondary
#c9c7d1lightgrey
#272532darkslategray
Secondary foreground
#302e38darkslategray
#bebccdsilver
Muted
#dcd8eegainsboro
#151127black
Muted foreground
#5c5c61dimgray
#9f9ea3darkgray
Accent
#c9c7d1lightgrey
#272532darkslategray
Accent foreground
#302e38darkslategray
#bebccdsilver
Destructive
#652006maroon
#f26c3atomato
Destructive foreground
#f9bba4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#382598darkslateblue
#382598darkslateblue

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button10.12:1AAA
Secondary button8.01:1AAA
Muted text4.78:1AA
Accent8.01:1AAA
Destructive7.22:1AAA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button10.12:1AAA
Secondary button8.07:1AAA
Muted text6.90:1AA
Accent8.07:1AAA
Destructive6.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 294.01);
  --foreground: oklch(0.133 0.034 290.332);
  --muted: oklch(0.892 0.029 293.451);
  --muted-foreground: oklch(0.476 0.009 293.71);
  --popover: oklch(0.99 0.003 294.01);
  --popover-foreground: oklch(0.133 0.034 290.332);
  --card: oklch(0.99 0.003 294.01);
  --card-foreground: oklch(0.133 0.034 290.332);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.372 0.175 281.257);
  --primary-foreground: oklch(0.967 0.012 293.824);
  --secondary: oklch(0.835 0.013 293.78);
  --secondary-foreground: oklch(0.308 0.016 293.056);
  --accent: oklch(0.835 0.013 293.78);
  --accent-foreground: oklch(0.308 0.016 293.056);
  --destructive: oklch(0.347 0.105 38.245);
  --destructive-foreground: oklch(0.843 0.079 40.864);
  --ring: oklch(0.372 0.175 281.257);
  --chart-1: oklch(0.372 0.175 281.257);
  --chart-2: oklch(0.835 0.013 293.78);
  --chart-3: oklch(0.835 0.013 293.78);
  --chart-4: oklch(0.86 0.011 293.832);
  --chart-5: oklch(0.369 0.182 280.305);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.011 293.403);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.042 289.591);
  --muted-foreground: oklch(0.701 0.008 293.847);
  --popover: oklch(0.107 0.011 293.403);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.107 0.011 293.403);
  --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.372 0.175 281.257);
  --primary-foreground: oklch(0.967 0.012 293.824);
  --secondary: oklch(0.272 0.024 292.366);
  --secondary-foreground: oklch(0.802 0.025 293.486);
  --accent: oklch(0.272 0.024 292.366);
  --accent-foreground: oklch(0.802 0.025 293.486);
  --destructive: oklch(0.687 0.178 39.559);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.372 0.175 281.257);
  --chart-1: oklch(0.372 0.175 281.257);
  --chart-2: oklch(0.272 0.024 292.366);
  --chart-3: oklch(0.272 0.024 292.366);
  --chart-4: oklch(0.3 0.028 292.292);
  --chart-5: oklch(0.369 0.182 280.305);
}