Blister for shadcn/ui

Blister is a shadcn/ui theme built around a yellow primary color (#8c873b) with green accents (#698c3b). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the yellow primary (#8c873b) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#070703black
Foreground
#040401black
#ffffffwhite
Card
#fdfdfbsnow
#070703black
Card foreground
#040401black
#ffffffwhite
Popover
#fdfdfbsnow
#070703black
Popover foreground
#040401black
#ffffffwhite
Primary
#8c873bolivedrab
#8c873bolivedrab
Primary foreground
#000000black
#000000black
Secondary
#8c5e3bsienna
#8c5e3bsienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0e7e0antiquewhite
#1f160fblack
Muted foreground
#554e49darkslategray
#b6afaadarkgray
Accent
#698c3bolivedrab
#698c3bolivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ae4004saddlebrown
#fa7c38coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8c873bolivedrab
#8c873bolivedrab

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button5.63:1AA
Secondary button5.55:1AA
Muted text6.69:1AA
Accent3.87:1AA Large
Destructive5.94:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button5.63:1AA
Secondary button5.55:1AA
Muted text8.22:1AAA
Accent3.87:1AA Large
Destructive7.99:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.002 103.147);
  --foreground: oklch(0.106 0.017 106.532);
  --muted: oklch(0.933 0.014 60.077);
  --muted-foreground: oklch(0.43 0.013 59.864);
  --popover: oklch(0.995 0.002 103.147);
  --popover-foreground: oklch(0.106 0.017 106.532);
  --card: oklch(0.995 0.002 103.147);
  --card-foreground: oklch(0.106 0.017 106.532);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.611 0.098 105.169);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.524 0.079 57.386);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.596 0.117 129.016);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.518 0.156 41.533);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.611 0.098 105.169);
  --chart-1: oklch(0.611 0.098 105.169);
  --chart-2: oklch(0.524 0.079 57.386);
  --chart-3: oklch(0.596 0.117 129.016);
  --chart-4: oklch(0.552 0.083 57.347);
  --chart-5: oklch(0.62 0.104 105.202);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.013 105.395);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.02 58.758);
  --muted-foreground: oklch(0.759 0.011 60.079);
  --popover: oklch(0.127 0.013 105.395);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.013 105.395);
  --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.611 0.098 105.169);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.524 0.079 57.386);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.596 0.117 129.016);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.721 0.173 45.956);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.611 0.098 105.169);
  --chart-1: oklch(0.611 0.098 105.169);
  --chart-2: oklch(0.524 0.079 57.386);
  --chart-3: oklch(0.596 0.117 129.016);
  --chart-4: oklch(0.552 0.083 57.347);
  --chart-5: oklch(0.62 0.104 105.202);
}