Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Thermostat for shadcn/ui

Thermostat is a shadcn/ui theme built around a vivid deep purple primary color (#450841) with muted light purple accents (#dcd0dc). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid deep purple primary (#450841) on a purple-tinted background (#0c040b).

Color palette

TokenLightDark
Background
#fefbfewhite
#0c040bblack
Foreground
#120211black
#ffffffwhite
Card
#fefbfewhite
#0c040bblack
Card foreground
#120211black
#ffffffwhite
Popover
#fefbfewhite
#0c040bblack
Popover foreground
#120211black
#ffffffwhite
Primary
#450841indigo
#450841indigo
Primary foreground
#f28cebviolet
#f28cebviolet
Secondary
#dcd0dcgainsboro
#1d1b1dblack
Secondary foreground
#463445darkslategray
#b8b2b8silver
Muted
#e8cfe6gainsboro
#30172fdarkslategray
Muted foreground
#443c43darkslategray
#c3bbc3silver
Accent
#dcd0dcgainsboro
#1d1b1dblack
Accent foreground
#463445darkslategray
#b8b2b8silver
Destructive
#b73206firebrick
#f96939tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#450841indigo
#450841indigo

Contrast

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

Light mode
Text on background19.58:1AAA
Text on card19.58:1AAA
Primary button7.14:1AAA
Secondary button7.67:1AAA
Muted text7.33:1AAA
Accent7.67:1AAA
Destructive6.04:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button7.14:1AAA
Secondary button8.23:1AAA
Muted text8.68:1AAA
Accent8.23:1AAA
Destructive7.10:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 327.601);
  --foreground: oklch(0.136 0.046 330.022);
  --muted: oklch(0.881 0.042 327.999);
  --muted-foreground: oklch(0.366 0.016 327.963);
  --popover: oklch(0.991 0.006 327.601);
  --popover-foreground: oklch(0.136 0.046 330.022);
  --card: oklch(0.991 0.006 327.601);
  --card-foreground: oklch(0.136 0.046 330.022);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.277 0.113 331.213);
  --primary-foreground: oklch(0.78 0.17 329.494);
  --secondary: oklch(0.871 0.02 327.774);
  --secondary-foreground: oklch(0.352 0.038 328.559);
  --accent: oklch(0.871 0.02 327.774);
  --accent-foreground: oklch(0.352 0.038 328.559);
  --destructive: oklch(0.518 0.176 35.599);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.113 331.213);
  --chart-1: oklch(0.277 0.113 331.213);
  --chart-2: oklch(0.871 0.02 327.774);
  --chart-3: oklch(0.871 0.02 327.774);
  --chart-4: oklch(0.896 0.016 327.726);
  --chart-5: oklch(0.279 0.116 331.292);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.027 328.98);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.055 329.513);
  --muted-foreground: oklch(0.802 0.013 327.705);
  --popover: oklch(0.125 0.027 328.98);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.027 328.98);
  --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.277 0.113 331.213);
  --primary-foreground: oklch(0.78 0.17 329.494);
  --secondary: oklch(0.225 0.005 327.773);
  --secondary-foreground: oklch(0.77 0.01 327.675);
  --accent: oklch(0.225 0.005 327.773);
  --accent-foreground: oklch(0.77 0.01 327.675);
  --destructive: oklch(0.693 0.187 38.271);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.277 0.113 331.213);
  --chart-1: oklch(0.277 0.113 331.213);
  --chart-2: oklch(0.225 0.005 327.773);
  --chart-3: oklch(0.225 0.005 327.773);
  --chart-4: oklch(0.257 0.006 327.79);
  --chart-5: oklch(0.279 0.116 331.292);
}