Live for shadcn/ui

Live is a shadcn/ui theme built around a neutral gray primary color (#a4a1aa) with neutral gray accents (#a1aaa4). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the neutral gray primary (#a4a1aa) on a violet-tinted background (#09070e).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#09070eblack
Foreground
#040209black
#fcfcfdwhite
Card
#f9f7fdghostwhite
#09070eblack
Card foreground
#040209black
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#09070eblack
Popover foreground
#040209black
#fcfcfdwhite
Primary
#a4a1aadarkgray
#a4a1aadarkgray
Primary foreground
#0d0c0dblack
#0d0c0dblack
Secondary
#aaa4a1darkgray
#aaa4a1darkgray
Secondary foreground
#0d0d0cblack
#0d0d0cblack
Muted
#eee6e2linen
#1d1511black
Muted foreground
#524742darkslategray
#bdb2addarkgray
Accent
#a1aaa4darkgray
#a1aaa4darkgray
Accent foreground
#0c0d0dblack
#0c0d0dblack
Destructive
#bf0808firebrick
#f61e1ecrimson
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a4a1aadarkgray
#a4a1aadarkgray

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button7.70:1AAA
Secondary button7.92:1AAA
Muted text7.29:1AAA
Accent8.17:1AAA
Destructive6.24:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button7.70:1AAA
Secondary button7.92:1AAA
Muted text8.68:1AAA
Accent8.17:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 301.355);
  --foreground: oklch(0.095 0.028 302.238);
  --muted: oklch(0.93 0.01 48.617);
  --muted-foreground: oklch(0.408 0.017 48.275);
  --popover: oklch(0.979 0.008 301.355);
  --popover-foreground: oklch(0.095 0.028 302.238);
  --card: oklch(0.979 0.008 301.355);
  --card-foreground: oklch(0.095 0.028 302.238);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.715 0.013 301.196);
  --primary-foreground: oklch(0.156 0.003 301.208);
  --secondary: oklch(0.724 0.008 48.614);
  --secondary-foreground: oklch(0.158 0.002 48.62);
  --accent: oklch(0.73 0.013 156.895);
  --accent-foreground: oklch(0.159 0.003 156.91);
  --destructive: oklch(0.508 0.205 28.862);
  --destructive-foreground: oklch(0.989 0.005 17.242);
  --ring: oklch(0.715 0.013 301.196);
  --chart-1: oklch(0.715 0.013 301.196);
  --chart-2: oklch(0.724 0.008 48.614);
  --chart-3: oklch(0.73 0.013 156.895);
  --chart-4: oklch(0.748 0.007 48.631);
  --chart-5: oklch(0.71 0.021 301.013);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.016 300.94);
  --foreground: oklch(0.992 0.001 301.473);
  --muted: oklch(0.204 0.015 47.957);
  --muted-foreground: oklch(0.772 0.015 48.526);
  --popover: oklch(0.135 0.016 300.94);
  --popover-foreground: oklch(0.992 0.001 301.473);
  --card: oklch(0.135 0.016 300.94);
  --card-foreground: oklch(0.992 0.001 301.473);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.715 0.013 301.196);
  --primary-foreground: oklch(0.156 0.003 301.208);
  --secondary: oklch(0.724 0.008 48.614);
  --secondary-foreground: oklch(0.158 0.002 48.62);
  --accent: oklch(0.73 0.013 156.895);
  --accent-foreground: oklch(0.159 0.003 156.91);
  --destructive: oklch(0.619 0.242 28.175);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.013 301.196);
  --chart-1: oklch(0.715 0.013 301.196);
  --chart-2: oklch(0.724 0.008 48.614);
  --chart-3: oklch(0.73 0.013 156.895);
  --chart-4: oklch(0.748 0.007 48.631);
  --chart-5: oklch(0.71 0.021 301.013);
}