IQ.wiki Theme (Reduced Brightness) for shadcn/ui

IQ.wiki Theme (Reduced Brightness) 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 (#17202b).

Color palette

TokenLightDark
Background
#fafafasnow
#17202bblack
Foreground
#0e0c0dblack
#fafcf8snow
Card
#f8f7f7whitesmoke
#202a37darkslategray
Card foreground
#0e0c0dblack
#fdfdfbsnow
Popover
#f8f7f7whitesmoke
#202a37darkslategray
Popover foreground
#0e0c0dblack
#fafcf8snow
Primary
#f93493deeppink
#fb3393deeppink
Primary foreground
#fafafasnow
#ffffffwhite
Secondary
#eeecedwhitesmoke
#202a37darkslategray
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
#2f3846darkslategray
Input
#d4ced1lightgrey
#424c5cdarkslategray
Ring
#ff94c8lightpink
#fb3393deeppink

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 background15.89:1AAA
Text on card14.24:1AAA
Primary button3.50:1AA Large
Secondary button14.25: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 (Reduced Brightness) 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.241 0.025 253.764);
  --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.282 0.028 255.171);
  --popover-foreground: oklch(0.988 0.006 125.122);
  --card: oklch(0.282 0.028 255.171);
  --card-foreground: oklch(0.994 0.003 125.083);
  --border: oklch(0.338 0.028 259.842);
  --input: oklch(0.413 0.029 261.346);
  --primary: oklch(0.662 0.242 357.66);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.282 0.028 255.171);
  --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.662 0.242 357.66);
  --chart-1: oklch(0.662 0.242 357.66);
  --chart-2: oklch(0.282 0.028 255.171);
  --chart-3: oklch(0.21 0.032 264.665);
  --chart-4: oklch(0.311 0.032 255.183);
  --chart-5: oklch(0.665 0.246 358.07);
}