Classroom is a shadcn/ui theme built around a deep green primary color (#0b4716) with deep teal accents (#0b4734). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#0b4716) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030704black |
| Foreground | #010402black | #f8fbf9mintcream |
| Card | #fbfefcwhite | #030704black |
| Card foreground | #010402black | #f8fbf9mintcream |
| Popover | #fbfefcwhite | #030704black |
| Popover foreground | #010402black | #f8fbf9mintcream |
| Primary | #0b4716darkgreen | #0b4716darkgreen |
| Primary foreground | #3ce25alimegreen | #3ce25alimegreen |
| Secondary | #1e470bdarkgreen | #1e470bdarkgreen |
| Secondary foreground | #70e23cyellowgreen | #70e23cyellowgreen |
| Muted | #ebf3e7beige | #10180cblack |
| Muted foreground | #607557dimgray | #93a88adarkseagreen |
| Accent | #0b4734darkslategray | #0b4734darkslategray |
| Accent foreground | #3ce2adturquoise | #3ce2adturquoise |
| Destructive | #d10000red | #ff3333crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b4716darkgreen | #0b4716darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 4.43:1 | AA Large |
| Accent | 6.45:1 | AA |
| Destructive | 5.65:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.34:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 7.09:1 | AAA |
| Accent | 6.45:1 | AA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Classroom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 151.356);
--foreground: oklch(0.097 0.017 150.463);
--muted: oklch(0.955 0.018 135.511);
--muted-foreground: oklch(0.538 0.053 135.891);
--popover: oklch(0.994 0.004 151.356);
--popover-foreground: oklch(0.097 0.017 150.463);
--card: oklch(0.994 0.004 151.356);
--card-foreground: oklch(0.097 0.017 150.463);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.349 0.099 145.669);
--primary-foreground: oklch(0.801 0.223 145.842);
--secondary: oklch(0.355 0.099 137.95);
--secondary-foreground: oklch(0.814 0.224 137.822);
--accent: oklch(0.356 0.068 166.35);
--accent-foreground: oklch(0.816 0.153 166.687);
--destructive: oklch(0.541 0.222 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.349 0.099 145.669);
--chart-1: oklch(0.349 0.099 145.669);
--chart-2: oklch(0.355 0.099 137.95);
--chart-3: oklch(0.356 0.068 166.35);
--chart-4: oklch(0.398 0.113 138.09);
--chart-5: oklch(0.353 0.102 145.494);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.016 150.708);
--foreground: oklch(0.986 0.004 151.343);
--muted: oklch(0.196 0.027 136.116);
--muted-foreground: oklch(0.708 0.049 135.745);
--popover: oklch(0.121 0.016 150.708);
--popover-foreground: oklch(0.986 0.004 151.343);
--card: oklch(0.121 0.016 150.708);
--card-foreground: oklch(0.986 0.004 151.343);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.349 0.099 145.669);
--primary-foreground: oklch(0.801 0.223 145.842);
--secondary: oklch(0.355 0.099 137.95);
--secondary-foreground: oklch(0.814 0.224 137.822);
--accent: oklch(0.356 0.068 166.35);
--accent-foreground: oklch(0.816 0.153 166.687);
--destructive: oklch(0.649 0.237 26.973);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.349 0.099 145.669);
--chart-1: oklch(0.349 0.099 145.669);
--chart-2: oklch(0.355 0.099 137.95);
--chart-3: oklch(0.356 0.068 166.35);
--chart-4: oklch(0.398 0.113 138.09);
--chart-5: oklch(0.353 0.102 145.494);
}