Learn with Sumit - Traditional is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#4a4a4a). The light mode uses a neutral background (#242424). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#242424).
| Token | Light | Dark |
|---|---|---|
| Background | #242424darkslategray | #242424darkslategray |
| Foreground | #cccccclightgrey | #cccccclightgrey |
| Card | #1f1f1fblack | #1f1f1fblack |
| Card foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Popover | #1c1c1cblack | #1c1c1cblack |
| Popover foreground | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #332828darkslategray | #332828darkslategray |
| Muted foreground | #b7a4a4darkgray | #b7a4a4darkgray |
| Accent | #4a4a4adarkslategray | #4a4a4adarkslategray |
| Accent foreground | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Destructive | #f63d2corangered | #f63d2corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #303030darkslategray | #303030darkslategray |
| Input | #383838darkslategray | #383838darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.70:1 | AAA |
| Text on card | 11.73:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 3.72:1 | AA Large |
| Text on background | 9.70:1 | AAA |
| Text on card | 11.73:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Learn with Sumit - Traditional in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.259 0 167.471);
--foreground: oklch(0.845 0 164.055);
--muted: oklch(0.291 0.016 18.142);
--muted-foreground: oklch(0.734 0.023 17.686);
--popover: oklch(0.227 0 164.055);
--popover-foreground: oklch(0.923 0 153.435);
--card: oklch(0.238 0 161.565);
--card-foreground: oklch(0.885 0 180);
--border: oklch(0.311 0 180);
--input: oklch(0.341 0 158.199);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.409 0 190.305);
--accent-foreground: oklch(0.916 0 180);
--destructive: oklch(0.641 0.223 29.714);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.409 0 190.305);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.259 0 167.471);
--foreground: oklch(0.845 0 164.055);
--muted: oklch(0.291 0.016 18.142);
--muted-foreground: oklch(0.734 0.023 17.686);
--popover: oklch(0.227 0 164.055);
--popover-foreground: oklch(0.923 0 153.435);
--card: oklch(0.238 0 161.565);
--card-foreground: oklch(0.885 0 180);
--border: oklch(0.311 0 180);
--input: oklch(0.341 0 158.199);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.409 0 190.305);
--accent-foreground: oklch(0.916 0 180);
--destructive: oklch(0.641 0.223 29.714);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.409 0 190.305);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}