Charlock Elk is a shadcn/ui theme built around a yellow primary color (#e2e67c) with vivid red accents (#a81015). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid teal primary (#10a8a3) on a neutral background (#020404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020404black |
| Foreground | #000000black | #f8fcfcmintcream |
| Card | #fbfdf7snow | #030707black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fafdf7mintcream | #030707black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #e2e67ckhaki | #10a8a3lightseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6ca171gray | #a81015firebrick |
| Secondary foreground | #fdecedlinen | #fdecedlinen |
| Muted | #f0eaealinen | #150f0fblack |
| Muted foreground | #675b5bdimgray | #a49899darkgray |
| Accent | #a81015firebrick | #a81015firebrick |
| Accent foreground | #fdecedlinen | #fdecedlinen |
| Destructive | #c54816chocolate | #e8612cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #edeeeewhitesmoke | #1e201fblack |
| Input | #edeeeewhitesmoke | #1e201fblack |
| Ring | #10a8a3lightseagreen | #10a8a3lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 1.32:1 | Fail |
| Secondary button | 2.64:1 | Fail |
| Muted text | 5.49:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 4.86:1 | AA |
| Text on background | 19.94:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 2.93:1 | Fail |
| Secondary button | 6.69:1 | AA |
| Muted text | 6.80:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 6.16:1 | AA |
Paste this into your globals.css to use Charlock Elk in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.006 14.913);
--muted-foreground: oklch(0.483 0.015 15.386);
--popover: oklch(0.99 0.01 129.451);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.009 120.127);
--card-foreground: oklch(0 0 0);
--border: oklch(0.947 0.001 194.767);
--input: oklch(0.947 0.001 194.767);
--primary: oklch(0.899 0.129 110.249);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.658 0.09 147.047);
--secondary-foreground: oklch(0.958 0.018 15.153);
--accent: oklch(0.466 0.182 27.246);
--accent-foreground: oklch(0.958 0.018 15.153);
--destructive: oklch(0.567 0.17 38.978);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.662 0.112 190.935);
--chart-1: oklch(0.662 0.112 190.935);
--chart-2: oklch(0.466 0.182 27.246);
--chart-3: oklch(0.466 0.182 27.246);
--chart-4: oklch(0.494 0.194 27.341);
--chart-5: oklch(0.669 0.114 190.862);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.008 193.769);
--foreground: oklch(0.987 0.004 194.718);
--muted: oklch(0.176 0.01 15.855);
--muted-foreground: oklch(0.691 0.014 15.165);
--popover: oklch(0.123 0.01 193.769);
--popover-foreground: oklch(0.994 0.002 194.754);
--card: oklch(0.123 0.01 193.769);
--card-foreground: oklch(0.994 0.002 194.754);
--border: oklch(0.24 0.003 194.576);
--input: oklch(0.24 0.003 194.576);
--primary: oklch(0.662 0.112 190.935);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.466 0.182 27.246);
--secondary-foreground: oklch(0.958 0.018 15.153);
--accent: oklch(0.466 0.182 27.246);
--accent-foreground: oklch(0.958 0.018 15.153);
--destructive: oklch(0.655 0.179 40.167);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.662 0.112 190.935);
--chart-1: oklch(0.662 0.112 190.935);
--chart-2: oklch(0.466 0.182 27.246);
--chart-3: oklch(0.466 0.182 27.246);
--chart-4: oklch(0.494 0.194 27.341);
--chart-5: oklch(0.669 0.114 190.862);
}