Icey for shadcn/ui

Icey is a shadcn/ui theme built around a cyan primary color (#aac8d4) with muted light cyan accents (#c9d1d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#aac8d4) on a cyan-tinted background (#04090b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04090bblack
Foreground
#000000black
#f4f9famintcream
Card
#fcfcfcsnow
#060c0fblack
Card foreground
#000000black
#f8fbfcghostwhite
Popover
#ffffffwhite
#04090bblack
Popover foreground
#000000black
#f4f9famintcream
Primary
#aac8d4lightsteelblue
#aac8d4lightsteelblue
Primary foreground
#1a2b33darkslategray
#1a2b33darkslategray
Secondary
#e7e9e9lavender
#283033darkslategray
Secondary foreground
#4b5153darkslategray
#c0cacesilver
Muted
#e0e4e5gainsboro
#1a1d1fblack
Muted foreground
#506168dimgray
#97a8afdarkgray
Accent
#c9d1d4lightgrey
#3b4c54darkslategray
Accent foreground
#2f383cdarkslategray
#dbe2e6gainsboro
Destructive
#c41208firebrick
#f63b31tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aac8d4lightsteelblue
#aac8d4lightsteelblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.27:1AAA
Secondary button6.60:1AA
Muted text5.04:1AA
Accent7.72:1AAA
Destructive6.12:1AA
Dark mode
Text on background18.84:1AAA
Text on card18.93:1AAA
Primary button8.27:1AAA
Secondary button8.03:1AAA
Muted text6.89:1AA
Accent6.80:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.004 225.035);
  --muted-foreground: oklch(0.48 0.023 225.664);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.814 0.036 225.59);
  --primary-foreground: oklch(0.278 0.027 226.814);
  --secondary: oklch(0.932 0.002 225.006);
  --secondary-foreground: oklch(0.429 0.008 225.208);
  --accent: oklch(0.855 0.01 225.118);
  --accent-foreground: oklch(0.334 0.014 225.539);
  --destructive: oklch(0.52 0.206 29.492);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.036 225.59);
  --chart-1: oklch(0.814 0.036 225.59);
  --chart-2: oklch(0.932 0.002 225.006);
  --chart-3: oklch(0.855 0.01 225.118);
  --chart-4: oklch(0.954 0.001 224.998);
  --chart-5: oklch(0.815 0.04 225.657);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.011 220.722);
  --foreground: oklch(0.978 0.005 225.041);
  --muted: oklch(0.228 0.006 225.311);
  --muted-foreground: oklch(0.721 0.021 225.356);
  --popover: oklch(0.134 0.011 220.722);
  --popover-foreground: oklch(0.978 0.005 225.041);
  --card: oklch(0.148 0.012 223.881);
  --card-foreground: oklch(0.985 0.003 225.021);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.814 0.036 225.59);
  --primary-foreground: oklch(0.278 0.027 226.814);
  --secondary: oklch(0.304 0.012 225.517);
  --secondary-foreground: oklch(0.832 0.012 225.147);
  --accent: oklch(0.406 0.025 225.889);
  --accent-foreground: oklch(0.91 0.009 225.094);
  --destructive: oklch(0.64 0.224 28.404);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.036 225.59);
  --chart-1: oklch(0.814 0.036 225.59);
  --chart-2: oklch(0.304 0.012 225.517);
  --chart-3: oklch(0.406 0.025 225.889);
  --chart-4: oklch(0.334 0.014 225.539);
  --chart-5: oklch(0.815 0.04 225.657);
}