Tedious for shadcn/ui

Tedious is a shadcn/ui theme built around a deep green primary color (#2b542c) with deep teal accents (#2b5440). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#2b542c) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#ffffffwhite
#020302black
Foreground
#010401black
#ffffffwhite
Card
#ffffffwhite
#020302black
Card foreground
#010401black
#ffffffwhite
Popover
#ffffffwhite
#020302black
Popover foreground
#010401black
#ffffffwhite
Primary
#2b542cdarkslategray
#2b542cdarkslategray
Primary foreground
#cde5cdlightgrey
#cde5cdlightgrey
Secondary
#3f542bdarkolivegreen
#3f542bdarkolivegreen
Secondary foreground
#d8e5cdgainsboro
#d8e5cdgainsboro
Muted
#e3eadcgainsboro
#1c2315black
Muted foreground
#424342darkslategray
#bdbdbcsilver
Accent
#2b5440darkslategray
#2b5440darkslategray
Accent foreground
#cde5d9gainsboro
#cde5d9gainsboro
Destructive
#b42b08firebrick
#f44a1forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b542cdarkslategray
#2b542cdarkslategray

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button6.49:1AA
Secondary button6.35:1AA
Muted text8.05:1AAA
Accent6.44:1AA
Destructive6.37:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button6.49:1AA
Secondary button6.35:1AA
Muted text8.60:1AAA
Accent6.44:1AA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.02 144.381);
  --muted: oklch(0.927 0.019 129.349);
  --muted-foreground: oklch(0.382 0.002 129.192);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.02 144.381);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.097 0.02 144.381);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.405 0.08 144.257);
  --primary-foreground: oklch(0.897 0.042 145.669);
  --secondary: oklch(0.418 0.068 131.162);
  --secondary-foreground: oklch(0.906 0.035 129.546);
  --accent: oklch(0.41 0.057 161.394);
  --accent-foreground: oklch(0.901 0.03 165.082);
  --destructive: oklch(0.506 0.178 33.644);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.08 144.257);
  --chart-1: oklch(0.405 0.08 144.257);
  --chart-2: oklch(0.418 0.068 131.162);
  --chart-3: oklch(0.41 0.057 161.394);
  --chart-4: oklch(0.452 0.075 131.203);
  --chart-5: oklch(0.409 0.086 144.115);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.011 145.163);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.244 0.027 130.372);
  --muted-foreground: oklch(0.799 0.002 129.152);
  --popover: oklch(0.095 0.011 145.163);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.095 0.011 145.163);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.405 0.08 144.257);
  --primary-foreground: oklch(0.897 0.042 145.669);
  --secondary: oklch(0.418 0.068 131.162);
  --secondary-foreground: oklch(0.906 0.035 129.546);
  --accent: oklch(0.41 0.057 161.394);
  --accent-foreground: oklch(0.901 0.03 165.082);
  --destructive: oklch(0.648 0.214 34.413);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.08 144.257);
  --chart-1: oklch(0.405 0.08 144.257);
  --chart-2: oklch(0.418 0.068 131.162);
  --chart-3: oklch(0.41 0.057 161.394);
  --chart-4: oklch(0.452 0.075 131.203);
  --chart-5: oklch(0.409 0.086 144.115);
}