Thermals for shadcn/ui

Thermals is a shadcn/ui theme built around a green primary color (#c6e382) with muted light green accents (#dbded3). The light mode uses a neutral background (#fbfcf7). Dark mode keeps the green primary (#c6e382) on a green-tinted background (#090c04).

Color palette

TokenLightDark
Background
#fbfcf7snow
#090c04black
Foreground
#0d1104black
#ffffffwhite
Card
#fbfcf7snow
#090c04black
Card foreground
#0d1104black
#ffffffwhite
Popover
#fbfcf7snow
#090c04black
Popover foreground
#0d1104black
#ffffffwhite
Primary
#c6e382khaki
#c6e382khaki
Primary foreground
#202a09black
#202a09black
Secondary
#dbded3gainsboro
#2d3027darkslategray
Secondary foreground
#444936darkslategray
#c7cabesilver
Muted
#eef2e3beige
#171c0dblack
Muted foreground
#656b57dimgray
#a2a894darkgray
Accent
#dbded3gainsboro
#2d3027darkslategray
Accent foreground
#444936darkslategray
#c7cabesilver
Destructive
#d42608firebrick
#f74222orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6e382khaki
#c6e382khaki

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button10.50:1AAA
Secondary button6.86:1AA
Muted text4.86:1AA
Accent6.86:1AA
Destructive5.15:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button10.50:1AAA
Secondary button8.09:1AAA
Muted text7.08:1AAA
Accent8.09:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 120.155);
  --foreground: oklch(0.167 0.028 121.717);
  --muted: oklch(0.954 0.021 120.401);
  --muted-foreground: oklch(0.516 0.03 121.044);
  --popover: oklch(0.99 0.007 120.155);
  --popover-foreground: oklch(0.167 0.028 121.717);
  --card: oklch(0.99 0.007 120.155);
  --card-foreground: oklch(0.167 0.028 121.717);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.872 0.126 122.693);
  --primary-foreground: oklch(0.266 0.053 124.128);
  --secondary: oklch(0.896 0.016 120.336);
  --secondary-foreground: oklch(0.395 0.032 121.425);
  --accent: oklch(0.896 0.016 120.336);
  --accent-foreground: oklch(0.395 0.032 121.425);
  --destructive: oklch(0.56 0.21 31.645);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.872 0.126 122.693);
  --chart-1: oklch(0.872 0.126 122.693);
  --chart-2: oklch(0.896 0.016 120.336);
  --chart-3: oklch(0.896 0.016 120.336);
  --chart-4: oklch(0.917 0.013 120.27);
  --chart-5: oklch(0.878 0.132 122.806);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.021 120.189);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.217 0.028 122.394);
  --muted-foreground: oklch(0.721 0.028 120.699);
  --popover: oklch(0.147 0.021 120.189);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.147 0.021 120.189);
  --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.872 0.126 122.693);
  --primary-foreground: oklch(0.266 0.053 124.128);
  --secondary: oklch(0.302 0.016 120.915);
  --secondary-foreground: oklch(0.834 0.016 120.372);
  --accent: oklch(0.302 0.016 120.915);
  --accent-foreground: oklch(0.834 0.016 120.372);
  --destructive: oklch(0.645 0.222 32.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.872 0.126 122.693);
  --chart-1: oklch(0.872 0.126 122.693);
  --chart-2: oklch(0.302 0.016 120.915);
  --chart-3: oklch(0.302 0.016 120.915);
  --chart-4: oklch(0.335 0.018 120.947);
  --chart-5: oklch(0.878 0.132 122.806);
}