Threshold is a shadcn/ui theme built around a muted violet primary color (#ae92b9) with muted teal accents (#92b9ae). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted violet primary (#ae92b9) on a violet-tinted background (#09050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #09050bblack |
| Foreground | #060208black | #ffffffwhite |
| Card | #fbf8fcghostwhite | #09050bblack |
| Card foreground | #060208black | #ffffffwhite |
| Popover | #fbf8fcghostwhite | #09050bblack |
| Popover foreground | #060208black | #ffffffwhite |
| Primary | #ae92b9darkgray | #ae92b9darkgray |
| Primary foreground | #0e0a10black | #0e0a10black |
| Secondary | #b9ae92tan | #b9ae92tan |
| Secondary foreground | #100e0ablack | #100e0ablack |
| Muted | #e4dfd3gainsboro | #2c271bblack |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #92b9aedarkgray | #92b9aedarkgray |
| Accent foreground | #0a100eblack | #0a100eblack |
| Destructive | #632603maroon | #f96915chocolate |
| Destructive foreground | #fcbf9cnavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ae92b9darkgray | #ae92b9darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 8.97:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 8.97:1 | AAA |
| Destructive | 7.05:1 | AAA |
Paste this into your globals.css to use Threshold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 316.588);
--foreground: oklch(0.105 0.023 318.502);
--muted: oklch(0.904 0.017 88.9);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(0.982 0.007 316.588);
--popover-foreground: oklch(0.105 0.023 318.502);
--card: oklch(0.982 0.007 316.588);
--card-foreground: oklch(0.105 0.023 318.502);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.699 0.065 316.337);
--primary-foreground: oklch(0.153 0.013 316.344);
--secondary: oklch(0.754 0.041 89.013);
--secondary-foreground: oklch(0.164 0.009 89.001);
--accent: oklch(0.755 0.045 175.853);
--accent-foreground: oklch(0.164 0.009 175.921);
--destructive: oklch(0.354 0.099 44.914);
--destructive-foreground: oklch(0.852 0.085 51.284);
--ring: oklch(0.699 0.065 316.337);
--chart-1: oklch(0.699 0.065 316.337);
--chart-2: oklch(0.754 0.041 89.013);
--chart-3: oklch(0.755 0.045 175.853);
--chart-4: oklch(0.775 0.037 89.005);
--chart-5: oklch(0.696 0.073 316.297);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.019 317.903);
--foreground: oklch(1 0 180);
--muted: oklch(0.275 0.022 88.985);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0.124 0.019 317.903);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.019 317.903);
--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.699 0.065 316.337);
--primary-foreground: oklch(0.153 0.013 316.344);
--secondary: oklch(0.754 0.041 89.013);
--secondary-foreground: oklch(0.164 0.009 89.001);
--accent: oklch(0.755 0.045 175.853);
--accent-foreground: oklch(0.164 0.009 175.921);
--destructive: oklch(0.691 0.194 43.907);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.699 0.065 316.337);
--chart-1: oklch(0.699 0.065 316.337);
--chart-2: oklch(0.754 0.041 89.013);
--chart-3: oklch(0.755 0.045 175.853);
--chart-4: oklch(0.775 0.037 89.005);
--chart-5: oklch(0.696 0.073 316.297);
}