Classical Medium Slate Blue for shadcn/ui

Classical Medium Slate Blue is a shadcn/ui theme built around a violet primary color (#8a66e5) with green accents (#66e58a). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#8a66e5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#000000black
#f6f5f9whitesmoke
Card
#f9f8fcghostwhite
#030303black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#000000black
#f6f5f9whitesmoke
Primary
#8a66e5mediumpurple
#8a66e5mediumpurple
Primary foreground
#000000black
#000000black
Secondary
#e58a66darksalmon
#e58a66darksalmon
Secondary foreground
#160904black
#160904black
Muted
#f1ecealinen
#15100eblack
Muted foreground
#665f5cdimgray
#a39c99darkgray
Accent
#66e58amediumaquamarine
#66e58amediumaquamarine
Accent foreground
#041609black
#041609black
Destructive
#e11e05red
#fa3319orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e3e8gainsboro
#201e24black
Input
#e5e3e8gainsboro
#201e24black
Ring
#8a66e5mediumpurple
#8a66e5mediumpurple

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card19.80:1AAA
Primary button5.13:1AA
Secondary button7.61:1AAA
Muted text5.32:1AA
Accent11.70:1AAA
Destructive4.78:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.66:1AAA
Primary button5.13:1AA
Secondary button7.61:1AAA
Muted text6.96:1AA
Accent11.70:1AAA
Destructive3.77:1AA Large

CSS variables

Paste this into your globals.css to use Classical Medium Slate Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 299.249);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.945 0.006 43.073);
  --muted-foreground: oklch(0.49 0.01 42.957);
  --popover: oklch(0.99 0.003 299.249);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.006 299.193);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.919 0.006 299.186);
  --input: oklch(0.919 0.006 299.186);
  --primary: oklch(0.609 0.184 293.203);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.722 0.122 42.117);
  --secondary-foreground: oklch(0.157 0.027 48.069);
  --accent: oklch(0.828 0.17 150.371);
  --accent-foreground: oklch(0.178 0.037 152.09);
  --destructive: oklch(0.58 0.226 30.673);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.609 0.184 293.203);
  --chart-1: oklch(0.609 0.184 293.203);
  --chart-2: oklch(0.722 0.122 42.117);
  --chart-3: oklch(0.828 0.17 150.371);
  --chart-4: oklch(0.745 0.111 42.261);
  --chart-5: oklch(0.606 0.191 292.845);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.005 299.209);
  --muted: oklch(0.18 0.009 42.759);
  --muted-foreground: oklch(0.698 0.009 43.015);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.005 299.209);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.982 0.004 299.242);
  --border: oklch(0.24 0.012 298.478);
  --input: oklch(0.24 0.012 298.478);
  --primary: oklch(0.609 0.184 293.203);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.722 0.122 42.117);
  --secondary-foreground: oklch(0.157 0.027 48.069);
  --accent: oklch(0.828 0.17 150.371);
  --accent-foreground: oklch(0.178 0.037 152.09);
  --destructive: oklch(0.639 0.235 31.002);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.609 0.184 293.203);
  --chart-1: oklch(0.609 0.184 293.203);
  --chart-2: oklch(0.722 0.122 42.117);
  --chart-3: oklch(0.828 0.17 150.371);
  --chart-4: oklch(0.745 0.111 42.261);
  --chart-5: oklch(0.606 0.191 292.845);
}