Ignorant for shadcn/ui

Ignorant is a shadcn/ui theme built around an indigo primary color (#7b80e0) with green accents (#80e07b). The light mode uses a neutral background (#f7f8fc). Dark mode keeps the indigo primary (#7b80e0) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#f7f8fcghostwhite
#030307black
Foreground
#03030cblack
#fcfcfdwhite
Card
#f4f4fbwhitesmoke
#05050bblack
Card foreground
#020208black
#ffffffwhite
Popover
#f7f8fcghostwhite
#030307black
Popover foreground
#03030cblack
#fcfcfdwhite
Primary
#7b80e0mediumslateblue
#7b80e0mediumslateblue
Primary foreground
#000000black
#000000black
Secondary
#e07b80lightcoral
#e07b80lightcoral
Secondary foreground
#210809black
#210809black
Muted
#e9dddegainsboro
#221617black
Muted foreground
#564344darkslategray
#bca9aadarkgray
Accent
#80e07blightgreen
#80e07blightgreen
Accent foreground
#092108black
#092108black
Destructive
#7e0907maroon
#f43734crimson
Destructive foreground
#fbbcbblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7b80e0mediumslateblue
#7b80e0mediumslateblue

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card18.87:1AAA
Primary button5.99:1AA
Secondary button6.61:1AA
Muted text6.95:1AA
Accent10.43:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.35:1AAA
Primary button5.99:1AA
Secondary button6.61:1AA
Muted text7.84:1AAA
Accent10.43:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.006 283.857);
  --foreground: oklch(0.107 0.026 277.346);
  --muted: oklch(0.908 0.012 13.877);
  --muted-foreground: oklch(0.403 0.028 15.009);
  --popover: oklch(0.979 0.006 283.857);
  --popover-foreground: oklch(0.107 0.026 277.346);
  --card: oklch(0.969 0.01 283.797);
  --card-foreground: oklch(0.094 0.023 277.367);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.639 0.143 279.268);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.696 0.125 17.68);
  --secondary-foreground: oklch(0.178 0.044 19.408);
  --accent: oklch(0.824 0.165 142.889);
  --accent-foreground: oklch(0.221 0.055 142.501);
  --destructive: oklch(0.377 0.148 28.778);
  --destructive-foreground: oklch(0.853 0.073 19.815);
  --ring: oklch(0.639 0.143 279.268);
  --chart-1: oklch(0.639 0.143 279.268);
  --chart-2: oklch(0.696 0.125 17.68);
  --chart-3: oklch(0.824 0.165 142.889);
  --chart-4: oklch(0.722 0.112 17.033);
  --chart-5: oklch(0.634 0.149 278.953);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.014 280.647);
  --foreground: oklch(0.991 0.002 283.941);
  --muted: oklch(0.217 0.018 15.352);
  --muted-foreground: oklch(0.751 0.023 14.225);
  --popover: oklch(0.103 0.014 280.647);
  --popover-foreground: oklch(0.991 0.002 283.941);
  --card: oklch(0.118 0.016 280.647);
  --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.639 0.143 279.268);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.696 0.125 17.68);
  --secondary-foreground: oklch(0.178 0.044 19.408);
  --accent: oklch(0.824 0.165 142.889);
  --accent-foreground: oklch(0.221 0.055 142.501);
  --destructive: oklch(0.633 0.225 27.219);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.143 279.268);
  --chart-1: oklch(0.639 0.143 279.268);
  --chart-2: oklch(0.696 0.125 17.68);
  --chart-3: oklch(0.824 0.165 142.889);
  --chart-4: oklch(0.722 0.112 17.033);
  --chart-5: oklch(0.634 0.149 278.953);
}