Cyst is a shadcn/ui theme built around a vivid violet primary color (#8c1aef) with vivid green accents (#7eef1a). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#8c1aef) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #000000black |
| Foreground | #030104black | #faf9fbghostwhite |
| Card | #f8f3fcghostwhite | #030303black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #faf7fdghostwhite | #000000black |
| Popover foreground | #030104black | #faf9fbghostwhite |
| Primary | #8c1aefblueviolet | #8c1aefblueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7eef1alawngreen | #7eef1alawngreen |
| Secondary foreground | #1d3904darkgreen | #1d3904darkgreen |
| Muted | #edf1ealinen | #12150eblack |
| Muted foreground | #58654edarkolivegreen | #a5b19adarkgray |
| Accent | #7eef1alawngreen | #7eef1alawngreen |
| Accent foreground | #1d3904darkgreen | #1d3904darkgreen |
| Destructive | #813109saddlebrown | #f17537tomato |
| Destructive foreground | #fbd4c1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c1aefblueviolet | #8c1aefblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 8.69:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 8.69:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 8.69:1 | AAA |
| Muted text | 8.20:1 | AAA |
| Accent | 8.69:1 | AAA |
| Destructive | 7.33:1 | AAA |
Paste this into your globals.css to use Cyst in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 309.7);
--foreground: oklch(0.082 0.016 311.298);
--muted: oklch(0.952 0.01 129.888);
--muted-foreground: oklch(0.489 0.039 130.622);
--popover: oklch(0.98 0.008 309.7);
--popover-foreground: oklch(0.082 0.016 311.298);
--card: oklch(0.97 0.013 309.657);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.537 0.273 300.155);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.851 0.245 135.508);
--secondary-foreground: oklch(0.311 0.085 134.199);
--accent: oklch(0.851 0.245 135.508);
--accent-foreground: oklch(0.311 0.085 134.199);
--destructive: oklch(0.422 0.12 42.191);
--destructive-foreground: oklch(0.898 0.051 48.136);
--ring: oklch(0.537 0.273 300.155);
--chart-1: oklch(0.537 0.273 300.155);
--chart-2: oklch(0.851 0.245 135.508);
--chart-3: oklch(0.851 0.245 135.508);
--chart-4: oklch(0.858 0.238 134.846);
--chart-5: oklch(0.539 0.278 299.643);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 309.752);
--muted: oklch(0.19 0.014 130.578);
--muted-foreground: oklch(0.745 0.035 130.27);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 309.752);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.002 309.769);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.537 0.273 300.155);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.851 0.245 135.508);
--secondary-foreground: oklch(0.311 0.085 134.199);
--accent: oklch(0.851 0.245 135.508);
--accent-foreground: oklch(0.311 0.085 134.199);
--destructive: oklch(0.698 0.17 44.6);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.537 0.273 300.155);
--chart-1: oklch(0.537 0.273 300.155);
--chart-2: oklch(0.851 0.245 135.508);
--chart-3: oklch(0.851 0.245 135.508);
--chart-4: oklch(0.858 0.238 134.846);
--chart-5: oklch(0.539 0.278 299.643);
}