Climate for shadcn/ui

Climate is a shadcn/ui theme built around a deep pink primary color (#62132e) with deep red accents (#622013). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the deep pink primary (#62132e) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fdf7f9snow
#040102black
Foreground
#000000black
#f9f5f7whitesmoke
Card
#fdf7f9snow
#040102black
Card foreground
#000000black
#f9f5f7whitesmoke
Popover
#fdf7f9snow
#040102black
Popover foreground
#000000black
#f9f5f7whitesmoke
Primary
#62132emaroon
#62132emaroon
Primary foreground
#f1b7calightpink
#f1b7calightpink
Secondary
#621355indigo
#621355indigo
Secondary foreground
#f1b7e7thistle
#f1b7e7thistle
Muted
#f1eaf0whitesmoke
#150e14black
Muted foreground
#6f5d6cdimgray
#a2909fdarkgray
Accent
#622013maroon
#622013maroon
Accent foreground
#f1c0b7lightpink
#f1c0b7lightpink
Destructive
#640a02maroon
#fc3927orangered
Destructive foreground
#fda39blightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#62132emaroon
#62132emaroon

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.48:1AAA
Secondary button7.25:1AAA
Muted text5.11:1AA
Accent7.45:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button7.48:1AAA
Secondary button7.25:1AAA
Muted text6.34:1AA
Accent7.45:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 354.781);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.011 330.978);
  --muted-foreground: oklch(0.501 0.033 331.686);
  --popover: oklch(0.981 0.007 354.781);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 354.781);
  --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.334 0.112 5.947);
  --primary-foreground: oklch(0.836 0.071 356.937);
  --secondary: oklch(0.352 0.134 335.839);
  --secondary-foreground: oklch(0.846 0.092 332.212);
  --accent: oklch(0.344 0.098 33.187);
  --accent-foreground: oklch(0.849 0.058 31.332);
  --destructive: oklch(0.324 0.124 30.924);
  --destructive-foreground: oklch(0.803 0.109 25.422);
  --ring: oklch(0.334 0.112 5.947);
  --chart-1: oklch(0.334 0.112 5.947);
  --chart-2: oklch(0.352 0.134 335.839);
  --chart-3: oklch(0.344 0.098 33.187);
  --chart-4: oklch(0.382 0.147 335.929);
  --chart-5: oklch(0.336 0.116 6.568);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 354.302);
  --foreground: oklch(0.975 0.005 354.723);
  --muted: oklch(0.177 0.017 332.037);
  --muted-foreground: oklch(0.674 0.031 331.425);
  --popover: oklch(0.085 0.012 354.302);
  --popover-foreground: oklch(0.975 0.005 354.723);
  --card: oklch(0.085 0.012 354.302);
  --card-foreground: oklch(0.975 0.005 354.723);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.334 0.112 5.947);
  --primary-foreground: oklch(0.836 0.071 356.937);
  --secondary: oklch(0.352 0.134 335.839);
  --secondary-foreground: oklch(0.846 0.092 332.212);
  --accent: oklch(0.344 0.098 33.187);
  --accent-foreground: oklch(0.849 0.058 31.332);
  --destructive: oklch(0.646 0.232 29.883);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.334 0.112 5.947);
  --chart-1: oklch(0.334 0.112 5.947);
  --chart-2: oklch(0.352 0.134 335.839);
  --chart-3: oklch(0.344 0.098 33.187);
  --chart-4: oklch(0.382 0.147 335.929);
  --chart-5: oklch(0.336 0.116 6.568);
}