Breastplate for shadcn/ui

Breastplate is a shadcn/ui theme built around a vivid yellow primary color (#fcb322) with vivid blue accents (#226bfc). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid yellow primary (#fcb322) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfbf7snow
#040301black
Foreground
#040301black
#fafaf9snow
Card
#fbf9f3floralwhite
#080603black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfbf7snow
#040301black
Popover foreground
#040301black
#fafaf9snow
Primary
#fcb322goldenrod
#fcb322goldenrod
Primary foreground
#503601saddlebrown
#503601saddlebrown
Secondary
#226bfcdodgerblue
#226bfcdodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1e6eflavender
#10151eblack
Muted foreground
#5a5b5edimgray
#a1a3a5darkgray
Accent
#226bfcdodgerblue
#226bfcdodgerblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a70906darkred
#f6120ered
Destructive foreground
#fee2e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcb322goldenrod
#fcb322goldenrod

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.91:1AAA
Primary button6.20:1AA
Secondary button4.61:1AA
Muted text5.41:1AA
Accent4.61:1AA
Destructive6.38:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.90:1AAA
Primary button6.20:1AA
Secondary button4.61:1AA
Muted text7.23:1AAA
Accent4.61:1AA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 84.564);
  --foreground: oklch(0.099 0.013 91.309);
  --muted: oklch(0.924 0.013 264.503);
  --muted-foreground: oklch(0.472 0.004 264.522);
  --popover: oklch(0.988 0.005 84.564);
  --popover-foreground: oklch(0.099 0.013 91.309);
  --card: oklch(0.982 0.007 84.57);
  --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.815 0.163 77.863);
  --primary-foreground: oklch(0.355 0.073 77.972);
  --secondary: oklch(0.574 0.228 262.127);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.228 262.127);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.461 0.185 29.066);
  --destructive-foreground: oklch(0.935 0.031 18.884);
  --ring: oklch(0.815 0.163 77.863);
  --chart-1: oklch(0.815 0.163 77.863);
  --chart-2: oklch(0.574 0.228 262.127);
  --chart-3: oklch(0.574 0.228 262.127);
  --chart-4: oklch(0.597 0.213 262.143);
  --chart-5: oklch(0.821 0.166 77.411);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 89.869);
  --foreground: oklch(0.985 0.001 84.554);
  --muted: oklch(0.194 0.019 263.967);
  --muted-foreground: oklch(0.714 0.004 264.534);
  --popover: oklch(0.097 0.01 89.869);
  --popover-foreground: oklch(0.985 0.001 84.554);
  --card: oklch(0.122 0.012 89.869);
  --card-foreground: oklch(0.993 0.001 84.552);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.815 0.163 77.863);
  --primary-foreground: oklch(0.355 0.073 77.972);
  --secondary: oklch(0.574 0.228 262.127);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.228 262.127);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.615 0.247 29.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.163 77.863);
  --chart-1: oklch(0.815 0.163 77.863);
  --chart-2: oklch(0.574 0.228 262.127);
  --chart-3: oklch(0.574 0.228 262.127);
  --chart-4: oklch(0.597 0.213 262.143);
  --chart-5: oklch(0.821 0.166 77.411);
}