Hippodrome for shadcn/ui

Hippodrome is a shadcn/ui theme built around a vivid deep violet primary color (#3b1084) with vivid deep purple accents (#741084). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#3b1084) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020104black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#020104black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020104black
#ffffffwhite
Primary
#3b1084indigo
#3b1084indigo
Primary foreground
#ddcdf9lavender
#ddcdf9lavender
Secondary
#102084midnightblue
#102084midnightblue
Secondary foreground
#cdd3f9lavender
#cdd3f9lavender
Muted
#f0f0f5whitesmoke
#0a0b0fblack
Muted foreground
#666666dimgray
#999999darkgray
Accent
#741084purple
#741084purple
Accent foreground
#f3cdf9lavender
#f3cdf9lavender
Destructive
#a82a00firebrick
#ff622etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b1084indigo
#3b1084indigo

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.81:1AAA
Primary button8.91:1AAA
Secondary button9.17:1AAA
Muted text5.06:1AA
Accent6.92:1AA
Destructive6.99:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.91:1AAA
Secondary button9.17:1AAA
Muted text6.90:1AA
Accent6.92:1AA
Destructive7.04:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.076 0.021 304.003);
  --muted: oklch(0.957 0.006 279.252);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.076 0.021 304.003);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.076 0.021 304.003);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.33 0.17 289.983);
  --primary-foreground: oklch(0.876 0.062 301.846);
  --secondary: oklch(0.317 0.165 267.261);
  --secondary-foreground: oklch(0.874 0.053 278.358);
  --accent: oklch(0.411 0.183 321.598);
  --accent-foreground: oklch(0.894 0.072 321.807);
  --destructive: oklch(0.483 0.168 35.357);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.33 0.17 289.983);
  --chart-1: oklch(0.33 0.17 289.983);
  --chart-2: oklch(0.317 0.165 267.261);
  --chart-3: oklch(0.411 0.183 321.598);
  --chart-4: oklch(0.339 0.178 267.076);
  --chart-5: oklch(0.33 0.174 289.23);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.151 0.009 278.362);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.33 0.17 289.983);
  --primary-foreground: oklch(0.876 0.062 301.846);
  --secondary: oklch(0.317 0.165 267.261);
  --secondary-foreground: oklch(0.874 0.053 278.358);
  --accent: oklch(0.411 0.183 321.598);
  --accent-foreground: oklch(0.894 0.072 321.807);
  --destructive: oklch(0.693 0.202 37.754);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.33 0.17 289.983);
  --chart-1: oklch(0.33 0.17 289.983);
  --chart-2: oklch(0.317 0.165 267.261);
  --chart-3: oklch(0.411 0.183 321.598);
  --chart-4: oklch(0.339 0.178 267.076);
  --chart-5: oklch(0.33 0.174 289.23);
}