Bogus for shadcn/ui

Bogus is a shadcn/ui theme built around a vivid deep violet primary color (#59047b) with vivid deep green accents (#267b04). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the vivid deep violet primary (#59047b) on a violet-tinted background (#0c060f).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0c060fblack
Foreground
#000000black
#fdfcfdwhite
Card
#f9f3fcghostwhite
#0f0713black
Card foreground
#000000black
#ffffffwhite
Popover
#fbf7fdghostwhite
#0c060fblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#59047bindigo
#59047bindigo
Primary foreground
#e8b5fcplum
#e8b5fcplum
Secondary
#267b04forestgreen
#267b04forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3ecdfgainsboro
#172013black
Muted foreground
#5a6855dimgray
#9daa97darkgray
Accent
#267b04forestgreen
#267b04forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ab3c0dsaddlebrown
#f17641coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#59047bindigo
#59047bindigo

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.26:1AAA
Primary button7.17:1AAA
Secondary button5.35:1AA
Muted text4.88:1AA
Accent5.35:1AA
Destructive6.20:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.81:1AAA
Primary button7.17:1AAA
Secondary button5.35:1AA
Muted text6.90:1AA
Accent5.35:1AA
Destructive7.39:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 316.583);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.02 136.672);
  --muted-foreground: oklch(0.499 0.034 136.824);
  --popover: oklch(0.981 0.009 316.583);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.013 316.569);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.356 0.174 312.185);
  --primary-foreground: oklch(0.843 0.111 316.212);
  --secondary: oklch(0.512 0.162 139.79);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.162 139.79);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.509 0.154 39.475);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.356 0.174 312.185);
  --chart-1: oklch(0.356 0.174 312.185);
  --chart-2: oklch(0.512 0.162 139.79);
  --chart-3: oklch(0.512 0.162 139.79);
  --chart-4: oklch(0.555 0.176 139.889);
  --chart-5: oklch(0.358 0.177 311.96);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.025 316.943);
  --foreground: oklch(0.992 0.001 316.607);
  --muted: oklch(0.23 0.027 137.027);
  --muted-foreground: oklch(0.722 0.031 136.74);
  --popover: oklch(0.136 0.025 316.943);
  --popover-foreground: oklch(0.992 0.001 316.607);
  --card: oklch(0.147 0.029 316.317);
  --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.356 0.174 312.185);
  --primary-foreground: oklch(0.843 0.111 316.212);
  --secondary: oklch(0.512 0.162 139.79);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.162 139.79);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.7 0.165 42.44);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.356 0.174 312.185);
  --chart-1: oklch(0.356 0.174 312.185);
  --chart-2: oklch(0.512 0.162 139.79);
  --chart-3: oklch(0.512 0.162 139.79);
  --chart-4: oklch(0.555 0.176 139.889);
  --chart-5: oklch(0.358 0.177 311.96);
}