Quart for shadcn/ui

Quart is a shadcn/ui theme built around a vivid deep violet primary color (#200434) with vivid deep purple accents (#340430). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#200434) on a violet-tinted background (#0b070e).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b070eblack
Foreground
#060208black
#f8f6f9whitesmoke
Card
#ffffffwhite
#0b070eblack
Card foreground
#060208black
#f8f6f9whitesmoke
Popover
#ffffffwhite
#0b070eblack
Popover foreground
#060208black
#f8f6f9whitesmoke
Primary
#200434black
#200434black
Primary foreground
#c076f4orchid
#c076f4orchid
Secondary
#080434black
#080434black
Secondary foreground
#d8d5fclavender
#d8d5fclavender
Muted
#d8d7e4gainsboro
#1c1b28black
Muted foreground
#565463dimgray
#9d9cabdarkgray
Accent
#340430black
#340430black
Accent foreground
#f476e9violet
#f476e9violet
Destructive
#9c0a07darkred
#f52c29crimson
Destructive foreground
#fdd9d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#200434black
#200434black

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button6.32:1AA
Secondary button13.76:1AAA
Muted text5.20:1AA
Accent7.14:1AAA
Destructive6.55:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button6.32:1AA
Secondary button13.76:1AAA
Muted text6.31:1AA
Accent7.14:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.027 313.899);
  --muted: oklch(0.885 0.018 289.86);
  --muted-foreground: oklch(0.454 0.024 289.239);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.027 313.899);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.101 0.027 313.899);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.198 0.089 306.612);
  --primary-foreground: oklch(0.696 0.189 309.256);
  --secondary: oklch(0.167 0.089 275.621);
  --secondary-foreground: oklch(0.887 0.053 289.081);
  --accent: oklch(0.23 0.094 331.925);
  --accent-foreground: oklch(0.751 0.204 330.626);
  --destructive: oklch(0.439 0.174 28.932);
  --destructive-foreground: oklch(0.915 0.041 19.078);
  --ring: oklch(0.198 0.089 306.612);
  --chart-1: oklch(0.198 0.089 306.612);
  --chart-2: oklch(0.167 0.089 275.621);
  --chart-3: oklch(0.23 0.094 331.925);
  --chart-4: oklch(0.191 0.106 273.841);
  --chart-5: oklch(0.197 0.091 306.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 311.624);
  --foreground: oklch(0.975 0.004 311.687);
  --muted: oklch(0.228 0.026 288.007);
  --muted-foreground: oklch(0.698 0.021 289.666);
  --popover: oklch(0.137 0.017 311.624);
  --popover-foreground: oklch(0.975 0.004 311.687);
  --card: oklch(0.137 0.017 311.624);
  --card-foreground: oklch(0.975 0.004 311.687);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.198 0.089 306.612);
  --primary-foreground: oklch(0.696 0.189 309.256);
  --secondary: oklch(0.167 0.089 275.621);
  --secondary-foreground: oklch(0.887 0.053 289.081);
  --accent: oklch(0.23 0.094 331.925);
  --accent-foreground: oklch(0.751 0.204 330.626);
  --destructive: oklch(0.626 0.233 27.901);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.198 0.089 306.612);
  --chart-1: oklch(0.198 0.089 306.612);
  --chart-2: oklch(0.167 0.089 275.621);
  --chart-3: oklch(0.23 0.094 331.925);
  --chart-4: oklch(0.191 0.106 273.841);
  --chart-5: oklch(0.197 0.091 306.414);
}