Overshoot for shadcn/ui

Overshoot is a shadcn/ui theme built around a muted deep violet primary color (#423852) with muted deep purple accents (#4f3852). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#423852) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#fcfbfewhite
#050307black
Foreground
#000000black
#fcfcfdwhite
Card
#fcfbfewhite
#050307black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfbfewhite
#050307black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#423852darkslategray
#423852darkslategray
Primary foreground
#dcd8e4gainsboro
#dcd8e4gainsboro
Secondary
#383b52darkslategray
#383b52darkslategray
Secondary foreground
#d8d9e4gainsboro
#d8d9e4gainsboro
Muted
#e0e2f0lavender
#0f111fblack
Muted foreground
#565658dimgray
#a7a8a9darkgray
Accent
#4f3852darkslategray
#4f3852darkslategray
Accent foreground
#e3d8e4gainsboro
#e3d8e4gainsboro
Destructive
#5e1c08maroon
#ee5c2ftomato
Destructive foreground
#f7b5a1lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#423852darkslategray
#423852darkslategray

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button7.83:1AAA
Secondary button7.83:1AAA
Muted text5.69:1AA
Accent7.55:1AAA
Destructive7.32:1AAA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button7.83:1AAA
Secondary button7.83:1AAA
Muted text7.87:1AAA
Accent7.55:1AAA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 303.575);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.019 280.003);
  --muted-foreground: oklch(0.454 0.002 280.245);
  --popover: oklch(0.99 0.004 303.575);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.004 303.575);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.362 0.046 301.717);
  --primary-foreground: oklch(0.888 0.018 303.343);
  --secondary: oklch(0.359 0.04 278.335);
  --secondary-foreground: oklch(0.888 0.015 280.057);
  --accent: oklch(0.376 0.053 322.553);
  --accent-foreground: oklch(0.893 0.021 322.192);
  --destructive: oklch(0.33 0.101 36.537);
  --destructive-foreground: oklch(0.829 0.083 37.617);
  --ring: oklch(0.362 0.046 301.717);
  --chart-1: oklch(0.362 0.046 301.717);
  --chart-2: oklch(0.359 0.04 278.335);
  --chart-3: oklch(0.376 0.053 322.553);
  --chart-4: oklch(0.385 0.044 278.293);
  --chart-5: oklch(0.357 0.053 301.369);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.013 304.151);
  --foreground: oklch(0.991 0.002 303.607);
  --muted: oklch(0.183 0.028 277.45);
  --muted-foreground: oklch(0.731 0.002 280.283);
  --popover: oklch(0.107 0.013 304.151);
  --popover-foreground: oklch(0.991 0.002 303.607);
  --card: oklch(0.107 0.013 304.151);
  --card-foreground: oklch(0.991 0.002 303.607);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.362 0.046 301.717);
  --primary-foreground: oklch(0.888 0.018 303.343);
  --secondary: oklch(0.359 0.04 278.335);
  --secondary-foreground: oklch(0.888 0.015 280.057);
  --accent: oklch(0.376 0.053 322.553);
  --accent-foreground: oklch(0.893 0.021 322.192);
  --destructive: oklch(0.659 0.19 36.938);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.362 0.046 301.717);
  --chart-1: oklch(0.362 0.046 301.717);
  --chart-2: oklch(0.359 0.04 278.335);
  --chart-3: oklch(0.376 0.053 322.553);
  --chart-4: oklch(0.385 0.044 278.293);
  --chart-5: oklch(0.357 0.053 301.369);
}