Crewmember is a shadcn/ui theme built around a muted light green primary color (#f2f5ef) with muted light violet accents (#f2eff5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#f2f5ef) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #f2f5efwhitesmoke | #f2f5efwhitesmoke |
| Primary foreground | #272f1ddarkslategray | #272f1ddarkslategray |
| Secondary | #f2eff5whitesmoke | #f2eff5whitesmoke |
| Secondary foreground | #58446fdarkslateblue | #58446fdarkslateblue |
| Muted | #eae8edlavender | #141217black |
| Muted foreground | #473e51darkslategray | #b7aec1silver |
| Accent | #f2eff5whitesmoke | #f2eff5whitesmoke |
| Accent foreground | #58446fdarkslateblue | #58446fdarkslateblue |
| Destructive | #6e1c07maroon | #e63a0forangered |
| Destructive foreground | #fabdaelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2f5efwhitesmoke | #f2f5efwhitesmoke |
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 | 12.66:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 8.32:1 | AAA |
| Accent | 7.47:1 | AAA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.66:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 7.47:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Crewmember in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.019 125.926);
--muted: oklch(0.934 0.008 307.013);
--muted-foreground: oklch(0.381 0.033 306.049);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.019 125.926);
--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.967 0.009 127.222);
--primary-foreground: oklch(0.293 0.034 128.652);
--secondary: oklch(0.957 0.009 307.001);
--secondary-foreground: oklch(0.425 0.073 304.941);
--accent: oklch(0.957 0.009 307.001);
--accent-foreground: oklch(0.425 0.073 304.941);
--destructive: oklch(0.36 0.12 34.446);
--destructive-foreground: oklch(0.849 0.074 34.464);
--ring: oklch(0.967 0.009 127.222);
--chart-1: oklch(0.967 0.009 127.222);
--chart-2: oklch(0.957 0.009 307.001);
--chart-3: oklch(0.957 0.009 307.001);
--chart-4: oklch(0.983 0.003 307.069);
--chart-5: oklch(0.968 0.01 127.235);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 127.14);
--muted: oklch(0.186 0.011 306.372);
--muted-foreground: oklch(0.765 0.028 306.668);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 127.14);
--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.967 0.009 127.222);
--primary-foreground: oklch(0.293 0.034 128.652);
--secondary: oklch(0.957 0.009 307.001);
--secondary-foreground: oklch(0.425 0.073 304.941);
--accent: oklch(0.957 0.009 307.001);
--accent-foreground: oklch(0.425 0.073 304.941);
--destructive: oklch(0.608 0.214 33.663);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.967 0.009 127.222);
--chart-1: oklch(0.967 0.009 127.222);
--chart-2: oklch(0.957 0.009 307.001);
--chart-3: oklch(0.957 0.009 307.001);
--chart-4: oklch(0.983 0.003 307.069);
--chart-5: oklch(0.968 0.01 127.235);
}