Bribery for shadcn/ui

Bribery is a shadcn/ui theme built around a light violet primary color (#dbcbf1) with neutral gray accents (#d6d3d9). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#dbcbf1) on a violet-tinted background (#090510).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#090510black
Foreground
#0b0317black
#fcfbfdsnow
Card
#f7f5fawhitesmoke
#0c0614black
Card foreground
#090212black
#ffffffwhite
Popover
#faf8fcghostwhite
#090510black
Popover foreground
#0b0317black
#fcfbfdsnow
Primary
#dbcbf1gainsboro
#dbcbf1gainsboro
Primary foreground
#3e1e6cmidnightblue
#3e1e6cmidnightblue
Secondary
#d6d3d9lightgrey
#25202cdarkslategray
Secondary foreground
#3c3941darkslategray
#beb5c9silver
Muted
#ddd6e5gainsboro
#201a29black
Muted foreground
#47454adarkslategray
#b7b5basilver
Accent
#d6d3d9lightgrey
#25202cdarkslategray
Accent foreground
#3c3941darkslategray
#beb5c9silver
Destructive
#832801saddlebrown
#f74c02orangered
Destructive foreground
#fecdb8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbcbf1gainsboro
#dbcbf1gainsboro

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card18.82:1AAA
Primary button8.59:1AAA
Secondary button7.66:1AAA
Muted text6.69:1AA
Accent7.66:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.98:1AAA
Primary button8.59:1AAA
Secondary button8.03:1AAA
Muted text8.35:1AAA
Accent8.03:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 304.979);
  --foreground: oklch(0.131 0.047 302.531);
  --muted: oklch(0.886 0.022 304.706);
  --muted-foreground: oklch(0.395 0.007 304.783);
  --popover: oklch(0.982 0.005 304.979);
  --popover-foreground: oklch(0.131 0.047 302.531);
  --card: oklch(0.973 0.007 304.945);
  --card-foreground: oklch(0.12 0.042 304.492);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.867 0.054 304.181);
  --primary-foreground: oklch(0.326 0.129 297.926);
  --secondary: oklch(0.871 0.008 304.915);
  --secondary-foreground: oklch(0.351 0.015 304.439);
  --accent: oklch(0.871 0.008 304.915);
  --accent-foreground: oklch(0.351 0.015 304.439);
  --destructive: oklch(0.414 0.132 38.879);
  --destructive-foreground: oklch(0.887 0.063 44.404);
  --ring: oklch(0.867 0.054 304.181);
  --chart-1: oklch(0.867 0.054 304.181);
  --chart-2: oklch(0.871 0.008 304.915);
  --chart-3: oklch(0.871 0.008 304.915);
  --chart-4: oklch(0.896 0.007 304.943);
  --chart-5: oklch(0.865 0.057 304.133);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.027 304.576);
  --foreground: oklch(0.991 0.003 305.005);
  --muted: oklch(0.231 0.03 303.2);
  --muted-foreground: oklch(0.777 0.006 304.933);
  --popover: oklch(0.129 0.027 304.576);
  --popover-foreground: oklch(0.991 0.003 305.005);
  --card: oklch(0.14 0.031 302.964);
  --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.867 0.054 304.181);
  --primary-foreground: oklch(0.326 0.129 297.926);
  --secondary: oklch(0.255 0.024 303.751);
  --secondary-foreground: oklch(0.787 0.03 304.519);
  --accent: oklch(0.255 0.024 303.751);
  --accent-foreground: oklch(0.787 0.03 304.519);
  --destructive: oklch(0.654 0.217 37.183);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.867 0.054 304.181);
  --chart-1: oklch(0.867 0.054 304.181);
  --chart-2: oklch(0.255 0.024 303.751);
  --chart-3: oklch(0.255 0.024 303.751);
  --chart-4: oklch(0.284 0.028 303.685);
  --chart-5: oklch(0.865 0.057 304.133);
}