Frosty for shadcn/ui

Frosty is a shadcn/ui theme built around a near-black primary color (#1b1819) with near-black accents (#181b1a). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the near-black primary (#1b1819) on a red-tinted background (#0c0405).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0c0405black
Foreground
#040102black
#ffffffwhite
Card
#fcf3f5lavenderblush
#100507black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f8snow
#0c0405black
Popover foreground
#040102black
#ffffffwhite
Primary
#1b1819black
#1b1819black
Primary foreground
#b7aeb0darkgray
#b7aeb0darkgray
Secondary
#181b1ablack
#181b1ablack
Secondary foreground
#aeb7b5darkgray
#aeb7b5darkgray
Muted
#d6e6e3gainsboro
#192926darkslategray
Muted foreground
#3b4e4adarkslategray
#b1c4c0silver
Accent
#181b1ablack
#181b1ablack
Accent foreground
#aeb7b5darkgray
#aeb7b5darkgray
Destructive
#871f0ddarkred
#ec5236tomato
Destructive foreground
#fad3ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b1819black
#1b1819black

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.27:1AAA
Primary button8.14:1AAA
Secondary button8.45:1AAA
Muted text6.85:1AA
Accent8.45:1AAA
Destructive6.81:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.09:1AAA
Primary button8.14:1AAA
Secondary button8.45:1AAA
Muted text8.28:1AAA
Accent8.45:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 2.24);
  --foreground: oklch(0.083 0.015 2.2);
  --muted: oklch(0.912 0.018 181.502);
  --muted-foreground: oklch(0.408 0.025 180.241);
  --popover: oklch(0.981 0.006 2.24);
  --popover-foreground: oklch(0.083 0.015 2.2);
  --card: oklch(0.972 0.009 2.33);
  --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.213 0.005 2.706);
  --primary-foreground: oklch(0.759 0.011 2.458);
  --secondary: oklch(0.219 0.005 181.445);
  --secondary-foreground: oklch(0.772 0.011 181.682);
  --accent: oklch(0.219 0.005 181.445);
  --accent-foreground: oklch(0.772 0.011 181.682);
  --destructive: oklch(0.412 0.142 32.267);
  --destructive-foreground: oklch(0.897 0.046 29.733);
  --ring: oklch(0.213 0.005 2.706);
  --chart-1: oklch(0.213 0.005 2.706);
  --chart-2: oklch(0.219 0.005 181.445);
  --chart-3: oklch(0.219 0.005 181.445);
  --chart-4: oklch(0.252 0.006 181.39);
  --chart-5: oklch(0.211 0.008 3.033);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.02 2.349);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.267 0.023 179.35);
  --muted-foreground: oklch(0.804 0.022 181.296);
  --popover: oklch(0.121 0.02 2.349);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.023 3.483);
  --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.213 0.005 2.706);
  --primary-foreground: oklch(0.759 0.011 2.458);
  --secondary: oklch(0.219 0.005 181.445);
  --secondary-foreground: oklch(0.772 0.011 181.682);
  --accent: oklch(0.219 0.005 181.445);
  --accent-foreground: oklch(0.772 0.011 181.682);
  --destructive: oklch(0.645 0.195 32.339);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.213 0.005 2.706);
  --chart-1: oklch(0.213 0.005 2.706);
  --chart-2: oklch(0.219 0.005 181.445);
  --chart-3: oklch(0.219 0.005 181.445);
  --chart-4: oklch(0.252 0.006 181.39);
  --chart-5: oklch(0.211 0.008 3.033);
}