Starchy is a shadcn/ui theme built around a deep purple primary color (#571669) with muted light purple accents (#ded7e0). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the deep purple primary (#571669) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #030203black |
| Foreground | #120415black | #fbf8fcghostwhite |
| Card | #f9f5faghostwhite | #060307black |
| Card foreground | #0e0311black | #fdfcfdwhite |
| Popover | #fbf8fcghostwhite | #030203black |
| Popover foreground | #120415black | #fbf8fcghostwhite |
| Primary | #571669indigo | #571669indigo |
| Primary foreground | #e7c0f2thistle | #e7c0f2thistle |
| Secondary | #ded7e0gainsboro | #372c3adarkslategray |
| Secondary foreground | #473a4adarkslategray | #d0c5d3thistle |
| Muted | #ede7eelavender | #171118black |
| Muted foreground | #695a6ddimgray | #a192a5darkgray |
| Accent | #ded7e0gainsboro | #372c3adarkslategray |
| Accent foreground | #473a4adarkslategray | #d0c5d3thistle |
| Destructive | #8c1108darkred | #ec1d0ered |
| Destructive foreground | #fccdcapink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #571669indigo | #571669indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Starchy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 318.889);
--foreground: oklch(0.145 0.044 319.275);
--muted: oklch(0.934 0.012 318.886);
--muted-foreground: oklch(0.488 0.037 318.862);
--popover: oklch(0.983 0.005 318.889);
--popover-foreground: oklch(0.145 0.044 319.275);
--card: oklch(0.974 0.008 318.888);
--card-foreground: oklch(0.132 0.039 319.836);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.35 0.142 317.782);
--primary-foreground: oklch(0.857 0.079 318.853);
--secondary: oklch(0.887 0.014 318.885);
--secondary-foreground: oklch(0.369 0.031 318.857);
--accent: oklch(0.887 0.014 318.885);
--accent-foreground: oklch(0.369 0.031 318.857);
--destructive: oklch(0.41 0.157 29.71);
--destructive-foreground: oklch(0.889 0.053 22.978);
--ring: oklch(0.35 0.142 317.782);
--chart-1: oklch(0.35 0.142 317.782);
--chart-2: oklch(0.887 0.014 318.885);
--chart-3: oklch(0.887 0.014 318.885);
--chart-4: oklch(0.912 0.011 318.886);
--chart-5: oklch(0.352 0.147 317.651);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.01 319.943);
--foreground: oklch(0.983 0.006 318.889);
--muted: oklch(0.187 0.018 318.85);
--muted-foreground: oklch(0.679 0.034 318.873);
--popover: oklch(0.088 0.01 319.943);
--popover-foreground: oklch(0.983 0.006 318.889);
--card: oklch(0.11 0.013 319.943);
--card-foreground: oklch(0.991 0.003 318.89);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.35 0.142 317.782);
--primary-foreground: oklch(0.857 0.079 318.853);
--secondary: oklch(0.311 0.027 318.855);
--secondary-foreground: oklch(0.837 0.021 318.881);
--accent: oklch(0.311 0.027 318.855);
--accent-foreground: oklch(0.837 0.021 318.881);
--destructive: oklch(0.601 0.235 29.755);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.35 0.142 317.782);
--chart-1: oklch(0.35 0.142 317.782);
--chart-2: oklch(0.311 0.027 318.855);
--chart-3: oklch(0.311 0.027 318.855);
--chart-4: oklch(0.34 0.031 318.854);
--chart-5: oklch(0.352 0.147 317.651);
}