IQ.wiki Theme for shadcn/ui

IQ.wiki Theme is a shadcn/ui theme built around a vivid pink primary color (#f93493) with near-white accents (#eeeced). The light mode uses a neutral background (#fafafa). Dark mode keeps the vivid pink primary (#fb3393) on a blue-tinted background (#202a37).

Color palette

TokenLightDark
Background
#fafafasnow
#202a37darkslategray
Foreground
#0e0c0dblack
#fafcf8snow
Card
#f8f7f7whitesmoke
#374151darkslategray
Card foreground
#0e0c0dblack
#fdfdfbsnow
Popover
#f8f7f7whitesmoke
#374151darkslategray
Popover foreground
#0e0c0dblack
#fafcf8snow
Primary
#f93493deeppink
#fb3393deeppink
Primary foreground
#fafafasnow
#ffffffwhite
Secondary
#eeecedwhitesmoke
#374151darkslategray
Secondary foreground
#0e0c0dblack
#fdfdfdwhite
Muted
#eeecedwhitesmoke
#444d5adarkslategray
Muted foreground
#7a6c73dimgray
#9d9d9ddarkgray
Accent
#eeecedwhitesmoke
#111827black
Accent foreground
#0e0c0dblack
#ffffffwhite
Destructive
#ef4343tomato
#c04723sienna
Destructive foreground
#fafafasnow
#ffffffwhite
Border
#e7e4e5gainsboro
#374151darkslategray
Input
#d4ced1lightgrey
#4b5566dimgray
Ring
#ff94c8lightpink
#c6cdbcsilver

Contrast

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

Light mode
Text on background18.66:1AAA
Text on card18.19:1AAA
Primary button3.39:1AA Large
Secondary button16.59:1AAA
Muted text4.23:1AA Large
Accent16.59:1AAA
Destructive3.62:1AA Large
Dark mode
Text on background14.05:1AAA
Text on card10.11:1AAA
Primary button3.50:1AA Large
Secondary button10.13:1AAA
Muted text3.15:1AA Large
Accent17.73:1AAA
Destructive5.03:1AA

CSS variables

Paste this into your globals.css to use IQ.wiki Theme in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0 180);
  --foreground: oklch(0.156 0.004 345.809);
  --muted: oklch(0.945 0.003 345.218);
  --muted-foreground: oklch(0.546 0.02 346.077);
  --popover: oklch(0.976 0.001 17.18);
  --popover-foreground: oklch(0.156 0.004 345.809);
  --card: oklch(0.976 0.001 17.18);
  --card-foreground: oklch(0.156 0.004 345.809);
  --border: oklch(0.921 0.004 354.7);
  --input: oklch(0.857 0.008 345.396);
  --primary: oklch(0.659 0.239 357.238);
  --primary-foreground: oklch(0.985 0 180);
  --secondary: oklch(0.945 0.003 345.218);
  --secondary-foreground: oklch(0.156 0.004 345.809);
  --accent: oklch(0.945 0.003 345.218);
  --accent-foreground: oklch(0.156 0.004 345.809);
  --destructive: oklch(0.636 0.208 25.378);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.793 0.141 350.424);
  --chart-1: oklch(0.659 0.239 357.238);
  --chart-2: oklch(0.945 0.003 345.218);
  --chart-3: oklch(0.945 0.003 345.218);
  --chart-4: oklch(0.969 0.002 345.185);
  --chart-5: oklch(0.662 0.243 357.647);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.282 0.028 255.171);
  --foreground: oklch(0.988 0.006 125.122);
  --muted: oklch(0.417 0.025 259.779);
  --muted-foreground: oklch(0.696 0 180);
  --popover: oklch(0.373 0.031 259.728);
  --popover-foreground: oklch(0.988 0.006 125.122);
  --card: oklch(0.373 0.031 259.728);
  --card-foreground: oklch(0.994 0.003 125.083);
  --border: oklch(0.373 0.031 259.728);
  --input: oklch(0.448 0.031 259.76);
  --primary: oklch(0.662 0.242 357.66);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.373 0.031 259.728);
  --secondary-foreground: oklch(0.994 0 192.529);
  --accent: oklch(0.21 0.032 264.665);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.559 0.163 36.474);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.837 0.024 125.439);
  --chart-1: oklch(0.662 0.242 357.66);
  --chart-2: oklch(0.373 0.031 259.728);
  --chart-3: oklch(0.21 0.032 264.665);
  --chart-4: oklch(0.4 0.033 259.724);
  --chart-5: oklch(0.665 0.246 358.07);
}