Cricket for shadcn/ui

Cricket is a shadcn/ui theme built around a deep blue primary color (#12376e) with deep green accents (#376e12). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the deep blue primary (#12376e) on a blue-tinted background (#06090e).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#06090eblack
Foreground
#03070cblack
#fcfcfdwhite
Card
#f7f9fdghostwhite
#06090eblack
Card foreground
#03070cblack
#fcfcfdwhite
Popover
#f7f9fdghostwhite
#06090eblack
Popover foreground
#03070cblack
#fcfcfdwhite
Primary
#12376emidnightblue
#12376emidnightblue
Primary foreground
#bdd3f4lightblue
#bdd3f4lightblue
Secondary
#6e1237maroon
#6e1237maroon
Secondary foreground
#f4bdd3pink
#f4bdd3pink
Muted
#e3d8ddgainsboro
#271c20black
Muted foreground
#4c3e43darkslategray
#c1b3b9silver
Accent
#376e12forestgreen
#376e12forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#921e01darkred
#fd3908orangered
Destructive foreground
#fed2c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#12376emidnightblue
#12376emidnightblue

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button7.71:1AAA
Secondary button7.26:1AAA
Muted text7.30:1AAA
Accent6.20:1AA
Destructive6.30:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button7.71:1AAA
Secondary button7.26:1AAA
Muted text8.21:1AAA
Accent6.20:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 258.328);
  --foreground: oklch(0.125 0.015 250.707);
  --muted: oklch(0.893 0.014 351.055);
  --muted-foreground: oklch(0.38 0.021 352.131);
  --popover: oklch(0.982 0.006 258.328);
  --popover-foreground: oklch(0.125 0.015 250.707);
  --card: oklch(0.982 0.006 258.328);
  --card-foreground: oklch(0.125 0.015 250.707);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.343 0.105 258.747);
  --primary-foreground: oklch(0.862 0.052 258.37);
  --secondary: oklch(0.358 0.127 2.695);
  --secondary-foreground: oklch(0.855 0.069 352.797);
  --accent: oklch(0.481 0.133 136.219);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.432 0.155 33.692);
  --destructive-foreground: oklch(0.9 0.052 34.355);
  --ring: oklch(0.343 0.105 258.747);
  --chart-1: oklch(0.343 0.105 258.747);
  --chart-2: oklch(0.358 0.127 2.695);
  --chart-3: oklch(0.481 0.133 136.219);
  --chart-4: oklch(0.387 0.139 2.979);
  --chart-5: oklch(0.343 0.108 258.856);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.012 255.197);
  --foreground: oklch(0.992 0.001 258.315);
  --muted: oklch(0.24 0.019 352.799);
  --muted-foreground: oklch(0.781 0.017 351.245);
  --popover: oklch(0.141 0.012 255.197);
  --popover-foreground: oklch(0.992 0.001 258.315);
  --card: oklch(0.141 0.012 255.197);
  --card-foreground: oklch(0.992 0.001 258.315);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.343 0.105 258.747);
  --primary-foreground: oklch(0.862 0.052 258.37);
  --secondary: oklch(0.358 0.127 2.695);
  --secondary-foreground: oklch(0.855 0.069 352.797);
  --accent: oklch(0.481 0.133 136.219);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.646 0.235 33.043);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.343 0.105 258.747);
  --chart-1: oklch(0.343 0.105 258.747);
  --chart-2: oklch(0.358 0.127 2.695);
  --chart-3: oklch(0.481 0.133 136.219);
  --chart-4: oklch(0.387 0.139 2.979);
  --chart-5: oklch(0.343 0.108 258.856);
}