Instructive is a shadcn/ui theme built around a blue primary color (#5c96b2) with muted light blue accents (#becacf). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the blue primary (#5c96b2) on a blue-tinted background (#040c10).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #040c10black |
| Foreground | #031016black | #ffffffwhite |
| Card | #f4f8fbghostwhite | #050f14black |
| Card foreground | #020d12black | #ffffffwhite |
| Popover | #f4f8fbghostwhite | #050f14black |
| Popover foreground | #020d12black | #ffffffwhite |
| Primary | #5c96b2cadetblue | #5c96b2cadetblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #dbdfe1gainsboro | #171a1cblack |
| Secondary foreground | #3f474adarkslategray | #acb5b9darkgray |
| Muted | #ebf1f4whitesmoke | #0b1114black |
| Muted foreground | #45484adarkslategray | #b5b8basilver |
| Accent | #becacfsilver | #273035darkslategray |
| Accent foreground | #273035darkslategray | #becacfsilver |
| Destructive | #d51f0bfirebrick | #f43e2aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c96b2cadetblue | #5c96b2cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.48:1 | AAA |
| Text on card | 18.44:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.09:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 5.19:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 9.54:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Instructive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.004 228.799);
--foreground: oklch(0.163 0.025 228.793);
--muted: oklch(0.955 0.007 228.853);
--muted-foreground: oklch(0.4 0.004 228.899);
--popover: oklch(0.978 0.006 228.824);
--popover-foreground: oklch(0.149 0.022 226.327);
--card: oklch(0.978 0.006 228.824);
--card-foreground: oklch(0.149 0.022 226.327);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.643 0.074 231.237);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.901 0.005 228.816);
--secondary-foreground: oklch(0.391 0.011 229.165);
--accent: oklch(0.831 0.015 228.988);
--accent-foreground: oklch(0.303 0.015 229.518);
--destructive: oklch(0.559 0.215 30.443);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.643 0.074 231.237);
--chart-1: oklch(0.643 0.074 231.237);
--chart-2: oklch(0.901 0.005 228.816);
--chart-3: oklch(0.831 0.015 228.988);
--chart-4: oklch(0.924 0.003 228.8);
--chart-5: oklch(0.646 0.079 231.535);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.016 226.994);
--foreground: oklch(1 0 180);
--muted: oklch(0.172 0.011 229.817);
--muted-foreground: oklch(0.782 0.004 228.814);
--popover: oklch(0.162 0.019 229.226);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.162 0.019 229.226);
--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.643 0.074 231.237);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.216 0.005 229.066);
--secondary-foreground: oklch(0.766 0.011 228.94);
--accent: oklch(0.303 0.015 229.518);
--accent-foreground: oklch(0.831 0.015 228.988);
--destructive: oklch(0.637 0.221 30.359);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.643 0.074 231.237);
--chart-1: oklch(0.643 0.074 231.237);
--chart-2: oklch(0.216 0.005 229.066);
--chart-3: oklch(0.303 0.015 229.518);
--chart-4: oklch(0.249 0.006 229.096);
--chart-5: oklch(0.646 0.079 231.535);
}