Quixotic for shadcn/ui

Quixotic is a shadcn/ui theme built around a pink primary color (#cc8f9f) with teal accents (#8fccbb). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the pink primary (#cc8f9f) on a pink-tinted background (#0e0608).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0e0608black
Foreground
#0d0305black
#fdfcfcsnow
Card
#fdf7f8snow
#0e0608black
Card foreground
#0d0305black
#fdfcfcsnow
Popover
#fdf7f8snow
#0e0608black
Popover foreground
#0d0305black
#fdfcfcsnow
Primary
#cc8f9frosybrown
#cc8f9frosybrown
Primary foreground
#1c0d11black
#1c0d11black
Secondary
#8fccbbmediumaquamarine
#8fccbbmediumaquamarine
Secondary foreground
#0d1c18black
#0d1c18black
Muted
#e0f0eclavender
#0f1f1bblack
Muted foreground
#495f59darkslategray
#a0b6b0darkgray
Accent
#8fccbbmediumaquamarine
#8fccbbmediumaquamarine
Accent foreground
#0d1c18black
#0d1c18black
Destructive
#671a09maroon
#ed5331tomato
Destructive foreground
#f8b9ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cc8f9frosybrown
#cc8f9frosybrown

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button7.17:1AAA
Secondary button9.60:1AAA
Muted text5.82:1AA
Accent9.60:1AAA
Destructive7.22:1AAA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button7.17:1AAA
Secondary button9.60:1AAA
Muted text7.96:1AAA
Accent9.60:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 358.986);
  --foreground: oklch(0.119 0.025 358.939);
  --muted: oklch(0.942 0.018 178.228);
  --muted-foreground: oklch(0.466 0.028 176.916);
  --popover: oklch(0.981 0.007 358.986);
  --popover-foreground: oklch(0.119 0.025 358.939);
  --card: oklch(0.981 0.007 358.986);
  --card-foreground: oklch(0.119 0.025 358.939);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.714 0.076 1.688);
  --primary-foreground: oklch(0.182 0.027 2.828);
  --secondary: oklch(0.798 0.066 176.106);
  --secondary-foreground: oklch(0.211 0.022 175.168);
  --accent: oklch(0.798 0.066 176.106);
  --accent-foreground: oklch(0.211 0.022 175.168);
  --destructive: oklch(0.345 0.113 33.827);
  --destructive-foreground: oklch(0.839 0.076 32.973);
  --ring: oklch(0.714 0.076 1.688);
  --chart-1: oklch(0.714 0.076 1.688);
  --chart-2: oklch(0.798 0.066 176.106);
  --chart-3: oklch(0.798 0.066 176.106);
  --chart-4: oklch(0.817 0.06 176.444);
  --chart-5: oklch(0.712 0.082 1.939);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.016 359.776);
  --foreground: oklch(0.992 0.001 358.826);
  --muted: oklch(0.223 0.024 175.2);
  --muted-foreground: oklch(0.757 0.025 177.782);
  --popover: oklch(0.137 0.016 359.776);
  --popover-foreground: oklch(0.992 0.001 358.826);
  --card: oklch(0.137 0.016 359.776);
  --card-foreground: oklch(0.992 0.001 358.826);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.714 0.076 1.688);
  --primary-foreground: oklch(0.182 0.027 2.828);
  --secondary: oklch(0.798 0.066 176.106);
  --secondary-foreground: oklch(0.211 0.022 175.168);
  --accent: oklch(0.798 0.066 176.106);
  --accent-foreground: oklch(0.211 0.022 175.168);
  --destructive: oklch(0.647 0.196 34.075);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.714 0.076 1.688);
  --chart-1: oklch(0.714 0.076 1.688);
  --chart-2: oklch(0.798 0.066 176.106);
  --chart-3: oklch(0.798 0.066 176.106);
  --chart-4: oklch(0.817 0.06 176.444);
  --chart-5: oklch(0.712 0.082 1.939);
}