Icy for shadcn/ui

Icy is a shadcn/ui theme built around a muted deep violet primary color (#282433) with muted deep green accents (#2e3324). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#282433) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#080311black
#fcfcfdwhite
Card
#fcfcfcsnow
#040208black
Card foreground
#06020dblack
#ffffffwhite
Popover
#ffffffwhite
#020104black
Popover foreground
#080311black
#fcfcfdwhite
Primary
#282433darkslategray
#282433darkslategray
Primary foreground
#c0bacfsilver
#c0bacfsilver
Secondary
#2e3324darkslategray
#2e3324darkslategray
Secondary foreground
#c8cfbasilver
#c8cfbasilver
Muted
#e8ecdfbeige
#1c2013black
Muted foreground
#525251darkslategray
#aeaeaddarkgray
Accent
#2e3324darkslategray
#2e3324darkslategray
Accent foreground
#c8cfbasilver
#c8cfbasilver
Destructive
#7e1801maroon
#f72f02orangered
Destructive foreground
#fec1b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#282433darkslategray
#282433darkslategray

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.10:1AAA
Primary button8.04:1AAA
Secondary button8.08:1AAA
Muted text6.51:1AA
Accent8.08:1AAA
Destructive6.66:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.63:1AAA
Primary button8.04:1AAA
Secondary button8.08:1AAA
Muted text7.48:1AAA
Accent8.08:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.12 0.037 299.437);
  --muted: oklch(0.936 0.017 121.076);
  --muted-foreground: oklch(0.439 0.003 120.869);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.12 0.037 299.437);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.108 0.032 300.877);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.271 0.029 298.954);
  --primary-foreground: oklch(0.8 0.03 300.144);
  --secondary: oklch(0.312 0.028 122.27);
  --secondary-foreground: oklch(0.843 0.03 121.35);
  --accent: oklch(0.312 0.028 122.27);
  --accent-foreground: oklch(0.843 0.03 121.35);
  --destructive: oklch(0.387 0.14 33.436);
  --destructive-foreground: oklch(0.863 0.073 32.937);
  --ring: oklch(0.271 0.029 298.954);
  --chart-1: oklch(0.271 0.029 298.954);
  --chart-2: oklch(0.312 0.028 122.27);
  --chart-3: oklch(0.312 0.028 122.27);
  --chart-4: oklch(0.346 0.032 122.323);
  --chart-5: oklch(0.268 0.034 298.609);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.078 0.018 301.193);
  --foreground: oklch(0.992 0.001 300.755);
  --muted: oklch(0.235 0.024 122.527);
  --muted-foreground: oklch(0.751 0.002 120.82);
  --popover: oklch(0.078 0.018 301.193);
  --popover-foreground: oklch(0.992 0.001 300.755);
  --card: oklch(0.098 0.023 301.193);
  --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.271 0.029 298.954);
  --primary-foreground: oklch(0.8 0.03 300.144);
  --secondary: oklch(0.312 0.028 122.27);
  --secondary-foreground: oklch(0.843 0.03 121.35);
  --accent: oklch(0.312 0.028 122.27);
  --accent-foreground: oklch(0.843 0.03 121.35);
  --destructive: oklch(0.631 0.236 32.242);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.271 0.029 298.954);
  --chart-1: oklch(0.271 0.029 298.954);
  --chart-2: oklch(0.312 0.028 122.27);
  --chart-3: oklch(0.312 0.028 122.27);
  --chart-4: oklch(0.346 0.032 122.323);
  --chart-5: oklch(0.268 0.034 298.609);
}