Cymbal is a shadcn/ui theme built around a vivid deep green primary color (#022207) with vivid deep purple accents (#22021d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#022207) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020903black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020903black | #fcfdfcwhite |
| Primary | #022207black | #022207black |
| Primary foreground | #0ce430limegreen | #0ce430limegreen |
| Secondary | #22021dblack | #22021dblack |
| Secondary foreground | #f75fddorchid | #f75fddorchid |
| Muted | #f2e8f0whitesmoke | #170d15black |
| Muted foreground | #564d55dimgray | #b2a9b1darkgray |
| Accent | #22021dblack | #22021dblack |
| Accent foreground | #f75fddorchid | #f75fddorchid |
| Destructive | #b40808firebrick | #ef0b0bred |
| Destructive foreground | #fef0f0lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #022207black | #022207black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 9.85:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 6.80:1 | AA |
| Accent | 6.98:1 | AA |
| Destructive | 6.34:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.85:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 8.33:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Cymbal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.025 149.597);
--muted: oklch(0.942 0.015 331.041);
--muted-foreground: oklch(0.432 0.018 331.384);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.025 149.597);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.02 149.597);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.22 0.062 146.685);
--primary-foreground: oklch(0.797 0.258 143.764);
--secondary: oklch(0.176 0.071 335.334);
--secondary-foreground: oklch(0.722 0.23 334.828);
--accent: oklch(0.176 0.071 335.334);
--accent-foreground: oklch(0.722 0.23 334.828);
--destructive: oklch(0.487 0.196 28.785);
--destructive-foreground: oklch(0.967 0.015 17.417);
--ring: oklch(0.22 0.062 146.685);
--chart-1: oklch(0.22 0.062 146.685);
--chart-2: oklch(0.176 0.071 335.334);
--chart-3: oklch(0.176 0.071 335.334);
--chart-4: oklch(0.216 0.089 336.014);
--chart-5: oklch(0.222 0.064 146.616);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 150.795);
--muted: oklch(0.176 0.023 332.503);
--muted-foreground: oklch(0.744 0.016 331.109);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 150.795);
--card: oklch(0.092 0 180);
--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.22 0.062 146.685);
--primary-foreground: oklch(0.797 0.258 143.764);
--secondary: oklch(0.176 0.071 335.334);
--secondary-foreground: oklch(0.722 0.23 334.828);
--accent: oklch(0.176 0.071 335.334);
--accent-foreground: oklch(0.722 0.23 334.828);
--destructive: oklch(0.6 0.243 28.914);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.22 0.062 146.685);
--chart-1: oklch(0.22 0.062 146.685);
--chart-2: oklch(0.176 0.071 335.334);
--chart-3: oklch(0.176 0.071 335.334);
--chart-4: oklch(0.216 0.089 336.014);
--chart-5: oklch(0.222 0.064 146.616);
}