Premier for shadcn/ui

Premier is a shadcn/ui theme built around a green primary color (#1f9829) with purple accents (#981f8e). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#1f9829) on a green-tinted background (#070e07).

Color palette

TokenLightDark
Background
#fbfefbwhite
#070e07black
Foreground
#041506black
#fcfdfcwhite
Card
#fbfefbwhite
#070e07black
Card foreground
#041506black
#fcfdfcwhite
Popover
#fbfefbwhite
#070e07black
Popover foreground
#041506black
#fcfdfcwhite
Primary
#1f9829forestgreen
#1f9829forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#981f8edarkmagenta
#981f8edarkmagenta
Secondary foreground
#fceefalavenderblush
#fceefalavenderblush
Muted
#f3f1f3whitesmoke
#0e0c0dblack
Muted foreground
#755773dimgray
#a88aa6rosybrown
Accent
#981f8edarkmagenta
#981f8edarkmagenta
Accent foreground
#fceefalavenderblush
#fceefalavenderblush
Destructive
#a81305firebrick
#f83b2aorangered
Destructive foreground
#fee4e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f9829forestgreen
#1f9829forestgreen

Contrast

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

Light mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button3.74:1AA Large
Secondary button6.39:1AA
Muted text5.56:1AA
Accent6.39:1AA
Destructive6.29:1AA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button3.74:1AA Large
Secondary button6.39:1AA
Muted text6.36:1AA
Accent6.39:1AA
Destructive3.70: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.994 0.006 148.005);
  --foreground: oklch(0.176 0.04 145.828);
  --muted: oklch(0.961 0.003 328.095);
  --muted-foreground: oklch(0.497 0.058 329.211);
  --popover: oklch(0.994 0.006 148.005);
  --popover-foreground: oklch(0.176 0.04 145.828);
  --card: oklch(0.994 0.006 148.005);
  --card-foreground: oklch(0.176 0.04 145.828);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.595 0.18 143.809);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.485 0.195 331.953);
  --secondary-foreground: oklch(0.963 0.022 328.297);
  --accent: oklch(0.485 0.195 331.953);
  --accent-foreground: oklch(0.963 0.022 328.297);
  --destructive: oklch(0.467 0.182 30.16);
  --destructive-foreground: oklch(0.939 0.029 23.91);
  --ring: oklch(0.595 0.18 143.809);
  --chart-1: oklch(0.595 0.18 143.809);
  --chart-2: oklch(0.485 0.195 331.953);
  --chart-3: oklch(0.485 0.195 331.953);
  --chart-4: oklch(0.514 0.207 331.978);
  --chart-5: oklch(0.602 0.186 143.691);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.019 147.026);
  --foreground: oklch(0.993 0.002 148.043);
  --muted: oklch(0.157 0.005 328.362);
  --muted-foreground: oklch(0.67 0.054 328.871);
  --popover: oklch(0.152 0.019 147.026);
  --popover-foreground: oklch(0.993 0.002 148.043);
  --card: oklch(0.152 0.019 147.026);
  --card-foreground: oklch(0.993 0.002 148.043);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.595 0.18 143.809);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.485 0.195 331.953);
  --secondary-foreground: oklch(0.963 0.022 328.297);
  --accent: oklch(0.485 0.195 331.953);
  --accent-foreground: oklch(0.963 0.022 328.297);
  --destructive: oklch(0.643 0.227 29.788);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.18 143.809);
  --chart-1: oklch(0.595 0.18 143.809);
  --chart-2: oklch(0.485 0.195 331.953);
  --chart-3: oklch(0.485 0.195 331.953);
  --chart-4: oklch(0.514 0.207 331.978);
  --chart-5: oklch(0.602 0.186 143.691);
}