Premier for shadcn/ui

Premier is a shadcn/ui theme built around a purple primary color (#dc6fca) with cyan accents (#6fcadc). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#dc6fca) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#0c030bblack
#fbf8fbsnow
Card
#fdfcfdwhite
#000000black
Card foreground
#0c030bblack
#fbf8fbsnow
Popover
#fdfcfdwhite
#000000black
Popover foreground
#0c030bblack
#fbf8fbsnow
Primary
#dc6fcaorchid
#dc6fcaorchid
Primary foreground
#150512black
#150512black
Secondary
#cadc6fdarkkhaki
#cadc6fdarkkhaki
Secondary foreground
#121505black
#121505black
Muted
#f0f2e3beige
#1a1c0dblack
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#6fcadcskyblue
#6fcadcskyblue
Accent foreground
#051215black
#051215black
Destructive
#a22306firebrick
#ec3209orangered
Destructive foreground
#fee3ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dc6fcaorchid
#dc6fcaorchid

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.76:1AA
Secondary button12.33:1AAA
Muted text6.90:1AA
Accent10.11:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button6.76:1AA
Secondary button12.33:1AAA
Muted text7.69:1AAA
Accent10.11:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 330.858);
  --foreground: oklch(0.123 0.028 332.195);
  --muted: oklch(0.956 0.021 114.467);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(0.992 0.003 330.858);
  --popover-foreground: oklch(0.123 0.028 332.195);
  --card: oklch(0.992 0.003 330.858);
  --card-foreground: oklch(0.123 0.028 332.195);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.699 0.174 333.911);
  --primary-foreground: oklch(0.15 0.039 333.583);
  --secondary: oklch(0.859 0.136 117.171);
  --secondary-foreground: oklch(0.186 0.03 116.778);
  --accent: oklch(0.789 0.09 212.103);
  --accent-foreground: oklch(0.171 0.02 211.04);
  --destructive: oklch(0.466 0.167 33.016);
  --destructive-foreground: oklch(0.935 0.031 32.703);
  --ring: oklch(0.699 0.174 333.911);
  --chart-1: oklch(0.699 0.174 333.911);
  --chart-2: oklch(0.859 0.136 117.171);
  --chart-3: oklch(0.789 0.09 212.103);
  --chart-4: oklch(0.87 0.126 116.861);
  --chart-5: oklch(0.699 0.181 334.045);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.005 330.887);
  --muted: oklch(0.219 0.028 116.509);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.005 330.887);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.005 330.887);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.699 0.174 333.911);
  --primary-foreground: oklch(0.15 0.039 333.583);
  --secondary: oklch(0.859 0.136 117.171);
  --secondary-foreground: oklch(0.186 0.03 116.778);
  --accent: oklch(0.789 0.09 212.103);
  --accent-foreground: oklch(0.171 0.02 211.04);
  --destructive: oklch(0.613 0.225 32.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.174 333.911);
  --chart-1: oklch(0.699 0.174 333.911);
  --chart-2: oklch(0.859 0.136 117.171);
  --chart-3: oklch(0.789 0.09 212.103);
  --chart-4: oklch(0.87 0.126 116.861);
  --chart-5: oklch(0.699 0.181 334.045);
}