Charming is a shadcn/ui theme built around an orange primary color (#966031) with violet accents (#603196). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#966031) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #000000black |
| Foreground | #130c06black | #ffffffwhite |
| Card | #fcfaf8snow | #000000black |
| Card foreground | #130c06black | #ffffffwhite |
| Popover | #fcfaf8snow | #000000black |
| Popover foreground | #130c06black | #ffffffwhite |
| Primary | #966031sienna | #966031sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #319660seagreen | #319660seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eceeedwhitesmoke | #111312black |
| Muted foreground | #656766dimgray | #989a99darkgray |
| Accent | #603196rebeccapurple | #603196rebeccapurple |
| Accent foreground | #fcfbfewhite | #fcfbfewhite |
| Destructive | #601006maroon | #f34b35tomato |
| Destructive foreground | #f9a99flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #966031sienna | #966031sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 5.22:1 | AA |
| Secondary button | 3.70:1 | AA Large |
| Muted text | 4.90:1 | AA |
| Accent | 8.57:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.22:1 | AA |
| Secondary button | 3.70:1 | AA Large |
| Muted text | 6.59:1 | AA |
| Accent | 8.57:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Charming in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 64.046);
--foreground: oklch(0.163 0.018 64.616);
--muted: oklch(0.948 0.003 163.359);
--muted-foreground: oklch(0.512 0.003 163.294);
--popover: oklch(0.986 0.003 64.046);
--popover-foreground: oklch(0.163 0.018 64.616);
--card: oklch(0.986 0.003 64.046);
--card-foreground: oklch(0.163 0.018 64.616);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.539 0.094 59.822);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.601 0.125 155.902);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.428 0.159 301.36);
--accent-foreground: oklch(0.99 0.004 307.067);
--destructive: oklch(0.321 0.115 31.283);
--destructive-foreground: oklch(0.81 0.097 27.679);
--ring: oklch(0.539 0.094 59.822);
--chart-1: oklch(0.539 0.094 59.822);
--chart-2: oklch(0.601 0.125 155.902);
--chart-3: oklch(0.428 0.159 301.36);
--chart-4: oklch(0.635 0.132 155.839);
--chart-5: oklch(0.542 0.099 59.383);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.184 0.005 162.773);
--muted-foreground: oklch(0.684 0.003 163.34);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.539 0.094 59.822);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.601 0.125 155.902);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.428 0.159 301.36);
--accent-foreground: oklch(0.99 0.004 307.067);
--destructive: oklch(0.649 0.208 30.809);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.539 0.094 59.822);
--chart-1: oklch(0.539 0.094 59.822);
--chart-2: oklch(0.601 0.125 155.902);
--chart-3: oklch(0.428 0.159 301.36);
--chart-4: oklch(0.635 0.132 155.839);
--chart-5: oklch(0.542 0.099 59.383);
}