Bogus for shadcn/ui

Bogus is a shadcn/ui theme built around a deep green primary color (#274f26) with deep green accents (#264f3a). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the deep green primary (#274f26) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#000000black
Foreground
#020e02black
#f8fcf8mintcream
Card
#f8fcf8mintcream
#000000black
Card foreground
#020e02black
#f8fcf8mintcream
Popover
#f8fcf8mintcream
#000000black
Popover foreground
#020e02black
#f8fcf8mintcream
Primary
#274f26darkslategray
#274f26darkslategray
Primary foreground
#c5e3c4lightgrey
#c5e3c4lightgrey
Secondary
#3b4f26darkolivegreen
#3b4f26darkolivegreen
Secondary foreground
#d4e3c4lightgrey
#d4e3c4lightgrey
Muted
#f2f4f0whitesmoke
#0d0f0bblack
Muted foreground
#404739darkslategray
#bfc6b8silver
Accent
#264f3adarkslategray
#264f3adarkslategray
Accent foreground
#c4e3d3lightgrey
#c4e3d3lightgrey
Destructive
#601b06maroon
#f14f1eorangered
Destructive foreground
#f9b49flightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#274f26darkslategray
#274f26darkslategray

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button6.77:1AA
Secondary button6.66:1AA
Muted text8.73:1AAA
Accent6.73:1AA
Destructive7.28:1AAA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button6.77:1AA
Secondary button6.66:1AA
Muted text11.00:1AAA
Accent6.73:1AA
Destructive3.58: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.987 0.007 145.052);
  --foreground: oklch(0.143 0.038 142.769);
  --muted: oklch(0.966 0.006 127.864);
  --muted-foreground: oklch(0.386 0.025 128.564);
  --popover: oklch(0.987 0.007 145.052);
  --popover-foreground: oklch(0.143 0.038 142.769);
  --card: oklch(0.987 0.007 145.052);
  --card-foreground: oklch(0.143 0.038 142.769);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.387 0.081 143.488);
  --primary-foreground: oklch(0.885 0.052 144.68);
  --secondary: oklch(0.401 0.068 130.158);
  --secondary-foreground: oklch(0.896 0.044 128.371);
  --accent: oklch(0.392 0.059 159.395);
  --accent-foreground: oklch(0.889 0.038 163.121);
  --destructive: oklch(0.332 0.104 36.432);
  --destructive-foreground: oklch(0.829 0.086 37.622);
  --ring: oklch(0.387 0.081 143.488);
  --chart-1: oklch(0.387 0.081 143.488);
  --chart-2: oklch(0.401 0.068 130.158);
  --chart-3: oklch(0.392 0.059 159.395);
  --chart-4: oklch(0.435 0.075 130.211);
  --chart-5: oklch(0.391 0.087 143.381);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.006 145.06);
  --muted: oklch(0.164 0.009 128.487);
  --muted-foreground: oklch(0.818 0.021 128.088);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.006 145.06);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.006 145.06);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.387 0.081 143.488);
  --primary-foreground: oklch(0.885 0.052 144.68);
  --secondary: oklch(0.401 0.068 130.158);
  --secondary-foreground: oklch(0.896 0.044 128.371);
  --accent: oklch(0.392 0.059 159.395);
  --accent-foreground: oklch(0.889 0.038 163.121);
  --destructive: oklch(0.647 0.206 36.073);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.387 0.081 143.488);
  --chart-1: oklch(0.387 0.081 143.488);
  --chart-2: oklch(0.401 0.068 130.158);
  --chart-3: oklch(0.392 0.059 159.395);
  --chart-4: oklch(0.435 0.075 130.211);
  --chart-5: oklch(0.391 0.087 143.381);
}