Strand is a shadcn/ui theme built around a muted green primary color (#4d5f3a) with muted violet accents (#4d3a5f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#4d5f3a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080d02black | #fafcf8snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080d02black | #fafcf8snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080d02black | #fafcf8snow |
| Primary | #4d5f3adarkolivegreen | #4d5f3adarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4d3a5fdarkslategray | #4d3a5fdarkslategray |
| Secondary foreground | #e6dfeclavender | #e6dfeclavender |
| Muted | #edecefwhitesmoke | #121013black |
| Muted foreground | #544c5ddimgray | #aba2b3darkgray |
| Accent | #4d3a5fdarkslategray | #4d3a5fdarkslategray |
| Accent foreground | #e6dfeclavender | #e6dfeclavender |
| Destructive | #772a08saddlebrown | #f06124chocolate |
| Destructive foreground | #facbb7peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d5f3adarkolivegreen | #4d5f3adarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 7.69:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Strand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.029 127.493);
--muted: oklch(0.944 0.005 308.406);
--muted-foreground: oklch(0.43 0.029 307.706);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.029 127.493);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.029 127.493);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.459 0.061 130.104);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.385 0.065 306.538);
--secondary-foreground: oklch(0.913 0.018 308.246);
--accent: oklch(0.385 0.065 306.538);
--accent-foreground: oklch(0.913 0.018 308.246);
--destructive: oklch(0.394 0.116 40.032);
--destructive-foreground: oklch(0.879 0.06 44.422);
--ring: oklch(0.459 0.061 130.104);
--chart-1: oklch(0.459 0.061 130.104);
--chart-2: oklch(0.385 0.065 306.538);
--chart-3: oklch(0.385 0.065 306.538);
--chart-4: oklch(0.41 0.07 306.507);
--chart-5: oklch(0.465 0.068 130.307);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.005 128.513);
--muted: oklch(0.178 0.007 308.025);
--muted-foreground: oklch(0.726 0.026 308.068);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.005 128.513);
--card: oklch(0 0 0);
--card-foreground: oklch(0.988 0.005 128.513);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.459 0.061 130.104);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.385 0.065 306.538);
--secondary-foreground: oklch(0.913 0.018 308.246);
--accent: oklch(0.385 0.065 306.538);
--accent-foreground: oklch(0.913 0.018 308.246);
--destructive: oklch(0.667 0.189 40.627);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.459 0.061 130.104);
--chart-1: oklch(0.459 0.061 130.104);
--chart-2: oklch(0.385 0.065 306.538);
--chart-3: oklch(0.385 0.065 306.538);
--chart-4: oklch(0.41 0.07 306.507);
--chart-5: oklch(0.465 0.068 130.307);
}