Frosty for shadcn/ui

Frosty is a shadcn/ui theme built around a green primary color (#90e057) with green accents (#57e062). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#90e057) on a green-tinted background (#070c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#070c03black
Foreground
#020401black
#f7f8f6whitesmoke
Card
#ffffffwhite
#070c03black
Card foreground
#020401black
#f7f8f6whitesmoke
Popover
#ffffffwhite
#070c03black
Popover foreground
#020401black
#f7f8f6whitesmoke
Primary
#90e057yellowgreen
#90e057yellowgreen
Primary foreground
#020401black
#020401black
Secondary
#d5e057darkkhaki
#d5e057darkkhaki
Secondary foreground
#040401black
#040401black
Muted
#e6e7dfgainsboro
#202018black
Muted foreground
#61634fdimgray
#aeb09cdarkgray
Accent
#57e062mediumseagreen
#57e062mediumseagreen
Accent foreground
#010401black
#010401black
Destructive
#cb3406firebrick
#ed3d07orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#90e057yellowgreen
#90e057yellowgreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button12.74:1AAA
Secondary button14.31:1AAA
Muted text4.95:1AA
Accent12.03:1AAA
Destructive5.20:1AA
Dark mode
Text on background18.54:1AAA
Text on card18.54:1AAA
Primary button12.74:1AAA
Secondary button14.31:1AAA
Muted text7.39:1AAA
Accent12.03:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.016 130.302);
  --muted: oklch(0.926 0.011 110.474);
  --muted-foreground: oklch(0.493 0.03 111.372);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.016 130.302);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.016 130.302);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.828 0.188 134.376);
  --primary-foreground: oklch(0.102 0.02 130.034);
  --secondary: oklch(0.873 0.159 113.716);
  --secondary-foreground: oklch(0.106 0.017 111.993);
  --accent: oklch(0.805 0.206 144.745);
  --accent-foreground: oklch(0.098 0.022 146.421);
  --destructive: oklch(0.555 0.193 34.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.828 0.188 134.376);
  --chart-1: oklch(0.828 0.188 134.376);
  --chart-2: oklch(0.873 0.159 113.716);
  --chart-3: oklch(0.805 0.206 144.745);
  --chart-4: oklch(0.882 0.15 113.447);
  --chart-5: oklch(0.834 0.194 134.504);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.023 130.497);
  --foreground: oklch(0.979 0.003 131.749);
  --muted: oklch(0.241 0.015 111.423);
  --muted-foreground: oklch(0.749 0.027 110.925);
  --popover: oklch(0.144 0.023 130.497);
  --popover-foreground: oklch(0.979 0.003 131.749);
  --card: oklch(0.144 0.023 130.497);
  --card-foreground: oklch(0.979 0.003 131.749);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.828 0.188 134.376);
  --primary-foreground: oklch(0.102 0.02 130.034);
  --secondary: oklch(0.873 0.159 113.716);
  --secondary-foreground: oklch(0.106 0.017 111.993);
  --accent: oklch(0.805 0.206 144.745);
  --accent-foreground: oklch(0.098 0.022 146.421);
  --destructive: oklch(0.623 0.219 34.445);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.828 0.188 134.376);
  --chart-1: oklch(0.828 0.188 134.376);
  --chart-2: oklch(0.873 0.159 113.716);
  --chart-3: oklch(0.805 0.206 144.745);
  --chart-4: oklch(0.882 0.15 113.447);
  --chart-5: oklch(0.834 0.194 134.504);
}