Icky for shadcn/ui

Icky is a shadcn/ui theme built around a near-black primary color (#040104) with muted light purple accents (#d0bbd3). The light mode uses a neutral background (#fefbfe). Dark mode keeps the near-black primary (#040104) on a purple-tinted background (#0a050b).

Color palette

TokenLightDark
Background
#fefbfewhite
#0a050bblack
Foreground
#000000black
#f8f6f8whitesmoke
Card
#fcf6fdghostwhite
#0d060eblack
Card foreground
#000000black
#faf9fbghostwhite
Popover
#fefbfewhite
#0a050bblack
Popover foreground
#000000black
#f8f6f8whitesmoke
Primary
#040104black
#040104black
Primary foreground
#e6adf0plum
#e6adf0plum
Secondary
#dad0dclightgrey
#151316black
Secondary foreground
#433546darkslategray
#b1a8b3darkgray
Muted
#efeaf0whitesmoke
#140f15black
Muted foreground
#5a515cdimgray
#aca3aedarkgray
Accent
#d0bbd3thistle
#271e29darkslategray
Accent foreground
#352438darkslategray
#c4b3c7silver
Destructive
#b12b06firebrick
#e23708orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040104black
#040104black

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card19.81:1AAA
Primary button11.48:1AAA
Secondary button7.67:1AAA
Muted text6.41:1AA
Accent7.99:1AAA
Destructive6.50:1AA
Dark mode
Text on background18.82:1AAA
Text on card19.04:1AAA
Primary button11.48:1AAA
Secondary button8.02:1AAA
Muted text7.75:1AAA
Accent8.11:1AAA
Destructive4.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 321.077);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.009 321.085);
  --muted-foreground: oklch(0.449 0.02 321.161);
  --popover: oklch(0.99 0.005 321.077);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.011 321.089);
  --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.083 0.024 323.377);
  --primary-foreground: oklch(0.822 0.112 321.33);
  --secondary: oklch(0.87 0.019 321.112);
  --secondary-foreground: oklch(0.35 0.035 321.27);
  --accent: oklch(0.816 0.041 321.173);
  --accent-foreground: oklch(0.289 0.043 321.35);
  --destructive: oklch(0.501 0.175 34.217);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.083 0.024 323.377);
  --chart-1: oklch(0.083 0.024 323.377);
  --chart-2: oklch(0.87 0.019 321.112);
  --chart-3: oklch(0.816 0.041 321.173);
  --chart-4: oklch(0.895 0.015 321.102);
  --chart-5: oklch(0.082 0.026 323.483);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 322.283);
  --foreground: oklch(0.976 0.003 321.072);
  --muted: oklch(0.177 0.013 321.219);
  --muted-foreground: oklch(0.726 0.018 321.118);
  --popover: oklch(0.126 0.019 322.283);
  --popover-foreground: oklch(0.976 0.003 321.072);
  --card: oklch(0.139 0.022 321.711);
  --card-foreground: oklch(0.984 0.002 321.07);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.083 0.024 323.377);
  --primary-foreground: oklch(0.822 0.112 321.33);
  --secondary: oklch(0.191 0.007 321.142);
  --secondary-foreground: oklch(0.742 0.019 321.122);
  --accent: oklch(0.252 0.024 321.26);
  --accent-foreground: oklch(0.786 0.033 321.156);
  --destructive: oklch(0.6 0.212 33.899);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.083 0.024 323.377);
  --chart-1: oklch(0.083 0.024 323.377);
  --chart-2: oklch(0.191 0.007 321.142);
  --chart-3: oklch(0.252 0.024 321.26);
  --chart-4: oklch(0.224 0.009 321.152);
  --chart-5: oklch(0.082 0.026 323.483);
}