Belated for shadcn/ui

Belated is a shadcn/ui theme built around a vivid deep green primary color (#17610a) with muted green accents (#b5ceb1). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid deep green primary (#17610a) on a green-tinted background (#060a05).

Color palette

TokenLightDark
Background
#fcfefbwhite
#060a05black
Foreground
#040d02black
#fcfdfcwhite
Card
#fcfefbwhite
#060a05black
Card foreground
#040d02black
#fcfdfcwhite
Popover
#fcfefbwhite
#060a05black
Popover foreground
#040d02black
#fcfdfcwhite
Primary
#17610adarkgreen
#17610adarkgreen
Primary foreground
#b3f6a7palegreen
#b3f6a7palegreen
Secondary
#cbd9c9lightgrey
#192018black
Secondary foreground
#31422edarkslategray
#aebfabdarkgray
Muted
#d9e5d7gainsboro
#1c281ablack
Muted foreground
#545a53dimgray
#a6aca5darkgray
Accent
#b5ceb1silver
#2e402bdarkslategray
Accent foreground
#202f1ddarkslategray
#c8d8c5lightgrey
Destructive
#a03203saddlebrown
#fb6423tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#17610adarkgreen
#17610adarkgreen

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button6.01:1AA
Secondary button7.36:1AAA
Muted text5.43:1AA
Accent8.35:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button6.01:1AA
Secondary button8.60:1AAA
Muted text6.61:1AA
Accent7.45:1AAA
Destructive6.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 141.057);
  --foreground: oklch(0.144 0.033 138.943);
  --muted: oklch(0.909 0.023 141.011);
  --muted-foreground: oklch(0.461 0.013 141.002);
  --popover: oklch(0.994 0.004 141.057);
  --popover-foreground: oklch(0.144 0.033 138.943);
  --card: oklch(0.994 0.004 141.057);
  --card-foreground: oklch(0.144 0.033 138.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.433 0.136 141.259);
  --primary-foreground: oklch(0.91 0.126 140.788);
  --secondary: oklch(0.871 0.027 140.997);
  --secondary-foreground: oklch(0.359 0.041 140.829);
  --accent: oklch(0.824 0.048 140.938);
  --accent-foreground: oklch(0.286 0.037 140.8);
  --destructive: oklch(0.477 0.153 38.403);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.433 0.136 141.259);
  --chart-1: oklch(0.433 0.136 141.259);
  --chart-2: oklch(0.871 0.027 140.997);
  --chart-3: oklch(0.824 0.048 140.938);
  --chart-4: oklch(0.893 0.022 141.01);
  --chart-5: oklch(0.437 0.139 141.312);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 139.95);
  --foreground: oklch(0.993 0.002 141.061);
  --muted: oklch(0.261 0.03 140.825);
  --muted-foreground: oklch(0.737 0.012 141.03);
  --popover: oklch(0.138 0.017 139.95);
  --popover-foreground: oklch(0.993 0.002 141.061);
  --card: oklch(0.138 0.017 139.95);
  --card-foreground: oklch(0.993 0.002 141.061);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.433 0.136 141.259);
  --primary-foreground: oklch(0.91 0.126 140.788);
  --secondary: oklch(0.233 0.016 140.913);
  --secondary-foreground: oklch(0.786 0.032 140.976);
  --accent: oklch(0.35 0.043 140.812);
  --accent-foreground: oklch(0.865 0.032 140.985);
  --destructive: oklch(0.687 0.198 40.415);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.433 0.136 141.259);
  --chart-1: oklch(0.433 0.136 141.259);
  --chart-2: oklch(0.233 0.016 140.913);
  --chart-3: oklch(0.35 0.043 140.812);
  --chart-4: oklch(0.267 0.02 140.902);
  --chart-5: oklch(0.437 0.139 141.312);
}