Bogus for shadcn/ui

Bogus is a shadcn/ui theme built around a light violet primary color (#e2d9f2) with light purple accents (#efd9f2). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the light violet primary (#e2d9f2) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#050307black
Foreground
#0b0415black
#f7f5fawhitesmoke
Card
#f9f7fdghostwhite
#050307black
Card foreground
#0b0415black
#f7f5fawhitesmoke
Popover
#f9f7fdghostwhite
#050307black
Popover foreground
#0b0415black
#f7f5fawhitesmoke
Primary
#e2d9f2lavender
#e2d9f2lavender
Primary foreground
#422673darkslateblue
#422673darkslateblue
Secondary
#d9dcf2lavender
#d9dcf2lavender
Secondary foreground
#263073midnightblue
#263073midnightblue
Muted
#ebecf4lavender
#0b0c14black
Muted foreground
#55586ddimgray
#9296aadarkgray
Accent
#efd9f2lavender
#efd9f2lavender
Accent foreground
#692673rebeccapurple
#692673rebeccapurple
Destructive
#8a0a0adarkred
#ef1f1fcrimson
Destructive foreground
#fbcbcbpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2d9f2lavender
#e2d9f2lavender

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button8.77:1AAA
Secondary button8.83:1AAA
Muted text5.96:1AA
Accent7.45:1AAA
Destructive6.80:1AA
Dark mode
Text on background18.98:1AAA
Text on card18.98:1AAA
Primary button8.77:1AAA
Secondary button8.83:1AAA
Muted text6.65:1AA
Accent7.45:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 302.802);
  --foreground: oklch(0.134 0.039 300.314);
  --muted: oklch(0.946 0.01 279.174);
  --muted-foreground: oklch(0.467 0.033 278.18);
  --popover: oklch(0.979 0.008 302.802);
  --popover-foreground: oklch(0.134 0.039 300.314);
  --card: oklch(0.979 0.008 302.802);
  --card-foreground: oklch(0.134 0.039 300.314);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.036 302.321);
  --primary-foreground: oklch(0.35 0.125 296.158);
  --secondary: oklch(0.899 0.03 278.81);
  --secondary-foreground: oklch(0.343 0.114 272.362);
  --accent: oklch(0.91 0.042 321.718);
  --accent-foreground: oklch(0.4 0.138 322.109);
  --destructive: oklch(0.403 0.159 28.355);
  --destructive-foreground: oklch(0.883 0.056 18.257);
  --ring: oklch(0.9 0.036 302.321);
  --chart-1: oklch(0.9 0.036 302.321);
  --chart-2: oklch(0.899 0.03 278.81);
  --chart-3: oklch(0.91 0.042 321.718);
  --chart-4: oklch(0.93 0.021 278.991);
  --chart-5: oklch(0.898 0.038 302.283);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.017 303.531);
  --foreground: oklch(0.972 0.008 302.81);
  --muted: oklch(0.157 0.016 277.538);
  --muted-foreground: oklch(0.676 0.03 278.638);
  --popover: oklch(0.104 0.017 303.531);
  --popover-foreground: oklch(0.972 0.008 302.81);
  --card: oklch(0.104 0.017 303.531);
  --card-foreground: oklch(0.972 0.008 302.81);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0.036 302.321);
  --primary-foreground: oklch(0.35 0.125 296.158);
  --secondary: oklch(0.899 0.03 278.81);
  --secondary-foreground: oklch(0.343 0.114 272.362);
  --accent: oklch(0.91 0.042 321.718);
  --accent-foreground: oklch(0.4 0.138 322.109);
  --destructive: oklch(0.608 0.236 28.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.036 302.321);
  --chart-1: oklch(0.9 0.036 302.321);
  --chart-2: oklch(0.899 0.03 278.81);
  --chart-3: oklch(0.91 0.042 321.718);
  --chart-4: oklch(0.93 0.021 278.991);
  --chart-5: oklch(0.898 0.038 302.283);
}