Lesson is a shadcn/ui theme built around a purple primary color (#6a3b78) with muted light purple accents (#dfd5e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#6a3b78) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030203black |
| Foreground | #030104black | #f8f5f9whitesmoke |
| Card | #ffffffwhite | #030203black |
| Card foreground | #030104black | #f8f5f9whitesmoke |
| Popover | #ffffffwhite | #030203black |
| Popover foreground | #030104black | #f8f5f9whitesmoke |
| Primary | #6a3b78rebeccapurple | #6a3b78rebeccapurple |
| Primary foreground | #f5eef7whitesmoke | #f5eef7whitesmoke |
| Secondary | #e9e6ealavender | #2b242ddarkslategray |
| Secondary foreground | #544757darkslategray | #c6bbc9silver |
| Muted | #ede0f0lavender | #1c0f1fblack |
| Muted foreground | #645b67dimgray | #a198a4darkgray |
| Accent | #dfd5e2gainsboro | #433347darkslategray |
| Accent foreground | #49364edarkslategray | #dad0ddgainsboro |
| Destructive | #803005saddlebrown | #e25508chocolate |
| Destructive foreground | #fdd1bapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a3b78rebeccapurple | #6a3b78rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Lesson in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.019 320.789);
--muted: oklch(0.921 0.026 318.881);
--muted-foreground: oklch(0.484 0.022 318.875);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.019 320.789);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.019 320.789);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.436 0.11 318.638);
--primary-foreground: oklch(0.957 0.014 318.886);
--secondary: oklch(0.928 0.007 318.888);
--secondary-foreground: oklch(0.417 0.03 318.863);
--accent: oklch(0.884 0.02 318.882);
--accent-foreground: oklch(0.365 0.047 318.828);
--destructive: oklch(0.418 0.121 42.734);
--destructive-foreground: oklch(0.893 0.058 49.891);
--ring: oklch(0.436 0.11 318.638);
--chart-1: oklch(0.436 0.11 318.638);
--chart-2: oklch(0.928 0.007 318.888);
--chart-3: oklch(0.884 0.02 318.882);
--chart-4: oklch(0.952 0.005 318.889);
--chart-5: oklch(0.435 0.119 318.581);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.011 320.011);
--foreground: oklch(0.975 0.006 318.888);
--muted: oklch(0.193 0.038 318.755);
--muted-foreground: oklch(0.692 0.02 318.88);
--popover: oklch(0.087 0.011 320.011);
--popover-foreground: oklch(0.975 0.006 318.888);
--card: oklch(0.087 0.011 320.011);
--card-foreground: oklch(0.975 0.006 318.888);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.436 0.11 318.638);
--primary-foreground: oklch(0.957 0.014 318.886);
--secondary: oklch(0.273 0.019 318.864);
--secondary-foreground: oklch(0.805 0.022 318.881);
--accent: oklch(0.348 0.039 318.84);
--accent-foreground: oklch(0.869 0.021 318.882);
--destructive: oklch(0.63 0.19 41.227);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.436 0.11 318.638);
--chart-1: oklch(0.436 0.11 318.638);
--chart-2: oklch(0.273 0.019 318.864);
--chart-3: oklch(0.348 0.039 318.84);
--chart-4: oklch(0.303 0.022 318.863);
--chart-5: oklch(0.435 0.119 318.581);
}