Celsius for shadcn/ui

Celsius is a shadcn/ui theme built around a vivid green primary color (#33e723) with vivid purple accents (#d623e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#33e723) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#ffffffwhite
#020302black
Foreground
#071405black
#ffffffwhite
Card
#ffffffwhite
#020302black
Card foreground
#071405black
#ffffffwhite
Popover
#ffffffwhite
#020302black
Popover foreground
#071405black
#ffffffwhite
Primary
#33e723limegreen
#33e723limegreen
Primary foreground
#0a3706darkgreen
#0a3706darkgreen
Secondary
#d623e7magenta
#d623e7magenta
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4d1e6gainsboro
#2d192edarkslategray
Muted foreground
#4b3d4cdarkslategray
#c0b3c2silver
Accent
#d623e7magenta
#d623e7magenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a83810brown
#ec6332tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#33e723limegreen
#33e723limegreen

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button8.02:1AAA
Secondary button3.99:1AA Large
Muted text7.01:1AAA
Accent3.99:1AA Large
Destructive6.47:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button8.02:1AAA
Secondary button3.99:1AA Large
Muted text8.12:1AAA
Accent3.99:1AA Large
Destructive6.40:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.174 0.037 141.661);
  --muted: oklch(0.882 0.036 323.32);
  --muted-foreground: oklch(0.381 0.031 323.499);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.037 141.661);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.174 0.037 141.661);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.808 0.261 142.007);
  --primary-foreground: oklch(0.296 0.09 141.802);
  --secondary: oklch(0.635 0.281 324.154);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.635 0.281 324.154);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.499 0.154 37.803);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.261 142.007);
  --chart-1: oklch(0.808 0.261 142.007);
  --chart-2: oklch(0.635 0.281 324.154);
  --chart-3: oklch(0.635 0.281 324.154);
  --chart-4: oklch(0.646 0.274 324.256);
  --chart-5: oklch(0.817 0.266 142.032);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.01 142.191);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.249 0.048 323.926);
  --muted-foreground: oklch(0.782 0.026 323.287);
  --popover: oklch(0.095 0.01 142.191);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.095 0.01 142.191);
  --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.808 0.261 142.007);
  --primary-foreground: oklch(0.296 0.09 141.802);
  --secondary: oklch(0.635 0.281 324.154);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.635 0.281 324.154);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.666 0.18 39.255);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.808 0.261 142.007);
  --chart-1: oklch(0.808 0.261 142.007);
  --chart-2: oklch(0.635 0.281 324.154);
  --chart-3: oklch(0.635 0.281 324.154);
  --chart-4: oklch(0.646 0.274 324.256);
  --chart-5: oklch(0.817 0.266 142.032);
}