Overdue for shadcn/ui

Overdue is a shadcn/ui theme built around a near-white primary color (#f9faf9) with near-white accents (#faf9fa). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f9faf9) on a green-tinted background (#030c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c03black
Foreground
#030c03black
#f8fcf8mintcream
Card
#ffffffwhite
#030c03black
Card foreground
#030c03black
#f8fcf8mintcream
Popover
#ffffffwhite
#030c03black
Popover foreground
#030c03black
#f8fcf8mintcream
Primary
#f9faf9snow
#f9faf9snow
Primary foreground
#293329darkslategray
#293329darkslategray
Secondary
#faf9fasnow
#faf9fasnow
Secondary foreground
#6c566cdimgray
#6c566cdimgray
Muted
#f0eaf0whitesmoke
#150f15black
Muted foreground
#675167dimgray
#ae98aedarkgray
Accent
#faf9fasnow
#faf9fasnow
Accent foreground
#6c566cdimgray
#6c566cdimgray
Destructive
#b03711firebrick
#ea562achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9faf9snow
#f9faf9snow

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button12.59:1AAA
Secondary button6.29:1AA
Muted text6.01:1AA
Accent6.29:1AA
Destructive6.17:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button12.59:1AAA
Secondary button6.29:1AA
Muted text7.12:1AAA
Accent6.29:1AA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.031 143.73);
  --muted: oklch(0.944 0.01 325.658);
  --muted-foreground: oklch(0.465 0.045 326.266);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.031 143.73);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.141 0.031 143.73);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.985 0.002 145.562);
  --primary-foreground: oklch(0.308 0.023 145.003);
  --secondary: oklch(0.984 0.002 325.591);
  --secondary-foreground: oklch(0.483 0.043 326.215);
  --accent: oklch(0.984 0.002 325.591);
  --accent-foreground: oklch(0.483 0.043 326.215);
  --destructive: oklch(0.512 0.164 35.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0.002 145.562);
  --chart-1: oklch(0.985 0.002 145.562);
  --chart-2: oklch(0.984 0.002 325.591);
  --chart-3: oklch(0.984 0.002 325.591);
  --chart-4: oklch(1.008 0.001 145.569);
  --chart-5: oklch(0.985 0.002 145.558);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.029 143.857);
  --foreground: oklch(0.986 0.006 145.529);
  --muted: oklch(0.178 0.016 326.209);
  --muted-foreground: oklch(0.707 0.04 325.994);
  --popover: oklch(0.14 0.029 143.857);
  --popover-foreground: oklch(0.986 0.006 145.529);
  --card: oklch(0.14 0.029 143.857);
  --card-foreground: oklch(0.986 0.006 145.529);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.985 0.002 145.562);
  --primary-foreground: oklch(0.308 0.023 145.003);
  --secondary: oklch(0.984 0.002 325.591);
  --secondary-foreground: oklch(0.483 0.043 326.215);
  --accent: oklch(0.984 0.002 325.591);
  --accent-foreground: oklch(0.483 0.043 326.215);
  --destructive: oklch(0.645 0.191 36.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0.002 145.562);
  --chart-1: oklch(0.985 0.002 145.562);
  --chart-2: oklch(0.984 0.002 325.591);
  --chart-3: oklch(0.984 0.002 325.591);
  --chart-4: oklch(1.008 0.001 145.569);
  --chart-5: oklch(0.985 0.002 145.558);
}