Documentation is a shadcn/ui theme built around a muted deep purple primary color (#4f3555) with muted deep teal accents (#35554f). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted deep purple primary (#4f3555) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #000000black |
| Foreground | #040104black | #fbf8fcghostwhite |
| Card | #fdfcfdwhite | #000000black |
| Card foreground | #040104black | #fbf8fcghostwhite |
| Popover | #fdfcfdwhite | #000000black |
| Popover foreground | #040104black | #fbf8fcghostwhite |
| Primary | #4f3555darkslategray | #4f3555darkslategray |
| Primary foreground | #e3d6e5gainsboro | #e3d6e5gainsboro |
| Secondary | #554f35darkolivegreen | #554f35darkolivegreen |
| Secondary foreground | #e5e3d6gainsboro | #e5e3d6gainsboro |
| Muted | #efeee6linen | #191710black |
| Muted foreground | #716d56dimgray | #a9a58edarkgray |
| Accent | #35554fdarkslategray | #35554fdarkslategray |
| Accent foreground | #d6e5e3gainsboro | #d6e5e3gainsboro |
| Destructive | #84150bmaroon | #d42111firebrick |
| Destructive foreground | #facbc6pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f3555darkslategray | #4f3555darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 6.35:1 | AA |
| Muted text | 4.47:1 | AA Large |
| Accent | 6.33:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 6.35:1 | AA |
| Muted text | 7.20:1 | AAA |
| Accent | 6.33:1 | AA |
| Destructive | 5.19:1 | AA |
Paste this into your globals.css to use Documentation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 320.536);
--foreground: oklch(0.082 0.025 322.947);
--muted: oklch(0.947 0.01 97.4);
--muted-foreground: oklch(0.531 0.035 98.009);
--popover: oklch(0.991 0.003 320.536);
--popover-foreground: oklch(0.082 0.025 322.947);
--card: oklch(0.991 0.003 320.536);
--card-foreground: oklch(0.082 0.025 322.947);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.373 0.063 320.742);
--primary-foreground: oklch(0.891 0.025 320.574);
--secondary: oklch(0.427 0.041 98.221);
--secondary-foreground: oklch(0.914 0.017 97.504);
--accent: oklch(0.422 0.038 182.788);
--accent-foreground: oklch(0.911 0.017 184.969);
--destructive: oklch(0.397 0.147 30.023);
--destructive-foreground: oklch(0.882 0.055 24.294);
--ring: oklch(0.373 0.063 320.742);
--chart-1: oklch(0.373 0.063 320.742);
--chart-2: oklch(0.427 0.041 98.221);
--chart-3: oklch(0.422 0.038 182.788);
--chart-4: oklch(0.459 0.045 98.228);
--chart-5: oklch(0.371 0.07 320.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.006 320.541);
--muted: oklch(0.205 0.014 98.04);
--muted-foreground: oklch(0.719 0.033 97.815);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.006 320.541);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.006 320.541);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.373 0.063 320.742);
--primary-foreground: oklch(0.891 0.025 320.574);
--secondary: oklch(0.427 0.041 98.221);
--secondary-foreground: oklch(0.914 0.017 97.504);
--accent: oklch(0.422 0.038 182.788);
--accent-foreground: oklch(0.911 0.017 184.969);
--destructive: oklch(0.559 0.213 30.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.373 0.063 320.742);
--chart-1: oklch(0.373 0.063 320.742);
--chart-2: oklch(0.427 0.041 98.221);
--chart-3: oklch(0.422 0.038 182.788);
--chart-4: oklch(0.459 0.045 98.228);
--chart-5: oklch(0.371 0.07 320.754);
}