Bid for shadcn/ui

Bid is a shadcn/ui theme built around a deep violet primary color (#3c2768) with deep green accents (#27683c). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep violet primary (#3c2768) on a violet-tinted background (#09050f).

Color palette

TokenLightDark
Background
#fcfbfewhite
#09050fblack
Foreground
#020104black
#f7f6f9whitesmoke
Card
#fcfbfewhite
#09050fblack
Card foreground
#020104black
#f7f6f9whitesmoke
Popover
#fcfbfewhite
#09050fblack
Popover foreground
#020104black
#f7f6f9whitesmoke
Primary
#3c2768midnightblue
#3c2768midnightblue
Primary foreground
#dcd2eegainsboro
#dcd2eegainsboro
Secondary
#683c27saddlebrown
#683c27saddlebrown
Secondary foreground
#eedcd2antiquewhite
#eedcd2antiquewhite
Muted
#e7dbd5gainsboro
#2a1e18black
Muted foreground
#594f4adarkolivegreen
#b5aba6darkgray
Accent
#27683cdarkslategray
#27683cdarkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#772609saddlebrown
#f06533tomato
Destructive foreground
#fac9b8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c2768midnightblue
#3c2768midnightblue

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button8.62:1AAA
Secondary button6.94:1AA
Muted text5.85:1AA
Accent6.68:1AA
Destructive6.84:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button8.62:1AAA
Secondary button6.94:1AA
Muted text7.18:1AAA
Accent6.68:1AA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 301.422);
  --foreground: oklch(0.081 0.015 301.958);
  --muted: oklch(0.899 0.016 48.538);
  --muted-foreground: oklch(0.436 0.015 48.35);
  --popover: oklch(0.989 0.004 301.422);
  --popover-foreground: oklch(0.081 0.015 301.958);
  --card: oklch(0.989 0.004 301.422);
  --card-foreground: oklch(0.081 0.015 301.958);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.335 0.11 295.163);
  --primary-foreground: oklch(0.881 0.04 300.77);
  --secondary: oklch(0.406 0.07 46.671);
  --secondary-foreground: oklch(0.906 0.024 48.438);
  --accent: oklch(0.464 0.097 151.608);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.389 0.119 38.011);
  --destructive-foreground: oklch(0.875 0.06 40.938);
  --ring: oklch(0.335 0.11 295.163);
  --chart-1: oklch(0.335 0.11 295.163);
  --chart-2: oklch(0.406 0.07 46.671);
  --chart-3: oklch(0.464 0.097 151.608);
  --chart-4: oklch(0.435 0.077 46.621);
  --chart-5: oklch(0.333 0.116 294.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.023 300.721);
  --foreground: oklch(0.974 0.005 301.413);
  --muted: oklch(0.248 0.023 47.792);
  --muted-foreground: oklch(0.748 0.013 48.539);
  --popover: oklch(0.13 0.023 300.721);
  --popover-foreground: oklch(0.974 0.005 301.413);
  --card: oklch(0.13 0.023 300.721);
  --card-foreground: oklch(0.974 0.005 301.413);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.335 0.11 295.163);
  --primary-foreground: oklch(0.881 0.04 300.77);
  --secondary: oklch(0.406 0.07 46.671);
  --secondary-foreground: oklch(0.906 0.024 48.438);
  --accent: oklch(0.464 0.097 151.608);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.674 0.182 39.275);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.335 0.11 295.163);
  --chart-1: oklch(0.335 0.11 295.163);
  --chart-2: oklch(0.406 0.07 46.671);
  --chart-3: oklch(0.464 0.097 151.608);
  --chart-4: oklch(0.435 0.077 46.621);
  --chart-5: oklch(0.333 0.116 294.578);
}