Cricketer for shadcn/ui

Cricketer is a shadcn/ui theme built around a near-black primary color (#1a1a1a) with muted light red accents (#cbbebe). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#1a1a1a) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0505black
Foreground
#0d0303black
#ffffffwhite
Card
#fdf7f7snow
#0e0606black
Card foreground
#080202black
#ffffffwhite
Popover
#fefbfbsnow
#0b0505black
Popover foreground
#0d0303black
#ffffffwhite
Primary
#1a1a1ablack
#1a1a1ablack
Primary foreground
#b3b3b3darkgray
#b3b3b3darkgray
Secondary
#d5d3d3lightgrey
#1e1515black
Secondary foreground
#3c3939darkslategray
#c0a5a5darkgray
Muted
#ded4d4lightgrey
#2b2121black
Muted foreground
#473838darkslategray
#c7b8b8silver
Accent
#cbbebesilver
#3a2222darkslategray
Accent foreground
#302727darkslategray
#d5b8b8silver
Destructive
#bc1010firebrick
#eb1919crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a1a1ablack
#1a1a1ablack

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.43:1AAA
Primary button8.34:1AAA
Secondary button7.65:1AAA
Muted text7.63:1AAA
Accent8.04:1AAA
Destructive6.53:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.02:1AAA
Primary button8.34:1AAA
Secondary button7.81:1AAA
Muted text8.15:1AAA
Accent7.95:1AAA
Destructive4.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.209);
  --foreground: oklch(0.116 0.025 21.743);
  --muted: oklch(0.877 0.011 17.366);
  --muted-foreground: oklch(0.358 0.022 18.221);
  --popover: oklch(0.99 0.003 17.209);
  --popover-foreground: oklch(0.116 0.025 21.743);
  --card: oklch(0.981 0.006 17.261);
  --card-foreground: oklch(0.101 0.022 21.686);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.216 0 180);
  --primary-foreground: oklch(0.765 0 172.405);
  --secondary: oklch(0.868 0.002 17.194);
  --secondary-foreground: oklch(0.349 0.003 17.313);
  --accent: oklch(0.812 0.015 17.458);
  --accent-foreground: oklch(0.282 0.014 18.036);
  --destructive: oklch(0.504 0.199 28.414);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.216 0 180);
  --chart-1: oklch(0.216 0 180);
  --chart-2: oklch(0.868 0.002 17.194);
  --chart-3: oklch(0.812 0.015 17.458);
  --chart-4: oklch(0.891 0.002 17.187);
  --chart-5: oklch(0.214 0.002 17.344);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 19.188);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.261 0.015 18.181);
  --muted-foreground: oklch(0.794 0.017 17.526);
  --popover: oklch(0.123 0.014 19.188);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.016 19.292);
  --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.216 0 180);
  --primary-foreground: oklch(0.765 0 172.405);
  --secondary: oklch(0.207 0.015 18.445);
  --secondary-foreground: oklch(0.745 0.032 17.901);
  --accent: oklch(0.283 0.037 19.627);
  --accent-foreground: oklch(0.809 0.034 17.867);
  --destructive: oklch(0.597 0.235 28.331);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.216 0 180);
  --chart-1: oklch(0.216 0 180);
  --chart-2: oklch(0.207 0.015 18.445);
  --chart-3: oklch(0.283 0.037 19.627);
  --chart-4: oklch(0.238 0.019 18.581);
  --chart-5: oklch(0.214 0.002 17.344);
}