Programme for shadcn/ui

Programme is a shadcn/ui theme built around a neutral gray primary color (#9ca59d) with muted light green accents (#e0e6e0). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the neutral gray primary (#9ca59d) on a green-tinted background (#040c04).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#040c04black
Foreground
#020d03black
#f8fbf9mintcream
Card
#f8fcf8mintcream
#040c04black
Card foreground
#020d03black
#f8fbf9mintcream
Popover
#f8fcf8mintcream
#040c04black
Popover foreground
#020d03black
#f8fbf9mintcream
Primary
#9ca59ddarkgray
#9ca59ddarkgray
Primary foreground
#070807black
#070807black
Secondary
#e0e6e0gainsboro
#2d392edarkslategray
Secondary foreground
#415343darkslategray
#c6d2c7lightgrey
Muted
#d8eedagainsboro
#112713black
Muted foreground
#435645darkslategray
#a9bcabdarkgray
Accent
#e0e6e0gainsboro
#2d392edarkslategray
Accent foreground
#415343darkslategray
#c6d2c7lightgrey
Destructive
#ba440dfirebrick
#f27840coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ca59ddarkgray
#9ca59ddarkgray

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button7.93:1AAA
Secondary button6.52:1AA
Muted text6.45:1AA
Accent6.52:1AA
Destructive5.36:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button7.93:1AAA
Secondary button7.73:1AAA
Muted text7.90:1AAA
Accent7.73:1AAA
Destructive7.54:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 148.509);
  --foreground: oklch(0.142 0.031 146.937);
  --muted: oklch(0.927 0.035 148.164);
  --muted-foreground: oklch(0.431 0.035 147.635);
  --popover: oklch(0.987 0.007 148.509);
  --popover-foreground: oklch(0.142 0.031 146.937);
  --card: oklch(0.987 0.007 148.509);
  --card-foreground: oklch(0.142 0.031 146.937);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.713 0.016 148.338);
  --primary-foreground: oklch(0.133 0.002 148.481);
  --secondary: oklch(0.919 0.011 148.461);
  --secondary-foreground: oklch(0.421 0.034 147.64);
  --accent: oklch(0.919 0.011 148.461);
  --accent-foreground: oklch(0.421 0.034 147.64);
  --destructive: oklch(0.543 0.163 40.285);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.713 0.016 148.338);
  --chart-1: oklch(0.713 0.016 148.338);
  --chart-2: oklch(0.919 0.011 148.461);
  --chart-3: oklch(0.919 0.011 148.461);
  --chart-4: oklch(0.941 0.008 148.5);
  --chart-5: oklch(0.716 0.026 148.185);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.024 147.334);
  --foreground: oklch(0.986 0.005 148.542);
  --muted: oklch(0.248 0.046 146.205);
  --muted-foreground: oklch(0.775 0.031 148.143);
  --popover: oklch(0.14 0.024 147.334);
  --popover-foreground: oklch(0.986 0.005 148.542);
  --card: oklch(0.14 0.024 147.334);
  --card-foreground: oklch(0.986 0.005 148.542);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.713 0.016 148.338);
  --primary-foreground: oklch(0.133 0.002 148.481);
  --secondary: oklch(0.33 0.025 147.704);
  --secondary-foreground: oklch(0.852 0.02 148.328);
  --accent: oklch(0.33 0.025 147.704);
  --accent-foreground: oklch(0.852 0.02 148.328);
  --destructive: oklch(0.705 0.165 43.757);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.713 0.016 148.338);
  --chart-1: oklch(0.713 0.016 148.338);
  --chart-2: oklch(0.33 0.025 147.704);
  --chart-3: oklch(0.33 0.025 147.704);
  --chart-4: oklch(0.361 0.028 147.678);
  --chart-5: oklch(0.716 0.026 148.185);
}