Frosty for shadcn/ui

Frosty is a shadcn/ui theme built around a vivid deep teal primary color (#021312) with muted light teal accents (#cbd2d2). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the vivid deep teal primary (#021312) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#050a0ablack
Foreground
#041615black
#f4fafamintcream
Card
#f3fcfbmintcream
#070e0dblack
Card foreground
#031110black
#f8fcfcmintcream
Popover
#f3fcfbmintcream
#070e0dblack
Popover foreground
#031110black
#f8fcfcmintcream
Primary
#021312black
#021312black
Primary foreground
#11d0c3darkturquoise
#11d0c3darkturquoise
Secondary
#cbd2d2lightgrey
#282e2edarkslategray
Secondary foreground
#313a39darkslategray
#c0c8c8silver
Muted
#dee8e7gainsboro
#172120black
Muted foreground
#596e6ddimgray
#91a6a5darkgray
Accent
#cbd2d2lightgrey
#282e2edarkslategray
Accent foreground
#313a39darkslategray
#c0c8c8silver
Destructive
#c54a0dchocolate
#f16722chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#021312black
#021312black

Contrast

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

Light mode
Text on background18.03:1AAA
Text on card18.41:1AAA
Primary button9.82:1AAA
Secondary button7.64:1AAA
Muted text4.32:1AA Large
Accent7.64:1AAA
Destructive4.83:1AA
Dark mode
Text on background18.85:1AAA
Text on card18.88:1AAA
Primary button9.82:1AAA
Secondary button8.07:1AAA
Muted text6.43:1AA
Accent8.07:1AAA
Destructive6.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 192.295);
  --foreground: oklch(0.183 0.026 189.625);
  --muted: oklch(0.923 0.01 192.195);
  --muted-foreground: oklch(0.521 0.026 191.377);
  --popover: oklch(0.984 0.009 192.228);
  --popover-foreground: oklch(0.165 0.023 190.056);
  --card: oklch(0.984 0.009 192.228);
  --card-foreground: oklch(0.165 0.023 190.056);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.169 0.026 189.722);
  --primary-foreground: oklch(0.772 0.133 186.955);
  --secondary: oklch(0.859 0.008 192.221);
  --secondary-foreground: oklch(0.34 0.012 191.715);
  --accent: oklch(0.859 0.008 192.221);
  --accent-foreground: oklch(0.34 0.012 191.715);
  --destructive: oklch(0.569 0.169 41.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.169 0.026 189.722);
  --chart-1: oklch(0.169 0.026 189.722);
  --chart-2: oklch(0.859 0.008 192.221);
  --chart-3: oklch(0.859 0.008 192.221);
  --chart-4: oklch(0.882 0.007 192.259);
  --chart-5: oklch(0.17 0.027 189.654);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.01 191.726);
  --foreground: oklch(0.982 0.006 192.289);
  --muted: oklch(0.238 0.014 191.212);
  --muted-foreground: oklch(0.709 0.025 191.704);
  --popover: oklch(0.155 0.012 191.085);
  --popover-foreground: oklch(0.988 0.004 192.335);
  --card: oklch(0.155 0.012 191.085);
  --card-foreground: oklch(0.988 0.004 192.335);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.169 0.026 189.722);
  --primary-foreground: oklch(0.772 0.133 186.955);
  --secondary: oklch(0.297 0.009 191.827);
  --secondary-foreground: oklch(0.828 0.009 192.199);
  --accent: oklch(0.297 0.009 191.827);
  --accent-foreground: oklch(0.828 0.009 192.199);
  --destructive: oklch(0.677 0.186 42.945);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.169 0.026 189.722);
  --chart-1: oklch(0.169 0.026 189.722);
  --chart-2: oklch(0.297 0.009 191.827);
  --chart-3: oklch(0.297 0.009 191.827);
  --chart-4: oklch(0.328 0.01 191.806);
  --chart-5: oklch(0.17 0.027 189.654);
}