Heater for shadcn/ui

Heater is a shadcn/ui theme built around a vivid green primary color (#b6ff2e) with vivid violet accents (#772eff). The light mode uses a neutral background (#fbfdf6). Dark mode keeps the vivid green primary (#b6ff2e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdf6snow
#000000black
Foreground
#000000black
#fdfdfcwhite
Card
#f9fdf2ivory
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfdf6snow
#000000black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#b6ff2egreenyellow
#b6ff2egreenyellow
Primary foreground
#000000black
#000000black
Secondary
#772effblueviolet
#772effblueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e3e8gainsboro
#19171cblack
Muted foreground
#4a4356darkslategray
#b0a9bcdarkgray
Accent
#772effblueviolet
#772effblueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6b1c0amaroon
#ed5c3btomato
Destructive foreground
#f8bdb0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6ff2egreenyellow
#b6ff2egreenyellow

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.30:1AAA
Primary button17.32:1AAA
Secondary button5.80:1AA
Muted text7.41:1AAA
Accent5.80:1AA
Destructive7.17:1AAA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button17.32:1AAA
Secondary button5.80:1AA
Muted text7.81:1AAA
Accent5.80:1AA
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.009 122.363);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.92 0.006 302.116);
  --muted-foreground: oklch(0.398 0.032 300.961);
  --popover: oklch(0.991 0.009 122.363);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.014 122.439);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.918 0.23 128.305);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.542 0.275 289.421);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.275 289.421);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.355 0.116 33.826);
  --destructive-foreground: oklch(0.848 0.071 32.927);
  --ring: oklch(0.918 0.23 128.305);
  --chart-1: oklch(0.918 0.23 128.305);
  --chart-2: oklch(0.542 0.275 289.421);
  --chart-3: oklch(0.542 0.275 289.421);
  --chart-4: oklch(0.565 0.262 291.558);
  --chart-5: oklch(0.926 0.234 128.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 122.228);
  --muted: oklch(0.21 0.008 301.599);
  --muted-foreground: oklch(0.747 0.027 301.647);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 122.228);
  --card: oklch(0.092 0 180);
  --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.918 0.23 128.305);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.542 0.275 289.421);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.275 289.421);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.186 34.149);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.918 0.23 128.305);
  --chart-1: oklch(0.918 0.23 128.305);
  --chart-2: oklch(0.542 0.275 289.421);
  --chart-3: oklch(0.542 0.275 289.421);
  --chart-4: oklch(0.565 0.262 291.558);
  --chart-5: oklch(0.926 0.234 128.476);
}