Instructive is a shadcn/ui theme built around a muted cyan primary color (#3f555f) with muted light cyan accents (#ccd3d7). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#3f555f) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #010304black |
| Foreground | #010609black | #f9fafbghostwhite |
| Card | #fbfdfewhite | #010304black |
| Card foreground | #010609black | #f9fafbghostwhite |
| Popover | #fbfdfewhite | #010304black |
| Popover foreground | #010609black | #f9fafbghostwhite |
| Primary | #3f555fdarkslategray | #3f555fdarkslategray |
| Primary foreground | #e3eaedlavender | #e3eaedlavender |
| Secondary | #ccd3d7lightgrey | #14181ablack |
| Secondary foreground | #313b3fdarkslategray | #a6b4badarkgray |
| Muted | #c9dee8gainsboro | #172c36darkslategray |
| Muted foreground | #404344darkslategray | #bbbdbfsilver |
| Accent | #ccd3d7lightgrey | #14181ablack |
| Accent foreground | #313b3fdarkslategray | #a6b4badarkgray |
| Destructive | #6a1a0cmaroon | #ea583etomato |
| Destructive foreground | #f6bbb1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f555fdarkslategray | #3f555fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 7.19:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 7.19:1 | AAA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 8.38:1 | AAA |
| Destructive | 5.94:1 | AA |
Paste this into your globals.css to use Instructive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 226.891);
--foreground: oklch(0.118 0.015 219.704);
--muted: oklch(0.889 0.026 227.25);
--muted-foreground: oklch(0.381 0.004 226.995);
--popover: oklch(0.993 0.003 226.891);
--popover-foreground: oklch(0.118 0.015 219.704);
--card: oklch(0.993 0.003 226.891);
--card-foreground: oklch(0.118 0.015 219.704);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.435 0.031 228.049);
--primary-foreground: oklch(0.932 0.008 226.96);
--secondary: oklch(0.862 0.01 226.994);
--secondary-foreground: oklch(0.344 0.014 227.454);
--accent: oklch(0.862 0.01 226.994);
--accent-foreground: oklch(0.344 0.014 227.454);
--destructive: oklch(0.349 0.115 32.37);
--destructive-foreground: oklch(0.844 0.07 29.996);
--ring: oklch(0.435 0.031 228.049);
--chart-1: oklch(0.435 0.031 228.049);
--chart-2: oklch(0.862 0.01 226.994);
--chart-3: oklch(0.862 0.01 226.994);
--chart-4: oklch(0.886 0.008 226.967);
--chart-5: oklch(0.437 0.036 228.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.008 221.945);
--foreground: oklch(0.985 0.001 226.873);
--muted: oklch(0.28 0.032 229.341);
--muted-foreground: oklch(0.798 0.004 226.911);
--popover: oklch(0.093 0.008 221.945);
--popover-foreground: oklch(0.985 0.001 226.873);
--card: oklch(0.093 0.008 221.945);
--card-foreground: oklch(0.985 0.001 226.873);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.435 0.031 228.049);
--primary-foreground: oklch(0.932 0.008 226.96);
--secondary: oklch(0.206 0.007 227.346);
--secondary-foreground: oklch(0.76 0.018 227.171);
--accent: oklch(0.206 0.007 227.346);
--accent-foreground: oklch(0.76 0.018 227.171);
--destructive: oklch(0.649 0.185 32.232);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.435 0.031 228.049);
--chart-1: oklch(0.435 0.031 228.049);
--chart-2: oklch(0.206 0.007 227.346);
--chart-3: oklch(0.206 0.007 227.346);
--chart-4: oklch(0.239 0.009 227.405);
--chart-5: oklch(0.437 0.036 228.285);
}