Frosty for shadcn/ui

Frosty is a shadcn/ui theme built around a near-black primary color (#050605) with neutral gray accents (#ccd1cc). The light mode uses a neutral background (#fbfefb). Dark mode keeps the near-black primary (#050605) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#fbfefbwhite
#010401black
Foreground
#000000black
#fcfdfcwhite
Card
#f8fdf7mintcream
#030802black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefbwhite
#010401black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#050605black
#050605black
Primary foreground
#98a795darkseagreen
#98a795darkseagreen
Secondary
#ccd1cclightgrey
#282f27darkslategray
Secondary foreground
#333932darkslategray
#c0cabfsilver
Muted
#d6e9d3gainsboro
#192c16black
Muted foreground
#3d493cdarkslategray
#b8c3b6silver
Accent
#ccd1cclightgrey
#282f27darkslategray
Accent foreground
#333932darkslategray
#c0cabfsilver
Destructive
#9b0808darkred
#df0c0cred
Destructive foreground
#fdd8d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050605black
#050605black

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.32:1AAA
Primary button8.03:1AAA
Secondary button7.68:1AAA
Muted text7.42:1AAA
Accent7.68:1AAA
Destructive6.57:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button8.03:1AAA
Secondary button8.11:1AAA
Muted text8.11:1AAA
Accent8.11:1AAA
Destructive5.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 141.581);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.914 0.037 141.479);
  --muted-foreground: oklch(0.391 0.027 141.401);
  --popover: oklch(0.994 0.004 141.581);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.008 141.569);
  --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.117 0.004 141.312);
  --primary-foreground: oklch(0.711 0.03 141.473);
  --secondary: oklch(0.857 0.01 141.561);
  --secondary-foreground: oklch(0.336 0.013 141.48);
  --accent: oklch(0.857 0.01 141.561);
  --accent-foreground: oklch(0.336 0.013 141.48);
  --destructive: oklch(0.436 0.174 28.639);
  --destructive-foreground: oklch(0.914 0.041 17.928);
  --ring: oklch(0.117 0.004 141.312);
  --chart-1: oklch(0.117 0.004 141.312);
  --chart-2: oklch(0.857 0.01 141.561);
  --chart-3: oklch(0.857 0.01 141.561);
  --chart-4: oklch(0.88 0.008 141.567);
  --chart-5: oklch(0.117 0.005 141.219);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.019 139.768);
  --foreground: oklch(0.993 0.001 141.589);
  --muted: oklch(0.271 0.048 141.139);
  --muted-foreground: oklch(0.806 0.022 141.514);
  --popover: oklch(0.098 0.019 139.768);
  --popover-foreground: oklch(0.993 0.001 141.589);
  --card: oklch(0.124 0.024 139.768);
  --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.117 0.004 141.312);
  --primary-foreground: oklch(0.711 0.03 141.473);
  --secondary: oklch(0.297 0.017 141.433);
  --secondary-foreground: oklch(0.828 0.018 141.532);
  --accent: oklch(0.297 0.017 141.433);
  --accent-foreground: oklch(0.828 0.018 141.532);
  --destructive: oklch(0.57 0.23 28.845);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.117 0.004 141.312);
  --chart-1: oklch(0.117 0.004 141.312);
  --chart-2: oklch(0.297 0.017 141.433);
  --chart-3: oklch(0.297 0.017 141.433);
  --chart-4: oklch(0.328 0.019 141.427);
  --chart-5: oklch(0.117 0.005 141.219);
}