Bog for shadcn/ui

Bog is a shadcn/ui theme built around a blue primary color (#607bdc) with yellow accents (#dcc160). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#607bdc) on a blue-tinted background (#07080e).

Color palette

TokenLightDark
Background
#ffffffwhite
#07080eblack
Foreground
#020408black
#ffffffwhite
Card
#ffffffwhite
#07080eblack
Card foreground
#020408black
#ffffffwhite
Popover
#ffffffwhite
#07080eblack
Popover foreground
#020408black
#ffffffwhite
Primary
#607bdccornflowerblue
#607bdccornflowerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dcc160darkkhaki
#dcc160darkkhaki
Secondary foreground
#080702black
#080702black
Muted
#eeeaddbeige
#221e11black
Muted foreground
#6b6961dimgray
#9e9c94darkgray
Accent
#dcc160darkkhaki
#dcc160darkkhaki
Accent foreground
#080702black
#080702black
Destructive
#682803maroon
#f86916chocolate
Destructive foreground
#fcc2a1navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#607bdccornflowerblue
#607bdccornflowerblue

Contrast

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

Light mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button3.91:1AA Large
Secondary button11.39:1AAA
Muted text4.57:1AA
Accent11.39:1AAA
Destructive7.05:1AAA
Dark mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button3.91:1AA Large
Secondary button11.39:1AAA
Muted text6.05:1AA
Accent11.39:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.015 267.385);
  --muted: oklch(0.937 0.017 94.058);
  --muted-foreground: oklch(0.52 0.013 94.111);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.015 267.385);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.104 0.015 267.385);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.609 0.15 269.86);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.815 0.121 94.103);
  --secondary-foreground: oklch(0.128 0.018 98.871);
  --accent: oklch(0.815 0.121 94.103);
  --accent-foreground: oklch(0.128 0.018 98.871);
  --destructive: oklch(0.365 0.102 44.769);
  --destructive-foreground: oklch(0.859 0.08 51.382);
  --ring: oklch(0.609 0.15 269.86);
  --chart-1: oklch(0.609 0.15 269.86);
  --chart-2: oklch(0.815 0.121 94.103);
  --chart-3: oklch(0.815 0.121 94.103);
  --chart-4: oklch(0.829 0.113 94.282);
  --chart-5: oklch(0.606 0.157 269.611);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.013 270.639);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.023 94.494);
  --muted-foreground: oklch(0.692 0.012 94.042);
  --popover: oklch(0.136 0.013 270.639);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.013 270.639);
  --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.609 0.15 269.86);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.815 0.121 94.103);
  --secondary-foreground: oklch(0.128 0.018 98.871);
  --accent: oklch(0.815 0.121 94.103);
  --accent-foreground: oklch(0.128 0.018 98.871);
  --destructive: oklch(0.69 0.193 44.079);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.609 0.15 269.86);
  --chart-1: oklch(0.609 0.15 269.86);
  --chart-2: oklch(0.815 0.121 94.103);
  --chart-3: oklch(0.815 0.121 94.103);
  --chart-4: oklch(0.829 0.113 94.282);
  --chart-5: oklch(0.606 0.157 269.611);
}