Chasm is a shadcn/ui theme built around a vivid green primary color (#189405) with vivid red accents (#940518). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#189405) on a green-tinted background (#060f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #060f05black |
| Foreground | #000000black | #f9fbf9mintcream |
| Card | #fbfefbwhite | #060f05black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #fbfefbwhite | #060f05black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #189405green | #189405green |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #051894darkblue | #051894darkblue |
| Secondary foreground | #ced4fdlavender | #ced4fdlavender |
| Muted | #ced1e4lightgrey | #1b1e31darkslategray |
| Muted foreground | #5c5e6adimgray | #9596a3darkgray |
| Accent | #940518darkred | #940518darkred |
| Accent foreground | #fdced4pink | #fdced4pink |
| Destructive | #95230fbrown | #e93e20orangered |
| Destructive foreground | #fbdfdamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #189405green | #189405green |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 3.99:1 | AA Large |
| Secondary button | 9.23:1 | AAA |
| Muted text | 4.23:1 | AA Large |
| Accent | 6.53:1 | AA |
| Destructive | 6.63:1 | AA |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 3.99:1 | AA Large |
| Secondary button | 9.23:1 | AAA |
| Muted text | 5.60:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Chasm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 141.576);
--foreground: oklch(0 0 0);
--muted: oklch(0.863 0.027 278.857);
--muted-foreground: oklch(0.486 0.019 278.709);
--popover: oklch(0.994 0.006 141.576);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.006 141.576);
--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.579 0.192 141.756);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.323 0.193 265.148);
--secondary-foreground: oklch(0.879 0.057 278.275);
--accent: oklch(0.422 0.168 24.394);
--accent-foreground: oklch(0.893 0.054 9.22);
--destructive: oklch(0.441 0.153 32.26);
--destructive-foreground: oklch(0.925 0.032 29.628);
--ring: oklch(0.579 0.192 141.756);
--chart-1: oklch(0.579 0.192 141.756);
--chart-2: oklch(0.323 0.193 265.148);
--chart-3: oklch(0.422 0.168 24.394);
--chart-4: oklch(0.345 0.208 265.065);
--chart-5: oklch(0.585 0.195 141.792);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.027 140.277);
--foreground: oklch(0.986 0.003 141.585);
--muted: oklch(0.242 0.037 276.58);
--muted-foreground: oklch(0.677 0.018 278.933);
--popover: oklch(0.157 0.027 140.277);
--popover-foreground: oklch(0.986 0.003 141.585);
--card: oklch(0.157 0.027 140.277);
--card-foreground: oklch(0.986 0.003 141.585);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.579 0.192 141.756);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.323 0.193 265.148);
--secondary-foreground: oklch(0.879 0.057 278.275);
--accent: oklch(0.422 0.168 24.394);
--accent-foreground: oklch(0.893 0.054 9.22);
--destructive: oklch(0.618 0.211 32.302);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.579 0.192 141.756);
--chart-1: oklch(0.579 0.192 141.756);
--chart-2: oklch(0.323 0.193 265.148);
--chart-3: oklch(0.422 0.168 24.394);
--chart-4: oklch(0.345 0.208 265.065);
--chart-5: oklch(0.585 0.195 141.792);
}