Snowman for shadcn/ui

Snowman is a shadcn/ui theme built around a light blue primary color (#c3dfef) with light blue accents (#c3c9ef). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#c3dfef) on a blue-tinted background (#04090b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04090bblack
Foreground
#010304black
#f4f8fawhitesmoke
Card
#ffffffwhite
#04090bblack
Card foreground
#010304black
#f4f8fawhitesmoke
Popover
#ffffffwhite
#04090bblack
Popover foreground
#010304black
#f4f8fawhitesmoke
Primary
#c3dfefpowderblue
#c3dfefpowderblue
Primary foreground
#1b4964darkslategray
#1b4964darkslategray
Secondary
#c3efe9paleturquoise
#c3efe9paleturquoise
Secondary foreground
#051412black
#051412black
Muted
#d2e5e2gainsboro
#1a2d2bdarkslategray
Muted foreground
#455957darkslategray
#a6bab7darkgray
Accent
#c3c9eflightsteelblue
#c3c9eflightsteelblue
Accent foreground
#1b2564midnightblue
#1b2564midnightblue
Destructive
#993b0fsaddlebrown
#e85917chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c3dfefpowderblue
#c3dfefpowderblue

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button6.90:1AA
Secondary button15.05:1AAA
Muted text5.68:1AA
Accent8.62:1AAA
Destructive7.03:1AAA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button6.90:1AA
Secondary button15.05:1AAA
Muted text7.07:1AAA
Accent8.62:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.092 0.009 226.015);
  --muted: oklch(0.907 0.021 187.179);
  --muted-foreground: oklch(0.447 0.026 186.283);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.092 0.009 226.015);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.092 0.009 226.015);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.887 0.037 233.221);
  --primary-foreground: oklch(0.388 0.067 237.533);
  --secondary: oklch(0.919 0.046 186.484);
  --secondary-foreground: oklch(0.177 0.021 184.759);
  --accent: oklch(0.843 0.053 278.312);
  --accent-foreground: oklch(0.3 0.111 271.347);
  --destructive: oklch(0.477 0.137 41.328);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.887 0.037 233.221);
  --chart-1: oklch(0.887 0.037 233.221);
  --chart-2: oklch(0.919 0.046 186.484);
  --chart-3: oklch(0.843 0.053 278.312);
  --chart-4: oklch(0.934 0.037 186.758);
  --chart-5: oklch(0.887 0.039 233.258);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.012 227.274);
  --foreground: oklch(0.977 0.005 232.651);
  --muted: oklch(0.281 0.026 185.279);
  --muted-foreground: oklch(0.773 0.023 187.008);
  --popover: oklch(0.133 0.012 227.274);
  --popover-foreground: oklch(0.977 0.005 232.651);
  --card: oklch(0.133 0.012 227.274);
  --card-foreground: oklch(0.977 0.005 232.651);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.887 0.037 233.221);
  --primary-foreground: oklch(0.388 0.067 237.533);
  --secondary: oklch(0.919 0.046 186.484);
  --secondary-foreground: oklch(0.177 0.021 184.759);
  --accent: oklch(0.843 0.053 278.312);
  --accent-foreground: oklch(0.3 0.111 271.347);
  --destructive: oklch(0.645 0.19 40.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.887 0.037 233.221);
  --chart-1: oklch(0.887 0.037 233.221);
  --chart-2: oklch(0.919 0.046 186.484);
  --chart-3: oklch(0.843 0.053 278.312);
  --chart-4: oklch(0.934 0.037 186.758);
  --chart-5: oklch(0.887 0.039 233.258);
}