Licensing for shadcn/ui

Licensing is a shadcn/ui theme built around a green primary color (#73da2b) with green accents (#2bda39). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the green primary (#73da2b) on a green-tinted background (#090f05).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#090f05black
Foreground
#070c03black
#fafaf9snow
Card
#f7fcf2whitesmoke
#0c1307black
Card foreground
#050802black
#fcfdfcwhite
Popover
#f7fcf2whitesmoke
#0c1307black
Popover foreground
#050802black
#fcfdfcwhite
Primary
#73da2byellowgreen
#73da2byellowgreen
Primary foreground
#193008black
#193008black
Secondary
#cbda2bgreenyellow
#cbda2bgreenyellow
Secondary foreground
#2c3008black
#2c3008black
Muted
#eaebe0beige
#1e1f14black
Muted foreground
#5b5d46darkolivegreen
#b7b9a2darkgray
Accent
#2bda39limegreen
#2bda39limegreen
Accent foreground
#08300cblack
#08300cblack
Destructive
#ae1a0afirebrick
#de220dfirebrick
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73da2byellowgreen
#73da2byellowgreen

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.37:1AAA
Primary button8.00:1AAA
Secondary button8.83:1AAA
Muted text5.63:1AA
Accent7.74:1AAA
Destructive6.33:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.53:1AAA
Primary button8.00:1AAA
Secondary button8.83:1AAA
Muted text8.29:1AAA
Accent7.74:1AAA
Destructive4.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.01 131.804);
  --foreground: oklch(0.146 0.026 130.417);
  --muted: oklch(0.937 0.015 110.544);
  --muted-foreground: oklch(0.47 0.035 111.621);
  --popover: oklch(0.985 0.014 131.844);
  --popover-foreground: oklch(0.127 0.023 130.167);
  --card: oklch(0.985 0.014 131.844);
  --card-foreground: oklch(0.127 0.023 130.167);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.221 135.911);
  --primary-foreground: oklch(0.279 0.069 134.81);
  --secondary: oklch(0.848 0.181 114.674);
  --secondary-foreground: oklch(0.296 0.058 114.037);
  --accent: oklch(0.774 0.24 143.653);
  --accent-foreground: oklch(0.271 0.075 144.388);
  --destructive: oklch(0.481 0.183 30.493);
  --destructive-foreground: oklch(0.96 0.018 25.151);
  --ring: oklch(0.794 0.221 135.911);
  --chart-1: oklch(0.794 0.221 135.911);
  --chart-2: oklch(0.848 0.181 114.674);
  --chart-3: oklch(0.774 0.24 143.653);
  --chart-4: oklch(0.856 0.177 114.39);
  --chart-5: oklch(0.803 0.227 136.114);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.024 131.539);
  --foreground: oklch(0.986 0.001 131.737);
  --muted: oklch(0.235 0.02 111.837);
  --muted-foreground: oklch(0.777 0.032 110.998);
  --popover: oklch(0.175 0.028 132.603);
  --popover-foreground: oklch(0.993 0.001 131.731);
  --card: oklch(0.175 0.028 132.603);
  --card-foreground: oklch(0.993 0.001 131.731);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.794 0.221 135.911);
  --primary-foreground: oklch(0.279 0.069 134.81);
  --secondary: oklch(0.848 0.181 114.674);
  --secondary-foreground: oklch(0.296 0.058 114.037);
  --accent: oklch(0.774 0.24 143.653);
  --accent-foreground: oklch(0.271 0.075 144.388);
  --destructive: oklch(0.576 0.221 30.454);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.221 135.911);
  --chart-1: oklch(0.794 0.221 135.911);
  --chart-2: oklch(0.848 0.181 114.674);
  --chart-3: oklch(0.774 0.24 143.653);
  --chart-4: oklch(0.856 0.177 114.39);
  --chart-5: oklch(0.803 0.227 136.114);
}