Charlatan is a shadcn/ui theme built around a green primary color (#73b589) with teal accents (#73b5aa). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#73b589) on a green-tinted background (#041008).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #041008black |
| Foreground | #05140ablack | #ffffffwhite |
| Card | #ffffffwhite | #041008black |
| Card foreground | #05140ablack | #ffffffwhite |
| Popover | #ffffffwhite | #041008black |
| Popover foreground | #05140ablack | #ffffffwhite |
| Primary | #73b589darkseagreen | #73b589darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #7eb573darkseagreen | #7eb573darkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6f1e4beige | #101b0eblack |
| Muted foreground | #3f413edarkslategray | #bec1besilver |
| Accent | #73b5aamediumaquamarine | #73b5aamediumaquamarine |
| Accent foreground | #000000black | #000000black |
| Destructive | #ad2d10firebrick | #ea401aorangered |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #73b589darkseagreen | #73b589darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 8.88:1 | AAA |
| Accent | 8.92:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 9.74:1 | AAA |
| Accent | 8.92:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Charlatan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.174 0.03 154.228);
--muted: oklch(0.947 0.021 140.496);
--muted-foreground: oklch(0.372 0.005 140.51);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.174 0.03 154.228);
--card: oklch(1 0 180);
--card-foreground: oklch(0.174 0.03 154.228);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.717 0.094 154.192);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.718 0.11 140.343);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.726 0.07 182.607);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.495 0.169 33.522);
--destructive-foreground: oklch(0.973 0.012 32.664);
--ring: oklch(0.717 0.094 154.192);
--chart-1: oklch(0.717 0.094 154.192);
--chart-2: oklch(0.718 0.11 140.343);
--chart-3: oklch(0.726 0.07 182.607);
--chart-4: oklch(0.738 0.102 140.351);
--chart-5: oklch(0.722 0.102 153.898);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.025 155.604);
--foreground: oklch(1 0 180);
--muted: oklch(0.207 0.031 140.346);
--muted-foreground: oklch(0.807 0.004 140.523);
--popover: oklch(0.158 0.025 155.604);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.025 155.604);
--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.717 0.094 154.192);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.718 0.11 140.343);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.726 0.07 182.607);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.621 0.211 33.54);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.717 0.094 154.192);
--chart-1: oklch(0.717 0.094 154.192);
--chart-2: oklch(0.718 0.11 140.343);
--chart-3: oklch(0.726 0.07 182.607);
--chart-4: oklch(0.738 0.102 140.351);
--chart-5: oklch(0.722 0.102 153.898);
}