Lyrics for shadcn/ui

Lyrics is a shadcn/ui theme built around a violet primary color (#8530bb) with purple accents (#bb30aa). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#8530bb) on a violet-tinted background (#09030c).

Color palette

TokenLightDark
Background
#fdfbfewhite
#09030cblack
Foreground
#030104black
#f8f5f9whitesmoke
Card
#fdfbfewhite
#09030cblack
Card foreground
#030104black
#f8f5f9whitesmoke
Popover
#fdfbfewhite
#09030cblack
Popover foreground
#030104black
#f8f5f9whitesmoke
Primary
#8530bbdarkorchid
#8530bbdarkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4030bbdarkslateblue
#4030bbdarkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d4d2eagainsboro
#18152dblack
Muted foreground
#454351darkslategray
#b0aebcdarkgray
Accent
#bb30aamediumvioletred
#bb30aamediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c02007firebrick
#f84f35tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8530bbdarkorchid
#8530bbdarkorchid

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button6.68:1AA
Secondary button8.90:1AAA
Muted text6.52:1AA
Accent5.11:1AA
Destructive6.09:1AA
Dark mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button6.68:1AA
Secondary button8.90:1AAA
Muted text8.13:1AAA
Accent5.11:1AA
Destructive3.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 312.95);
  --foreground: oklch(0.08 0.022 315.344);
  --muted: oklch(0.872 0.034 291.042);
  --muted-foreground: oklch(0.391 0.022 290.675);
  --popover: oklch(0.99 0.005 312.95);
  --popover-foreground: oklch(0.08 0.022 315.344);
  --card: oklch(0.99 0.005 312.95);
  --card-foreground: oklch(0.08 0.022 315.344);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.501 0.207 308.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.429 0.204 278.597);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.566 0.216 333.311);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.52 0.196 31.248);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.501 0.207 308.756);
  --chart-1: oklch(0.501 0.207 308.756);
  --chart-2: oklch(0.429 0.204 278.597);
  --chart-3: oklch(0.566 0.216 333.311);
  --chart-4: oklch(0.448 0.215 278.468);
  --chart-5: oklch(0.501 0.215 308.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.026 314.558);
  --foreground: oklch(0.974 0.006 312.941);
  --muted: oklch(0.213 0.047 286.998);
  --muted-foreground: oklch(0.757 0.019 291.306);
  --popover: oklch(0.119 0.026 314.558);
  --popover-foreground: oklch(0.974 0.006 312.941);
  --card: oklch(0.119 0.026 314.558);
  --card-foreground: oklch(0.974 0.006 312.941);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.501 0.207 308.756);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.429 0.204 278.597);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.566 0.216 333.311);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.209 31.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.501 0.207 308.756);
  --chart-1: oklch(0.501 0.207 308.756);
  --chart-2: oklch(0.429 0.204 278.597);
  --chart-3: oklch(0.566 0.216 333.311);
  --chart-4: oklch(0.448 0.215 278.468);
  --chart-5: oklch(0.501 0.215 308.42);
}