Short-term for shadcn/ui

Short-term is a shadcn/ui theme built around a muted green primary color (#425c4f) with muted green accents (#b2c2ba). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted green primary (#425c4f) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#fbfefcwhite
#020403black
Foreground
#05140dblack
#ffffffwhite
Card
#fbfefcwhite
#020403black
Card foreground
#05140dblack
#ffffffwhite
Popover
#fbfefcwhite
#020403black
Popover foreground
#05140dblack
#ffffffwhite
Primary
#425c4fdarkslategray
#425c4fdarkslategray
Primary foreground
#e4ece8lavender
#e4ece8lavender
Secondary
#cbd2celightgrey
#2d3933darkslategray
Secondary foreground
#323935darkslategray
#c6d2cclightgrey
Muted
#dce5e0gainsboro
#1a231eblack
Muted foreground
#3a4540darkslategray
#bac5bfsilver
Accent
#b2c2basilver
#3c5849darkslategray
Accent foreground
#1d2521black
#dee8e3gainsboro
Destructive
#870d0ddarkred
#d21414firebrick
Destructive foreground
#faccccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#425c4fdarkslategray
#425c4fdarkslategray

Contrast

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

Light mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button6.09:1AA
Secondary button7.70:1AAA
Muted text7.74:1AAA
Accent8.47:1AAA
Destructive6.95:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button6.09:1AA
Secondary button7.72:1AAA
Muted text9.07:1AAA
Accent6.24:1AA
Destructive5.45:1AA

CSS variables

Paste this into your globals.css to use Short-term in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 164.175);
  --foreground: oklch(0.175 0.027 160.537);
  --muted: oklch(0.913 0.011 163.975);
  --muted-foreground: oklch(0.38 0.018 163.007);
  --popover: oklch(0.994 0.004 164.175);
  --popover-foreground: oklch(0.175 0.027 160.537);
  --card: oklch(0.994 0.004 164.175);
  --card-foreground: oklch(0.175 0.027 160.537);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.449 0.037 161.927);
  --primary-foreground: oklch(0.936 0.009 164.028);
  --secondary: oklch(0.857 0.009 164.02);
  --secondary-foreground: oklch(0.337 0.012 163.325);
  --accent: oklch(0.8 0.022 163.571);
  --accent-foreground: oklch(0.256 0.014 162.824);
  --destructive: oklch(0.399 0.154 28.042);
  --destructive-foreground: oklch(0.884 0.053 18.199);
  --ring: oklch(0.449 0.037 161.927);
  --chart-1: oklch(0.449 0.037 161.927);
  --chart-2: oklch(0.857 0.009 164.02);
  --chart-3: oklch(0.8 0.022 163.571);
  --chart-4: oklch(0.88 0.007 164.07);
  --chart-5: oklch(0.454 0.044 161.485);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 164.366);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.246 0.015 162.621);
  --muted-foreground: oklch(0.813 0.015 163.802);
  --popover: oklch(0.096 0.01 164.366);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.096 0.01 164.366);
  --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.449 0.037 161.927);
  --primary-foreground: oklch(0.936 0.009 164.028);
  --secondary: oklch(0.332 0.02 162.654);
  --secondary-foreground: oklch(0.853 0.016 163.8);
  --accent: oklch(0.433 0.041 161.513);
  --accent-foreground: oklch(0.922 0.014 163.903);
  --destructive: oklch(0.548 0.217 28.423);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.449 0.037 161.927);
  --chart-1: oklch(0.449 0.037 161.927);
  --chart-2: oklch(0.332 0.02 162.654);
  --chart-3: oklch(0.433 0.041 161.513);
  --chart-4: oklch(0.363 0.022 162.606);
  --chart-5: oklch(0.454 0.044 161.485);
}