Charset is a shadcn/ui theme built around an orange primary color (#ae4824) with yellow accents (#ae8d24). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the orange primary (#ae4824) on an orange-tinted background (#100805).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f7snow | #100805black |
| Foreground | #110703black | #ffffffwhite |
| Card | #fcf5f3seashell | #140906black |
| Card foreground | #0d0502black | #ffffffwhite |
| Popover | #fcf5f3seashell | #140906black |
| Popover foreground | #0d0502black | #ffffffwhite |
| Primary | #ae4824sienna | #ae4824sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ae2444brown | #ae2444brown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9e2e4gainsboro | #1d1618black |
| Muted foreground | #524246darkslategray | #bdadb1darkgray |
| Accent | #ae8d24darkgoldenrod | #ae8d24darkgoldenrod |
| Accent foreground | #040301black | #040301black |
| Destructive | #ac2c0cfirebrick | #f0542dtomato |
| Destructive foreground | #feefecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ae4824sienna | #ae4824sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 5.59:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 7.39:1 | AAA |
| Accent | 6.52:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 5.59:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 8.27:1 | AAA |
| Accent | 6.52:1 | AA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Charset in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.005 41.262);
--foreground: oklch(0.143 0.023 48.863);
--muted: oklch(0.919 0.007 1.187);
--muted-foreground: oklch(0.397 0.023 2.547);
--popover: oklch(0.975 0.008 41.241);
--popover-foreground: oklch(0.128 0.02 51.038);
--card: oklch(0.975 0.008 41.241);
--card-foreground: oklch(0.128 0.02 51.038);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.531 0.142 39.364);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.495 0.173 13.639);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.657 0.123 90.746);
--accent-foreground: oklch(0.101 0.014 98.036);
--destructive: oklch(0.492 0.169 33.991);
--destructive-foreground: oklch(0.964 0.016 34.298);
--ring: oklch(0.531 0.142 39.364);
--chart-1: oklch(0.531 0.142 39.364);
--chart-2: oklch(0.495 0.173 13.639);
--chart-3: oklch(0.657 0.123 90.746);
--chart-4: oklch(0.521 0.183 13.767);
--chart-5: oklch(0.534 0.147 39.114);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.018 46.495);
--foreground: oklch(1 0 180);
--muted: oklch(0.21 0.011 2.395);
--muted-foreground: oklch(0.762 0.019 1.663);
--popover: oklch(0.156 0.021 44.095);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.021 44.095);
--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.531 0.142 39.364);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.495 0.173 13.639);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.657 0.123 90.746);
--accent-foreground: oklch(0.101 0.014 98.036);
--destructive: oklch(0.654 0.199 34.905);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.531 0.142 39.364);
--chart-1: oklch(0.531 0.142 39.364);
--chart-2: oklch(0.495 0.173 13.639);
--chart-3: oklch(0.657 0.123 90.746);
--chart-4: oklch(0.521 0.183 13.767);
--chart-5: oklch(0.534 0.147 39.114);
}