Bark for shadcn/ui

Bark is a shadcn/ui theme built around a vivid red primary color (#da2307) with vivid indigo accents (#2307da). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#da2307) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040101black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#da2307firebrick
#da2307firebrick
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#07da23limegreen
#07da23limegreen
Secondary foreground
#011403black
#011403black
Muted
#edf7efhoneydew
#081209black
Muted foreground
#3b4f3ddarkslategray
#b0c4b3silver
Accent
#2307damediumblue
#2307damediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#78270dsaddlebrown
#eb693dtomato
Destructive foreground
#f8cdbepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#da2307firebrick
#da2307firebrick

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button4.98:1AA
Secondary button10.00:1AAA
Muted text8.09:1AAA
Accent9.95:1AAA
Destructive6.88:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button4.98:1AA
Secondary button10.00:1AAA
Muted text10.36:1AAA
Accent9.95:1AAA
Destructive6.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.013 34.012);
  --muted: oklch(0.967 0.016 149.479);
  --muted-foreground: oklch(0.405 0.039 148.4);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.569 0.217 31.133);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.77 0.254 143.287);
  --secondary-foreground: oklch(0.167 0.047 147.056);
  --accent: oklch(0.413 0.27 268.912);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.393 0.118 37.424);
  --destructive-foreground: oklch(0.881 0.053 39.262);
  --ring: oklch(0.569 0.217 31.133);
  --chart-1: oklch(0.569 0.217 31.133);
  --chart-2: oklch(0.77 0.254 143.287);
  --chart-3: oklch(0.413 0.27 268.912);
  --chart-4: oklch(0.809 0.267 143.263);
  --chart-5: oklch(0.574 0.222 31.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.024 148.056);
  --muted-foreground: oklch(0.801 0.034 149.152);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.569 0.217 31.133);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.77 0.254 143.287);
  --secondary-foreground: oklch(0.167 0.047 147.056);
  --accent: oklch(0.413 0.27 268.912);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.672 0.172 38.526);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.569 0.217 31.133);
  --chart-1: oklch(0.569 0.217 31.133);
  --chart-2: oklch(0.77 0.254 143.287);
  --chart-3: oklch(0.413 0.27 268.912);
  --chart-4: oklch(0.809 0.267 143.263);
  --chart-5: oklch(0.574 0.222 31.044);
}