Studious is a shadcn/ui theme built around a muted violet primary color (#b2aebc) with muted green accents (#b8bcae). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#b2aebc) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #090416black | #fcfcfdwhite |
| Card | #ffffffwhite | #040307black |
| Card foreground | #090416black | #fcfcfdwhite |
| Popover | #ffffffwhite | #040307black |
| Popover foreground | #090416black | #fcfcfdwhite |
| Primary | #b2aebcdarkgray | #b2aebcdarkgray |
| Primary foreground | #1b191fblack | #1b191fblack |
| Secondary | #b8bcaesilver | #b8bcaesilver |
| Secondary foreground | #1d1f19black | #1d1f19black |
| Muted | #dfe6d1gainsboro | #282e19darkslategray |
| Muted foreground | #4f5346darkslategray | #b5b9acdarkgray |
| Accent | #b8bcaesilver | #b8bcaesilver |
| Accent foreground | #1d1f19black | #1d1f19black |
| Destructive | #860d09darkred | #e6160fred |
| Destructive foreground | #fbc7c5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2aebcdarkgray | #b2aebcdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 8.61:1 | AAA |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use Studious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.043 297.67);
--muted: oklch(0.914 0.029 121.302);
--muted-foreground: oklch(0.433 0.02 121.544);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.043 297.67);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.043 297.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.758 0.021 300.301);
--primary-foreground: oklch(0.219 0.011 299.928);
--secondary: oklch(0.789 0.021 121.211);
--secondary-foreground: oklch(0.235 0.011 121.533);
--accent: oklch(0.789 0.021 121.211);
--accent-foreground: oklch(0.235 0.011 121.533);
--destructive: oklch(0.396 0.154 28.965);
--destructive-foreground: oklch(0.876 0.06 20.655);
--ring: oklch(0.758 0.021 300.301);
--chart-1: oklch(0.758 0.021 300.301);
--chart-2: oklch(0.789 0.021 121.211);
--chart-3: oklch(0.789 0.021 121.211);
--chart-4: oklch(0.811 0.019 121.151);
--chart-5: oklch(0.754 0.028 300.155);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.015 301.017);
--foreground: oklch(0.991 0.002 300.742);
--muted: oklch(0.29 0.038 123.061);
--muted-foreground: oklch(0.778 0.018 121.141);
--popover: oklch(0.105 0.015 301.017);
--popover-foreground: oklch(0.991 0.002 300.742);
--card: oklch(0.105 0.015 301.017);
--card-foreground: oklch(0.991 0.002 300.742);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.758 0.021 300.301);
--primary-foreground: oklch(0.219 0.011 299.928);
--secondary: oklch(0.789 0.021 121.211);
--secondary-foreground: oklch(0.235 0.011 121.533);
--accent: oklch(0.789 0.021 121.211);
--accent-foreground: oklch(0.235 0.011 121.533);
--destructive: oklch(0.587 0.233 29.188);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.758 0.021 300.301);
--chart-1: oklch(0.758 0.021 300.301);
--chart-2: oklch(0.789 0.021 121.211);
--chart-3: oklch(0.789 0.021 121.211);
--chart-4: oklch(0.811 0.019 121.151);
--chart-5: oklch(0.754 0.028 300.155);
}