Crewman is a shadcn/ui theme built around a muted light purple primary color (#f6eff4) with muted light purple accents (#d6ccd3). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted light purple primary (#f6eff4) on a purple-tinted background (#0b0509).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0b0509black |
| Foreground | #000000black | #faf4f9whitesmoke |
| Card | #fcf8fbsnow | #0e060cblack |
| Card foreground | #000000black | #fcf8fbsnow |
| Popover | #fcf8fbsnow | #0e060cblack |
| Popover foreground | #000000black | #fcf8fbsnow |
| Primary | #f6eff4whitesmoke | #f6eff4whitesmoke |
| Primary foreground | #724065dimgray | #724065dimgray |
| Secondary | #d6ccd3lightgrey | #2c262adarkslategray |
| Secondary foreground | #3e323bdarkslategray | #c7bdc4silver |
| Muted | #e5d7e1gainsboro | #281a25black |
| Muted foreground | #4d424adarkslategray | #bdb2basilver |
| Accent | #d6ccd3lightgrey | #2c262adarkslategray |
| Accent foreground | #3e323bdarkslategray | #c7bdc4silver |
| Destructive | #631b09maroon | #e13d14orangered |
| Destructive foreground | #f7b6a6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6eff4whitesmoke | #f6eff4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 18.66:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 8.09:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Crewman in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 334.587);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.021 334.942);
--muted-foreground: oklch(0.393 0.021 335.42);
--popover: oklch(0.982 0.007 334.647);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.007 334.647);
--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.958 0.01 334.715);
--primary-foreground: oklch(0.446 0.086 337.647);
--secondary: oklch(0.856 0.015 334.831);
--secondary-foreground: oklch(0.334 0.023 335.698);
--accent: oklch(0.856 0.015 334.831);
--accent-foreground: oklch(0.334 0.023 335.698);
--destructive: oklch(0.336 0.107 34.696);
--destructive-foreground: oklch(0.833 0.08 34.503);
--ring: oklch(0.958 0.01 334.715);
--chart-1: oklch(0.958 0.01 334.715);
--chart-2: oklch(0.856 0.015 334.831);
--chart-3: oklch(0.856 0.015 334.831);
--chart-4: oklch(0.88 0.012 334.772);
--chart-5: oklch(0.958 0.011 334.735);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.018 335.017);
--foreground: oklch(0.974 0.009 334.681);
--muted: oklch(0.24 0.03 336.558);
--muted-foreground: oklch(0.775 0.017 334.915);
--popover: oklch(0.139 0.02 336.125);
--popover-foreground: oklch(0.983 0.006 334.629);
--card: oklch(0.139 0.02 336.125);
--card-foreground: oklch(0.983 0.006 334.629);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.958 0.01 334.715);
--primary-foreground: oklch(0.446 0.086 337.647);
--secondary: oklch(0.276 0.013 335.323);
--secondary-foreground: oklch(0.808 0.015 334.844);
--accent: oklch(0.276 0.013 335.323);
--accent-foreground: oklch(0.808 0.015 334.844);
--destructive: oklch(0.602 0.207 34.001);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.958 0.01 334.715);
--chart-1: oklch(0.958 0.01 334.715);
--chart-2: oklch(0.276 0.013 335.323);
--chart-3: oklch(0.276 0.013 335.323);
--chart-4: oklch(0.306 0.015 335.356);
--chart-5: oklch(0.958 0.011 334.735);
}