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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 6.20:1 | AA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 6.20:1 | AA |
| Destructive | 3.65:1 | AA Large |
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);
}