Snow for shadcn/ui

Snow is a shadcn/ui theme built around a muted green primary color (#95a08d) with muted green accents (#8da08f). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted green primary (#95a08d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafcf8snow
#000000black
Foreground
#091104black
#fcfdfcwhite
Card
#f7fbf4whitesmoke
#030303black
Card foreground
#070d03black
#ffffffwhite
Popover
#f7fbf4whitesmoke
#030303black
Popover foreground
#070d03black
#ffffffwhite
Primary
#95a08ddarkseagreen
#95a08ddarkseagreen
Primary foreground
#000000black
#000000black
Secondary
#9ea08ddarkgray
#9ea08ddarkgray
Secondary foreground
#000000black
#000000black
Muted
#eaebdbbeige
#232414black
Muted foreground
#525346darkolivegreen
#b8b9acdarkgray
Accent
#8da08fdarkseagreen
#8da08fdarkseagreen
Accent foreground
#000000black
#000000black
Destructive
#ce2803firebrick
#fb3104orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#95a08ddarkseagreen
#95a08ddarkseagreen

Contrast

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

Light mode
Text on background18.60:1AAA
Text on card18.75:1AAA
Primary button7.67:1AAA
Secondary button7.86:1AAA
Muted text6.49:1AA
Accent7.54:1AAA
Destructive5.34:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button7.67:1AAA
Secondary button7.86:1AAA
Muted text7.89:1AAA
Accent7.54:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 131.779);
  --foreground: oklch(0.164 0.031 131.457);
  --muted: oklch(0.936 0.022 110.691);
  --muted-foreground: oklch(0.438 0.022 111.167);
  --popover: oklch(0.983 0.01 131.808);
  --popover-foreground: oklch(0.146 0.027 130.407);
  --card: oklch(0.983 0.01 131.808);
  --card-foreground: oklch(0.146 0.027 130.407);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.691 0.03 132.082);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.699 0.027 110.955);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.033 147.548);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.551 0.204 32.522);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.03 132.082);
  --chart-1: oklch(0.691 0.03 132.082);
  --chart-2: oklch(0.699 0.027 110.955);
  --chart-3: oklch(0.685 0.033 147.548);
  --chart-4: oklch(0.722 0.025 110.879);
  --chart-5: oklch(0.697 0.039 132.201);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 131.738);
  --muted: oklch(0.256 0.029 112.348);
  --muted-foreground: oklch(0.782 0.019 110.701);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.691 0.03 132.082);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.699 0.027 110.955);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.033 147.548);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.638 0.238 32.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.03 132.082);
  --chart-1: oklch(0.691 0.03 132.082);
  --chart-2: oklch(0.699 0.027 110.955);
  --chart-3: oklch(0.685 0.033 147.548);
  --chart-4: oklch(0.722 0.025 110.879);
  --chart-5: oklch(0.697 0.039 132.201);
}