Supervision is a shadcn/ui theme built around a light purple primary color (#f7e9f3) with light cyan accents (#e9f3f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f7e9f3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150411black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #11030dblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #150411black | #fdfcfdwhite |
| Primary | #f7e9f3lavenderblush | #f7e9f3lavenderblush |
| Primary foreground | #7f2e6apurple | #7f2e6apurple |
| Secondary | #f3f7e9linen | #f3f7e9linen |
| Secondary foreground | #2c3413darkslategray | #2c3413darkslategray |
| Muted | #eaece4beige | #191b13black |
| Muted foreground | #565851dimgray | #acaea7darkgray |
| Accent | #e9f3f7aliceblue | #e9f3f7aliceblue |
| Accent foreground | #132c34darkslategray | #132c34darkslategray |
| Destructive | #cd410echocolate | #f05e28chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7e9f3lavenderblush | #f7e9f3lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 11.98:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 12.95:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 11.98:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 12.95:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Supervision in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.04 337.949);
--muted: oklch(0.94 0.012 118.787);
--muted-foreground: oklch(0.455 0.011 118.987);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.04 337.949);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.135 0.036 337.1);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.947 0.021 334.908);
--primary-foreground: oklch(0.44 0.134 339.556);
--secondary: oklch(0.969 0.019 118.916);
--secondary-foreground: oklch(0.31 0.055 122.057);
--accent: oklch(0.958 0.012 221.422);
--accent-foreground: oklch(0.276 0.035 224.024);
--destructive: oklch(0.572 0.184 37.081);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.947 0.021 334.908);
--chart-1: oklch(0.947 0.021 334.908);
--chart-2: oklch(0.969 0.019 118.916);
--chart-3: oklch(0.958 0.012 221.422);
--chart-4: oklch(0.984 0.01 118.738);
--chart-5: oklch(0.946 0.022 334.932);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 334.561);
--muted: oklch(0.218 0.017 119.931);
--muted-foreground: oklch(0.748 0.01 118.792);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 334.561);
--card: oklch(0.092 0 180);
--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.947 0.021 334.908);
--primary-foreground: oklch(0.44 0.134 339.556);
--secondary: oklch(0.969 0.019 118.916);
--secondary-foreground: oklch(0.31 0.055 122.057);
--accent: oklch(0.958 0.012 221.422);
--accent-foreground: oklch(0.276 0.035 224.024);
--destructive: oklch(0.664 0.192 38.704);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.947 0.021 334.908);
--chart-1: oklch(0.947 0.021 334.908);
--chart-2: oklch(0.969 0.019 118.916);
--chart-3: oklch(0.958 0.012 221.422);
--chart-4: oklch(0.984 0.01 118.738);
--chart-5: oklch(0.946 0.022 334.932);
}