Icon for shadcn/ui

Icon is a shadcn/ui theme built around a pink primary color (#ca77ae) with blue accents (#77aeca). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the pink primary (#ca77ae) on a neutral background (#040203).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#040203black
Foreground
#0f050cblack
#ffffffwhite
Card
#fcf8fbsnow
#040203black
Card foreground
#0f050cblack
#ffffffwhite
Popover
#fcf8fbsnow
#040203black
Popover foreground
#0f050cblack
#ffffffwhite
Primary
#ca77aepalevioletred
#ca77aepalevioletred
Primary foreground
#0b0409black
#0b0409black
Secondary
#aeca77darkkhaki
#aeca77darkkhaki
Secondary foreground
#090b04black
#090b04black
Muted
#dadbd6gainsboro
#272924darkslategray
Muted foreground
#585e4adarkolivegreen
#aeb5a1darkgray
Accent
#77aecacornflowerblue
#77aecacornflowerblue
Accent foreground
#04090bblack
#04090bblack
Destructive
#d30909red
#e10909red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ca77aepalevioletred
#ca77aepalevioletred

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button6.54:1AA
Secondary button10.87:1AAA
Muted text4.85:1AA
Accent8.32:1AAA
Destructive5.52:1AA
Dark mode
Text on background20.73:1AAA
Text on card20.73:1AAA
Primary button6.54:1AA
Secondary button10.87:1AAA
Muted text6.94:1AA
Accent8.32:1AAA
Destructive4.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 337.383);
  --foreground: oklch(0.137 0.026 339.322);
  --muted: oklch(0.89 0.007 121.628);
  --muted-foreground: oklch(0.471 0.033 122.63);
  --popover: oklch(0.983 0.006 337.383);
  --popover-foreground: oklch(0.137 0.026 339.322);
  --card: oklch(0.983 0.006 337.383);
  --card-foreground: oklch(0.137 0.026 339.322);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.677 0.125 340.693);
  --primary-foreground: oklch(0.125 0.019 337.677);
  --secondary: oklch(0.8 0.113 123.97);
  --secondary-foreground: oklch(0.144 0.017 121.32);
  --accent: oklch(0.724 0.07 230.65);
  --accent-foreground: oklch(0.133 0.011 224.098);
  --destructive: oklch(0.546 0.221 28.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.125 340.693);
  --chart-1: oklch(0.677 0.125 340.693);
  --chart-2: oklch(0.8 0.113 123.97);
  --chart-3: oklch(0.724 0.07 230.65);
  --chart-4: oklch(0.816 0.104 123.697);
  --chart-5: oklch(0.676 0.133 340.918);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.011 337.529);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.277 0.01 122.076);
  --muted-foreground: oklch(0.762 0.029 122.113);
  --popover: oklch(0.087 0.011 337.529);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.011 337.529);
  --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.677 0.125 340.693);
  --primary-foreground: oklch(0.125 0.019 337.677);
  --secondary: oklch(0.8 0.113 123.97);
  --secondary-foreground: oklch(0.144 0.017 121.32);
  --accent: oklch(0.724 0.07 230.65);
  --accent-foreground: oklch(0.133 0.011 224.098);
  --destructive: oklch(0.574 0.232 28.93);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.125 340.693);
  --chart-1: oklch(0.677 0.125 340.693);
  --chart-2: oklch(0.8 0.113 123.97);
  --chart-3: oklch(0.724 0.07 230.65);
  --chart-4: oklch(0.816 0.104 123.697);
  --chart-5: oklch(0.676 0.133 340.918);
}