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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 8.88:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 6.15:1 | AA |
| Accent | 6.72:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.29:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 8.88:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 7.11:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 7.24:1 | AAA |
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);
}