AlgoMentor is a shadcn/ui theme built around a muted green primary color (#77846c) with muted green accents (#6c846d). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted green primary (#77846c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #000000black |
| Foreground | #0c1405black | #fcfdfcwhite |
| Card | #fafcf8snow | #000000black |
| Card foreground | #0c1405black | #fcfdfcwhite |
| Popover | #fafcf8snow | #000000black |
| Popover foreground | #0c1405black | #fcfdfcwhite |
| Primary | #77846cgray | #77846cgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #83846cgray | #83846cgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebebe0beige | #1f1f14black |
| Muted foreground | #6b6d55dimgray | #a9aa92darkgray |
| Accent | #6c846ddimgray | #6c846ddimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #651c06maroon | #f4693etomato |
| Destructive foreground | #fab8a3lightpink | #000000black |
| Border | #e3e4e2gainsboro | #191b18black |
| Input | #e3e4e2gainsboro | #191b18black |
| Ring | #77846cgray | #77846cgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.21:1 | AAA |
| Text on card | 18.21:1 | AAA |
| Primary button | 3.97:1 | AA Large |
| Secondary button | 5.46:1 | AA |
| Muted text | 4.43:1 | AA Large |
| Accent | 4.07:1 | AA Large |
| Destructive | 7.21:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 3.97:1 | AA Large |
| Secondary button | 5.46:1 | AA |
| Muted text | 7.00:1 | AAA |
| Accent | 4.07:1 | AA Large |
| Destructive | 6.91:1 | AA |
Paste this into your globals.css to use AlgoMentor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 130.503);
--foreground: oklch(0.179 0.033 131.545);
--muted: oklch(0.937 0.015 109.003);
--muted-foreground: oklch(0.525 0.035 109.908);
--popover: oklch(0.989 0.007 130.503);
--popover-foreground: oklch(0.179 0.033 131.545);
--card: oklch(0.989 0.007 130.503);
--card-foreground: oklch(0.179 0.033 131.545);
--border: oklch(0.918 0.004 130.48);
--input: oklch(0.918 0.004 130.48);
--primary: oklch(0.595 0.039 131.071);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.035 109.754);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.587 0.044 146.31);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.343 0.109 36.281);
--destructive-foreground: oklch(0.837 0.082 37.615);
--ring: oklch(0.595 0.039 131.071);
--chart-1: oklch(0.595 0.039 131.071);
--chart-2: oklch(0.605 0.035 109.754);
--chart-3: oklch(0.587 0.044 146.31);
--chart-4: oklch(0.633 0.037 109.759);
--chart-5: oklch(0.602 0.05 131.259);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 130.451);
--muted: oklch(0.235 0.02 110.256);
--muted-foreground: oklch(0.73 0.033 109.52);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 130.451);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 130.451);
--border: oklch(0.219 0.005 130.668);
--input: oklch(0.219 0.005 130.668);
--primary: oklch(0.595 0.039 131.071);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.035 109.754);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.587 0.044 146.31);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.686 0.181 37.322);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.595 0.039 131.071);
--chart-1: oklch(0.595 0.039 131.071);
--chart-2: oklch(0.605 0.035 109.754);
--chart-3: oklch(0.587 0.044 146.31);
--chart-4: oklch(0.633 0.037 109.759);
--chart-5: oklch(0.602 0.05 131.259);
}