Cricketer for shadcn/ui

Cricketer is a shadcn/ui theme built around a near-black primary color (#050604) with near-black accents (#060405). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#050604) on a green-tinted background (#081004).

Color palette

TokenLightDark
Background
#ffffffwhite
#081004black
Foreground
#091005black
#ffffffwhite
Card
#fcfcfcsnow
#0a1405black
Card foreground
#060c04black
#ffffffwhite
Popover
#ffffffwhite
#081004black
Popover foreground
#091005black
#ffffffwhite
Primary
#050604black
#050604black
Primary foreground
#97b488darkseagreen
#97b488darkseagreen
Secondary
#040506black
#040506black
Secondary foreground
#8897b4lightslategray
#8897b4lightslategray
Muted
#d3d7dfgainsboro
#20242cdarkslategray
Muted foreground
#454a54darkslategray
#abb0badarkgray
Accent
#060405black
#060405black
Accent foreground
#b48897rosybrown
#b48897rosybrown
Destructive
#662505maroon
#f5702etomato
Destructive foreground
#fbc0a2navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050604black
#050604black

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.34:1AAA
Primary button8.88:1AAA
Secondary button6.93:1AA
Muted text6.15:1AA
Accent6.72:1AA
Destructive7.15:1AAA
Dark mode
Text on background19.29:1AAA
Text on card18.77:1AAA
Primary button8.88:1AAA
Secondary button6.93:1AA
Muted text7.11:1AAA
Accent6.72:1AA
Destructive7.24:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.16 0.027 133.64);
  --muted: oklch(0.878 0.012 263.026);
  --muted-foreground: oklch(0.409 0.018 262.917);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.16 0.027 133.64);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.143 0.023 132.84);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.12 0.009 133.552);
  --primary-foreground: oklch(0.738 0.07 134.797);
  --secondary: oklch(0.112 0.006 260.039);
  --secondary-foreground: oklch(0.676 0.047 262.794);
  --accent: oklch(0.112 0.007 353.44);
  --accent-foreground: oklch(0.674 0.058 355.943);
  --destructive: oklch(0.358 0.102 42.503);
  --destructive-foreground: oklch(0.853 0.079 47.777);
  --ring: oklch(0.12 0.009 133.552);
  --chart-1: oklch(0.12 0.009 133.552);
  --chart-2: oklch(0.112 0.006 260.039);
  --chart-3: oklch(0.112 0.007 353.44);
  --chart-4: oklch(0.153 0.009 262.865);
  --chart-5: oklch(0.12 0.01 133.468);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.03 133.571);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.261 0.016 262.831);
  --muted-foreground: oklch(0.757 0.015 263.007);
  --popover: oklch(0.162 0.03 133.571);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.178 0.034 134.554);
  --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.12 0.009 133.552);
  --primary-foreground: oklch(0.738 0.07 134.797);
  --secondary: oklch(0.112 0.006 260.039);
  --secondary-foreground: oklch(0.676 0.047 262.794);
  --accent: oklch(0.112 0.007 353.44);
  --accent-foreground: oklch(0.674 0.058 355.943);
  --destructive: oklch(0.696 0.18 43.845);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.12 0.009 133.552);
  --chart-1: oklch(0.12 0.009 133.552);
  --chart-2: oklch(0.112 0.006 260.039);
  --chart-3: oklch(0.112 0.007 353.44);
  --chart-4: oklch(0.153 0.009 262.865);
  --chart-5: oklch(0.12 0.01 133.468);
}