Bachelor for shadcn/ui

Bachelor is a shadcn/ui theme built around a light cyan primary color (#d7f2f9) with neutral gray accents (#dee2e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#d7f2f9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010404black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#010404black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#010404black
#ffffffwhite
Primary
#d7f2f9lightcyan
#d7f2f9lightcyan
Primary foreground
#072931darkslategray
#072931darkslategray
Secondary
#dee2e3gainsboro
#28292adarkslategray
Secondary foreground
#424a4cdarkslategray
#c1c3c3silver
Muted
#d0e2e7gainsboro
#182b2fdarkslategray
Muted foreground
#3a474bdarkslategray
#b4c2c5silver
Accent
#dee2e3gainsboro
#28292adarkslategray
Accent foreground
#424a4cdarkslategray
#c1c3c3silver
Destructive
#781a07maroon
#f24826orangered
Destructive foreground
#fbc2b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7f2f9lightcyan
#d7f2f9lightcyan

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button13.12:1AAA
Secondary button6.93:1AA
Muted text7.20:1AAA
Accent6.93:1AA
Destructive6.90:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button13.12:1AAA
Secondary button8.21:1AAA
Muted text8.07:1AAA
Accent8.21:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.011 209.765);
  --muted: oklch(0.901 0.021 214.399);
  --muted-foreground: oklch(0.389 0.019 214.579);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.011 209.765);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.096 0.011 209.765);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.944 0.03 214.45);
  --primary-foreground: oklch(0.26 0.04 217.926);
  --secondary: oklch(0.909 0.004 214.328);
  --secondary-foreground: oklch(0.404 0.011 214.422);
  --accent: oklch(0.909 0.004 214.328);
  --accent-foreground: oklch(0.404 0.011 214.422);
  --destructive: oklch(0.378 0.132 32.862);
  --destructive-foreground: oklch(0.862 0.067 31.405);
  --ring: oklch(0.944 0.03 214.45);
  --chart-1: oklch(0.944 0.03 214.45);
  --chart-2: oklch(0.909 0.004 214.328);
  --chart-3: oklch(0.909 0.004 214.328);
  --chart-4: oklch(0.932 0.003 214.325);
  --chart-5: oklch(0.945 0.031 214.458);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.274 0.025 215.263);
  --muted-foreground: oklch(0.804 0.016 214.384);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.944 0.03 214.45);
  --primary-foreground: oklch(0.26 0.04 217.926);
  --secondary: oklch(0.281 0.002 214.336);
  --secondary-foreground: oklch(0.814 0.002 214.324);
  --accent: oklch(0.281 0.002 214.336);
  --accent-foreground: oklch(0.814 0.002 214.324);
  --destructive: oklch(0.643 0.212 33.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.944 0.03 214.45);
  --chart-1: oklch(0.944 0.03 214.45);
  --chart-2: oklch(0.281 0.002 214.336);
  --chart-3: oklch(0.281 0.002 214.336);
  --chart-4: oklch(0.312 0.002 214.337);
  --chart-5: oklch(0.945 0.031 214.458);
}