Classroom is a shadcn/ui theme built around a light red primary color (#f0d9d6) with light cyan accents (#d6edf0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f0d9d6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #f0d9d6antiquewhite | #f0d9d6antiquewhite |
| Primary foreground | #6d3027saddlebrown | #6d3027saddlebrown |
| Secondary | #d6edf0lavender | #d6edf0lavender |
| Secondary foreground | #0c1f22black | #0c1f22black |
| Muted | #cce2e6gainsboro | #193033darkslategray |
| Muted foreground | #464d4edarkslategray | #b1b8b9silver |
| Accent | #d6edf0lavender | #d6edf0lavender |
| Accent foreground | #0c1f22black | #0c1f22black |
| Destructive | #b30900darkred | #ff2f24orangered |
| Destructive foreground | #ffe7e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0d9d6antiquewhite | #f0d9d6antiquewhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 13.91:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 13.91:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 13.91:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 13.91:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Classroom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.024 207.846);
--muted-foreground: oklch(0.414 0.008 207.86);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.904 0.026 28.102);
--primary-foreground: oklch(0.391 0.088 30.461);
--secondary: oklch(0.929 0.025 207.848);
--secondary-foreground: oklch(0.224 0.025 208.397);
--accent: oklch(0.929 0.025 207.848);
--accent-foreground: oklch(0.224 0.025 208.397);
--destructive: oklch(0.483 0.195 29.842);
--destructive-foreground: oklch(0.946 0.027 21.261);
--ring: oklch(0.904 0.026 28.102);
--chart-1: oklch(0.904 0.026 28.102);
--chart-2: oklch(0.929 0.025 207.848);
--chart-3: oklch(0.929 0.025 207.848);
--chart-4: oklch(0.948 0.018 207.864);
--chart-5: oklch(0.903 0.028 28.116);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 27.942);
--muted: oklch(0.291 0.029 208.194);
--muted-foreground: oklch(0.777 0.007 207.894);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 27.942);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.002 27.942);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.904 0.026 28.102);
--primary-foreground: oklch(0.391 0.088 30.461);
--secondary: oklch(0.929 0.025 207.848);
--secondary-foreground: oklch(0.224 0.025 208.397);
--accent: oklch(0.929 0.025 207.848);
--accent-foreground: oklch(0.224 0.025 208.397);
--destructive: oklch(0.645 0.241 29.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.026 28.102);
--chart-1: oklch(0.904 0.026 28.102);
--chart-2: oklch(0.929 0.025 207.848);
--chart-3: oklch(0.929 0.025 207.848);
--chart-4: oklch(0.948 0.018 207.864);
--chart-5: oklch(0.903 0.028 28.116);
}