Phrase for shadcn/ui

Phrase is a shadcn/ui theme built around a vivid purple primary color (#c543e5) with vivid teal accents (#43e5c5). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#c543e5) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#fdfbfewhite
#070208black
Foreground
#120416black
#f8f6f9whitesmoke
Card
#fdfbfewhite
#070208black
Card foreground
#120416black
#f8f6f9whitesmoke
Popover
#fdfbfewhite
#070208black
Popover foreground
#120416black
#f8f6f9whitesmoke
Primary
#c543e5mediumorchid
#c543e5mediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e5c543sandybrown
#e5c543sandybrown
Secondary foreground
#000000black
#000000black
Muted
#f5f3eblinen
#14120ablack
Muted foreground
#5e5b50dimgray
#afaca1darkgray
Accent
#43e5c5turquoise
#43e5c5turquoise
Accent foreground
#000000black
#000000black
Destructive
#9c3107saddlebrown
#ea4a0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c543e5mediumorchid
#c543e5mediumorchid

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button3.96:1AA Large
Secondary button12.38:1AAA
Muted text6.10:1AA
Accent13.27:1AAA
Destructive7.34:1AAA
Dark mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button3.96:1AA Large
Secondary button12.38:1AAA
Muted text8.22:1AAA
Accent13.27:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 319.446);
  --foreground: oklch(0.145 0.047 320.002);
  --muted: oklch(0.963 0.011 95.165);
  --muted-foreground: oklch(0.47 0.018 95.435);
  --popover: oklch(0.99 0.005 319.446);
  --popover-foreground: oklch(0.145 0.047 320.002);
  --card: oklch(0.99 0.005 319.446);
  --card-foreground: oklch(0.145 0.047 320.002);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.631 0.247 318.765);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.828 0.148 94.666);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.832 0.14 176.093);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.469 0.149 37.984);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.247 318.765);
  --chart-1: oklch(0.631 0.247 318.765);
  --chart-2: oklch(0.828 0.148 94.666);
  --chart-3: oklch(0.832 0.14 176.093);
  --chart-4: oklch(0.839 0.141 95.06);
  --chart-5: oklch(0.632 0.254 318.68);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.024 321.364);
  --foreground: oklch(0.975 0.005 319.446);
  --muted: oklch(0.183 0.016 95.754);
  --muted-foreground: oklch(0.745 0.016 95.274);
  --popover: oklch(0.106 0.024 321.364);
  --popover-foreground: oklch(0.975 0.005 319.446);
  --card: oklch(0.106 0.024 321.364);
  --card-foreground: oklch(0.975 0.005 319.446);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.631 0.247 318.765);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.828 0.148 94.666);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.832 0.14 176.093);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.63 0.205 37.3);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.247 318.765);
  --chart-1: oklch(0.631 0.247 318.765);
  --chart-2: oklch(0.828 0.148 94.666);
  --chart-3: oklch(0.832 0.14 176.093);
  --chart-4: oklch(0.839 0.141 95.06);
  --chart-5: oklch(0.632 0.254 318.68);
}