Instructive is a shadcn/ui theme built around a light green primary color (#e7edde) with muted light green accents (#c7d4b5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e7edde) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060802black |
| Foreground | #030401black | #ffffffwhite |
| Card | #fcfcfcsnow | #080c04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #060802black |
| Popover foreground | #030401black | #ffffffwhite |
| Primary | #e7eddebeige | #e7eddebeige |
| Primary foreground | #1b2112black | #1b2112black |
| Secondary | #dae0d2gainsboro | #25291edarkslategray |
| Secondary foreground | #424b34darkslategray | #bec7b2silver |
| Muted | #eef3e8linen | #13170cblack |
| Muted foreground | #575a53dimgray | #a9aca5darkgray |
| Accent | #c7d4b5silver | #3a442cdarkslategray |
| Accent foreground | #2d3720darkslategray | #d3dbc7lightgrey |
| Destructive | #7c340esaddlebrown | #ea7a3ecoral |
| Destructive foreground | #f8d6c3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7eddebeige | #e7eddebeige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 13.82:1 | AAA |
| Secondary button | 6.78:1 | AA |
| Muted text | 6.20:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 20.15:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 13.82:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.89:1 | AAA |
| Accent | 7.16:1 | AAA |
| Destructive | 7.34:1 | AAA |
Paste this into your globals.css to use Instructive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.015 124.266);
--muted: oklch(0.956 0.015 125.262);
--muted-foreground: oklch(0.463 0.012 125.394);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.015 124.266);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.938 0.022 125.374);
--primary-foreground: oklch(0.238 0.03 126.957);
--secondary: oklch(0.897 0.019 125.348);
--secondary-foreground: oklch(0.398 0.039 126.476);
--accent: oklch(0.852 0.045 125.794);
--accent-foreground: oklch(0.321 0.041 126.994);
--destructive: oklch(0.419 0.111 44.539);
--destructive-foreground: oklch(0.9 0.046 50.046);
--ring: oklch(0.938 0.022 125.374);
--chart-1: oklch(0.938 0.022 125.374);
--chart-2: oklch(0.897 0.019 125.348);
--chart-3: oklch(0.852 0.045 125.794);
--chart-4: oklch(0.918 0.016 125.28);
--chart-5: oklch(0.939 0.024 125.405);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.018 124.315);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.022 126.665);
--muted-foreground: oklch(0.739 0.01 125.239);
--popover: oklch(0.127 0.018 124.315);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.145 0.021 124.511);
--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.938 0.022 125.374);
--primary-foreground: oklch(0.238 0.03 126.957);
--secondary: oklch(0.274 0.021 126.171);
--secondary-foreground: oklch(0.818 0.031 125.571);
--accent: oklch(0.372 0.042 126.738);
--accent-foreground: oklch(0.88 0.029 125.501);
--destructive: oklch(0.697 0.156 46.696);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.938 0.022 125.374);
--chart-1: oklch(0.938 0.022 125.374);
--chart-2: oklch(0.274 0.021 126.171);
--chart-3: oklch(0.372 0.042 126.738);
--chart-4: oklch(0.308 0.025 126.228);
--chart-5: oklch(0.939 0.024 125.405);
}