Chalet is a shadcn/ui theme built around a green primary color (#4fcc33) with purple accents (#b033cc). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#4fcc33) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #000000black |
| Foreground | #030901black | #fcfdfcwhite |
| Card | #fbfefbwhite | #000000black |
| Card foreground | #030901black | #fcfdfcwhite |
| Popover | #fbfefbwhite | #000000black |
| Popover foreground | #030901black | #fcfdfcwhite |
| Primary | #4fcc33limegreen | #4fcc33limegreen |
| Primary foreground | #10290ablack | #10290ablack |
| Secondary | #b033ccdarkorchid | #b033ccdarkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f2f3whitesmoke | #0d0c0dblack |
| Muted foreground | #5b4a5edimgray | #b1a1b5darkgray |
| Accent | #b033ccdarkorchid | #b033ccdarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b7470bsienna | #de560dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4fcc33limegreen | #4fcc33limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 5.01:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 5.01:1 | AA |
| Destructive | 5.35:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 5.01:1 | AA |
| Muted text | 8.02:1 | AAA |
| Accent | 5.01:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Chalet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 139.987);
--foreground: oklch(0.127 0.031 137.593);
--muted: oklch(0.961 0.002 319.993);
--muted-foreground: oklch(0.434 0.039 320.066);
--popover: oklch(0.994 0.005 139.987);
--popover-foreground: oklch(0.127 0.031 137.593);
--card: oklch(0.994 0.005 139.987);
--card-foreground: oklch(0.127 0.031 137.593);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.747 0.218 140.475);
--primary-foreground: oklch(0.251 0.061 140.103);
--secondary: oklch(0.573 0.234 319.445);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.234 319.445);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.543 0.158 42.338);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.747 0.218 140.475);
--chart-1: oklch(0.747 0.218 140.475);
--chart-2: oklch(0.573 0.234 319.445);
--chart-3: oklch(0.573 0.234 319.445);
--chart-4: oklch(0.592 0.225 319.659);
--chart-5: oklch(0.756 0.225 140.557);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 139.99);
--muted: oklch(0.157 0.003 320.01);
--muted-foreground: oklch(0.729 0.034 320.033);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 139.99);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 139.99);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.747 0.218 140.475);
--primary-foreground: oklch(0.251 0.061 140.103);
--secondary: oklch(0.573 0.234 319.445);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.234 319.445);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.624 0.184 41.975);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.747 0.218 140.475);
--chart-1: oklch(0.747 0.218 140.475);
--chart-2: oklch(0.573 0.234 319.445);
--chart-3: oklch(0.573 0.234 319.445);
--chart-4: oklch(0.592 0.225 319.659);
--chart-5: oklch(0.756 0.225 140.557);
}