Bullet for shadcn/ui

Bullet is a shadcn/ui theme built around a deep yellow primary color (#0d0d07) with deep green accents (#0b0d07). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#0d0d07) on a yellow-tinted background (#0d0d07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0d07black
Foreground
#040401black
#ffffffwhite
Card
#ffffffwhite
#0d0d07black
Card foreground
#040401black
#ffffffwhite
Popover
#ffffffwhite
#0d0d07black
Popover foreground
#040401black
#ffffffwhite
Primary
#0d0d07black
#0d0d07black
Primary foreground
#c0bb87tan
#c0bb87tan
Secondary
#0d0a07black
#0d0a07black
Secondary foreground
#c09e87rosybrown
#c09e87rosybrown
Muted
#f5f2efwhitesmoke
#100c0ablack
Muted foreground
#6d5f54dimgray
#ab9c92rosybrown
Accent
#0b0d07black
#0b0d07black
Accent foreground
#a8c087darkseagreen
#a8c087darkseagreen
Destructive
#812d0esaddlebrown
#e75a27chocolate
Destructive foreground
#f9d5c8bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d0d07black
#0d0d07black

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button9.92:1AAA
Secondary button7.98:1AAA
Muted text5.50:1AA
Accent9.80:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button9.92:1AAA
Secondary button7.98:1AAA
Muted text7.31:1AAA
Accent9.80:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.015 105.449);
  --muted: oklch(0.962 0.005 58.291);
  --muted-foreground: oklch(0.496 0.025 57.65);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.015 105.449);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.104 0.015 105.449);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.157 0.012 103.589);
  --primary-foreground: oklch(0.783 0.07 103.499);
  --secondary: oklch(0.147 0.009 60.577);
  --secondary-foreground: oklch(0.725 0.052 57.334);
  --accent: oklch(0.155 0.014 125.616);
  --accent-foreground: oklch(0.774 0.082 126.596);
  --destructive: oklch(0.416 0.123 38.454);
  --destructive-foreground: oklch(0.9 0.044 41.01);
  --ring: oklch(0.157 0.012 103.589);
  --chart-1: oklch(0.157 0.012 103.589);
  --chart-2: oklch(0.147 0.009 60.577);
  --chart-3: oklch(0.155 0.014 125.616);
  --chart-4: oklch(0.184 0.014 57.242);
  --chart-5: oklch(0.158 0.013 103.706);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.012 103.549);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.159 0.008 57.661);
  --muted-foreground: oklch(0.702 0.023 57.907);
  --popover: oklch(0.156 0.012 103.549);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.012 103.549);
  --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.157 0.012 103.589);
  --primary-foreground: oklch(0.783 0.07 103.499);
  --secondary: oklch(0.147 0.009 60.577);
  --secondary-foreground: oklch(0.725 0.052 57.334);
  --accent: oklch(0.155 0.014 125.616);
  --accent-foreground: oklch(0.774 0.082 126.596);
  --destructive: oklch(0.646 0.185 38.753);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.157 0.012 103.589);
  --chart-1: oklch(0.157 0.012 103.589);
  --chart-2: oklch(0.147 0.009 60.577);
  --chart-3: oklch(0.155 0.014 125.616);
  --chart-4: oklch(0.184 0.014 57.242);
  --chart-5: oklch(0.158 0.013 103.706);
}