Checkbook for shadcn/ui

Checkbook is a shadcn/ui theme built around a muted light indigo primary color (#c4c4d9) with muted light violet accents (#cec4d9). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted light indigo primary (#c4c4d9) on an indigo-tinted background (#06070e).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#06070eblack
Foreground
#050515black
#fbfbfdghostwhite
Card
#f8f8fcghostwhite
#06070eblack
Card foreground
#050515black
#fbfbfdghostwhite
Popover
#f8f8fcghostwhite
#06070eblack
Popover foreground
#050515black
#fbfbfdghostwhite
Primary
#c4c4d9lightsteelblue
#c4c4d9lightsteelblue
Primary foreground
#2a2a41darkslategray
#2a2a41darkslategray
Secondary
#c4cfd9lightgrey
#c4cfd9lightgrey
Secondary foreground
#2a3641darkslategray
#2a3641darkslategray
Muted
#d6d9dbgainsboro
#242629darkslategray
Muted foreground
#3d4851darkslategray
#aeb8c2silver
Accent
#cec4d9thistle
#cec4d9thistle
Accent foreground
#352a41darkslategray
#352a41darkslategray
Destructive
#973b11saddlebrown
#e65a1achocolate
Destructive foreground
#fbe8dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c4c4d9lightsteelblue
#c4c4d9lightsteelblue

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button8.14:1AAA
Secondary button7.79:1AAA
Muted text6.59:1AA
Accent8.03:1AAA
Destructive5.96:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button8.14:1AAA
Secondary button7.79:1AAA
Muted text7.52:1AAA
Accent8.03:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 285.51);
  --foreground: oklch(0.127 0.036 278.922);
  --muted: oklch(0.883 0.005 246.027);
  --muted-foreground: oklch(0.395 0.021 246.577);
  --popover: oklch(0.98 0.006 285.51);
  --popover-foreground: oklch(0.127 0.036 278.922);
  --card: oklch(0.98 0.006 285.51);
  --card-foreground: oklch(0.127 0.036 278.922);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.827 0.029 284.97);
  --primary-foreground: oklch(0.296 0.042 282.789);
  --secondary: oklch(0.849 0.019 246.219);
  --secondary-foreground: oklch(0.327 0.026 246.894);
  --accent: oklch(0.835 0.031 307.352);
  --accent-foreground: oklch(0.307 0.044 306.088);
  --destructive: oklch(0.475 0.134 41.612);
  --destructive-foreground: oklch(0.944 0.025 46.578);
  --ring: oklch(0.827 0.029 284.97);
  --chart-1: oklch(0.827 0.029 284.97);
  --chart-2: oklch(0.849 0.019 246.219);
  --chart-3: oklch(0.835 0.031 307.352);
  --chart-4: oklch(0.873 0.016 246.172);
  --chart-5: oklch(0.824 0.033 284.874);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.017 282.783);
  --foreground: oklch(0.99 0.003 285.57);
  --muted: oklch(0.268 0.006 246.234);
  --muted-foreground: oklch(0.777 0.018 246.23);
  --popover: oklch(0.13 0.017 282.783);
  --popover-foreground: oklch(0.99 0.003 285.57);
  --card: oklch(0.13 0.017 282.783);
  --card-foreground: oklch(0.99 0.003 285.57);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.827 0.029 284.97);
  --primary-foreground: oklch(0.296 0.042 282.789);
  --secondary: oklch(0.849 0.019 246.219);
  --secondary-foreground: oklch(0.327 0.026 246.894);
  --accent: oklch(0.835 0.031 307.352);
  --accent-foreground: oklch(0.307 0.044 306.088);
  --destructive: oklch(0.642 0.187 41.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.827 0.029 284.97);
  --chart-1: oklch(0.827 0.029 284.97);
  --chart-2: oklch(0.849 0.019 246.219);
  --chart-3: oklch(0.835 0.031 307.352);
  --chart-4: oklch(0.873 0.016 246.172);
  --chart-5: oklch(0.824 0.033 284.874);
}