Premium for shadcn/ui

Premium is a shadcn/ui theme built around a vivid deep green primary color (#035429) with muted light green accents (#c8d5ce). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid deep green primary (#035429) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#000000black
Foreground
#030c07black
#f9fbfamintcream
Card
#f4faf7whitesmoke
#030303black
Card foreground
#020805black
#fcfdfcwhite
Popover
#f8fcfamintcream
#000000black
Popover foreground
#030c07black
#f9fbfamintcream
Primary
#035429darkgreen
#035429darkgreen
Primary foreground
#2bf78bspringgreen
#2bf78bspringgreen
Secondary
#e4e7e5gainsboro
#2f3733darkslategray
Secondary foreground
#48514cdarkslategray
#c8d0cclightgrey
Muted
#f0f4f2whitesmoke
#0b0f0dblack
Muted foreground
#5f6361dimgray
#9ca09edarkgray
Accent
#c8d5celightgrey
#3e5649darkslategray
Accent foreground
#2f3d35darkslategray
#dee7e3gainsboro
Destructive
#762905saddlebrown
#f77336tomato
Destructive foreground
#fcc8b1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#035429darkgreen
#035429darkgreen

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.15:1AAA
Primary button6.44:1AA
Secondary button6.59:1AA
Muted text5.50:1AA
Accent7.53:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.28:1AAA
Primary button6.44:1AA
Secondary button7.78:1AAA
Muted text7.30:1AAA
Accent6.33:1AA
Destructive7.45:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 163.319);
  --foreground: oklch(0.142 0.019 163.218);
  --muted: oklch(0.964 0.005 163.308);
  --muted-foreground: oklch(0.495 0.006 163.145);
  --popover: oklch(0.987 0.005 163.319);
  --popover-foreground: oklch(0.142 0.019 163.218);
  --card: oklch(0.981 0.007 163.254);
  --card-foreground: oklch(0.124 0.017 163.514);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.39 0.1 152.315);
  --primary-foreground: oklch(0.86 0.212 153.017);
  --secondary: oklch(0.925 0.004 163.337);
  --secondary-foreground: oklch(0.425 0.014 162.575);
  --accent: oklch(0.861 0.016 162.955);
  --accent-foreground: oklch(0.343 0.022 161.676);
  --destructive: oklch(0.39 0.116 40.749);
  --destructive-foreground: oklch(0.873 0.067 46.135);
  --ring: oklch(0.39 0.1 152.315);
  --chart-1: oklch(0.39 0.1 152.315);
  --chart-2: oklch(0.925 0.004 163.337);
  --chart-3: oklch(0.861 0.016 162.955);
  --chart-4: oklch(0.948 0.003 163.371);
  --chart-5: oklch(0.394 0.103 152.072);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 163.368);
  --muted: oklch(0.162 0.008 162.138);
  --muted-foreground: oklch(0.702 0.005 163.252);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 163.368);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 163.407);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.39 0.1 152.315);
  --primary-foreground: oklch(0.86 0.212 153.017);
  --secondary: oklch(0.328 0.013 162.369);
  --secondary-foreground: oklch(0.85 0.011 163.124);
  --accent: oklch(0.429 0.036 161.135);
  --accent-foreground: oklch(0.921 0.012 163.126);
  --destructive: oklch(0.704 0.177 43.104);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.39 0.1 152.315);
  --chart-1: oklch(0.39 0.1 152.315);
  --chart-2: oklch(0.328 0.013 162.369);
  --chart-3: oklch(0.429 0.036 161.135);
  --chart-4: oklch(0.359 0.015 162.337);
  --chart-5: oklch(0.394 0.103 152.072);
}