Classroom is a shadcn/ui theme built around a pink primary color (#d5205c) with muted pink accents (#c2a8b1). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the pink primary (#d5205c) on a pink-tinted background (#0e0709).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0e0709black |
| Foreground | #120207black | #fdfcfcsnow |
| Card | #fbf4f6lavenderblush | #11080bblack |
| Card foreground | #0e0206black | #ffffffwhite |
| Popover | #fcf8f9snow | #0e0709black |
| Popover foreground | #120207black | #fdfcfcsnow |
| Primary | #d5205ccrimson | #d5205ccrimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d3cacdlightgrey | #1d1618black |
| Secondary foreground | #3b3034darkslategray | #bca9afdarkgray |
| Muted | #f2edefwhitesmoke | #120d0fblack |
| Muted foreground | #615c5ddimgray | #a39ea0darkgray |
| Accent | #c2a8b1darkgray | #3b262ddarkslategray |
| Accent foreground | #21171ablack | #d5bec6thistle |
| Destructive | #5e0f08maroon | #d82313firebrick |
| Destructive foreground | #f7a8a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d5205ccrimson | #d5205ccrimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 5.01:1 | AA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 5.01:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 5.04:1 | AA |
Paste this into your globals.css to use Classroom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 354.743);
--foreground: oklch(0.13 0.039 356.51);
--muted: oklch(0.951 0.005 354.749);
--muted-foreground: oklch(0.479 0.008 355.055);
--popover: oklch(0.982 0.005 354.743);
--popover-foreground: oklch(0.13 0.039 356.51);
--card: oklch(0.973 0.008 354.823);
--card-foreground: oklch(0.116 0.034 354.711);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.57 0.212 9.182);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.847 0.012 354.981);
--secondary-foreground: oklch(0.323 0.017 356.02);
--accent: oklch(0.757 0.033 355.818);
--accent-foreground: oklch(0.219 0.017 356.774);
--destructive: oklch(0.315 0.112 29.89);
--destructive-foreground: oklch(0.807 0.094 25.099);
--ring: oklch(0.57 0.212 9.182);
--chart-1: oklch(0.57 0.212 9.182);
--chart-2: oklch(0.847 0.012 354.981);
--chart-3: oklch(0.757 0.033 355.818);
--chart-4: oklch(0.871 0.01 354.907);
--chart-5: oklch(0.574 0.217 9.908);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.015 355.55);
--foreground: oklch(0.991 0.002 354.649);
--muted: oklch(0.166 0.008 356.002);
--muted-foreground: oklch(0.704 0.007 354.877);
--popover: oklch(0.138 0.015 355.55);
--popover-foreground: oklch(0.991 0.002 354.649);
--card: oklch(0.15 0.018 357.318);
--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.57 0.212 9.182);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.21 0.011 356.105);
--secondary-foreground: oklch(0.752 0.025 355.517);
--accent: oklch(0.297 0.034 357.734);
--accent-foreground: oklch(0.823 0.029 355.571);
--destructive: oklch(0.567 0.215 30.085);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.57 0.212 9.182);
--chart-1: oklch(0.57 0.212 9.182);
--chart-2: oklch(0.21 0.011 356.105);
--chart-3: oklch(0.297 0.034 357.734);
--chart-4: oklch(0.241 0.014 356.243);
--chart-5: oklch(0.574 0.217 9.908);
}