Buckle for shadcn/ui

Buckle is a shadcn/ui theme built around a muted blue primary color (#5f6a95) with muted yellow accents (#958b5f). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted blue primary (#5f6a95) on a blue-tinted background (#06080e).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#06080eblack
Foreground
#03050dblack
#f8f9fcghostwhite
Card
#fcfcfdwhite
#06080eblack
Card foreground
#03050dblack
#f8f9fcghostwhite
Popover
#fcfcfdwhite
#06080eblack
Popover foreground
#03050dblack
#f8f9fcghostwhite
Primary
#5f6a95slategray
#5f6a95slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#958b5fgray
#958b5fgray
Secondary foreground
#000000black
#000000black
Muted
#e3e2degainsboro
#21201cblack
Muted foreground
#69675ddimgray
#a29f96darkgray
Accent
#958b5fgray
#958b5fgray
Accent foreground
#000000black
#000000black
Destructive
#e33b02orangered
#fd6735tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f6a95slategray
#5f6a95slategray

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button5.25:1AA
Secondary button6.11:1AA
Muted text4.37:1AA Large
Accent6.11:1AA
Destructive4.29:1AA Large
Dark mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button5.25:1AA
Secondary button6.11:1AA
Muted text6.15:1AA
Accent6.11:1AA
Destructive7.16:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 275.01);
  --foreground: oklch(0.114 0.023 266.249);
  --muted: oklch(0.912 0.005 95.103);
  --muted-foreground: oklch(0.513 0.015 95.354);
  --popover: oklch(0.991 0.002 275.01);
  --popover-foreground: oklch(0.114 0.023 266.249);
  --card: oklch(0.991 0.002 275.01);
  --card-foreground: oklch(0.114 0.023 266.249);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.534 0.069 273.072);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.634 0.061 95.782);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.061 95.782);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.603 0.211 34.858);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.534 0.069 273.072);
  --chart-1: oklch(0.534 0.069 273.072);
  --chart-2: oklch(0.634 0.061 95.782);
  --chart-3: oklch(0.634 0.061 95.782);
  --chart-4: oklch(0.66 0.062 95.777);
  --chart-5: oklch(0.528 0.079 272.719);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.015 271.224);
  --foreground: oklch(0.981 0.004 274.979);
  --muted: oklch(0.243 0.007 95.366);
  --muted-foreground: oklch(0.702 0.014 95.258);
  --popover: oklch(0.134 0.015 271.224);
  --popover-foreground: oklch(0.981 0.004 274.979);
  --card: oklch(0.134 0.015 271.224);
  --card-foreground: oklch(0.981 0.004 274.979);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.534 0.069 273.072);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.634 0.061 95.782);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.061 95.782);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.696 0.194 38.081);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.534 0.069 273.072);
  --chart-1: oklch(0.534 0.069 273.072);
  --chart-2: oklch(0.634 0.061 95.782);
  --chart-3: oklch(0.634 0.061 95.782);
  --chart-4: oklch(0.66 0.062 95.777);
  --chart-5: oklch(0.528 0.079 272.719);
}