Graduate is a shadcn/ui theme built around a deep teal primary color (#266d69) with deep yellow accents (#6d6926). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the deep teal primary (#266d69) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #000000black |
| Foreground | #030c0cblack | #ffffffwhite |
| Card | #f6fdfdmintcream | #000000black |
| Card foreground | #030c0cblack | #ffffffwhite |
| Popover | #f6fdfdmintcream | #000000black |
| Popover foreground | #030c0cblack | #ffffffwhite |
| Primary | #266d69seagreen | #266d69seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #69266drebeccapurple | #69266drebeccapurple |
| Secondary foreground | #efd5f0lavender | #efd5f0lavender |
| Muted | #ddd9degainsboro | #262126darkslategray |
| Muted foreground | #4c424ddarkslategray | #bdb2bdsilver |
| Accent | #6d6926darkolivegreen | #6d6926darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #871d0ddarkred | #eb4228orangered |
| Destructive foreground | #fad2ccpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #266d69seagreen | #266d69seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 5.68:1 | AA |
| Destructive | 6.83:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.01:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 5.68:1 | AA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Graduate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 192.27);
--foreground: oklch(0.144 0.017 190.954);
--muted: oklch(0.89 0.008 323.685);
--muted-foreground: oklch(0.393 0.024 323.94);
--popover: oklch(0.99 0.007 192.27);
--popover-foreground: oklch(0.144 0.017 190.954);
--card: oklch(0.99 0.007 192.27);
--card-foreground: oklch(0.144 0.017 190.954);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.491 0.07 188.952);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.398 0.133 324.995);
--secondary-foreground: oklch(0.903 0.045 323.891);
--accent: oklch(0.51 0.087 105.217);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.41 0.144 31.632);
--destructive-foreground: oklch(0.896 0.046 28.285);
--ring: oklch(0.491 0.07 188.952);
--chart-1: oklch(0.491 0.07 188.952);
--chart-2: oklch(0.398 0.133 324.995);
--chart-3: oklch(0.51 0.087 105.217);
--chart-4: oklch(0.425 0.144 325.003);
--chart-5: oklch(0.497 0.073 188.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.256 0.011 323.865);
--muted-foreground: oklch(0.776 0.02 323.768);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.491 0.07 188.952);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.398 0.133 324.995);
--secondary-foreground: oklch(0.903 0.045 323.891);
--accent: oklch(0.51 0.087 105.217);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.209 31.655);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.491 0.07 188.952);
--chart-1: oklch(0.491 0.07 188.952);
--chart-2: oklch(0.398 0.133 324.995);
--chart-3: oklch(0.51 0.087 105.217);
--chart-4: oklch(0.425 0.144 325.003);
--chart-5: oklch(0.497 0.073 188.791);
}