Strident is a shadcn/ui theme built around a red primary color (#dd6e6e) with indigo accents (#6e6edd). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#dd6e6e) on a red-tinted background (#0e0606).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0e0606black |
| Foreground | #0c0303black | #f9f6f6whitesmoke |
| Card | #fdf6f6snow | #120808black |
| Card foreground | #080202black | #fbf9f9snow |
| Popover | #fefbfbsnow | #0e0606black |
| Popover foreground | #0c0303black | #f9f6f6whitesmoke |
| Primary | #dd6e6eindianred | #dd6e6eindianred |
| Primary foreground | #150505black | #150505black |
| Secondary | #6edd6elightgreen | #6edd6elightgreen |
| Secondary foreground | #051505black | #051505black |
| Muted | #eaf5eahoneydew | #0a150ablack |
| Muted foreground | #4b534bdarkslategray | #acb4acdarkgray |
| Accent | #6e6eddmediumslateblue | #6e6eddmediumslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6f0606maroon | #de0d0dred |
| Destructive foreground | #faadadlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dd6e6eindianred | #dd6e6eindianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 6.20:1 | AA |
| Secondary button | 10.97:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 4.23:1 | AA Large |
| Destructive | 6.83:1 | AA |
| Text on background | 18.63:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 6.20:1 | AA |
| Secondary button | 10.97:1 | AAA |
| Muted text | 8.79:1 | AAA |
| Accent | 4.23:1 | AA Large |
| Destructive | 5.04:1 | AA |
Paste this into your globals.css to use Strident in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.22);
--foreground: oklch(0.118 0.022 20.823);
--muted: oklch(0.959 0.019 145.428);
--muted-foreground: oklch(0.433 0.016 145.286);
--popover: oklch(0.99 0.004 17.22);
--popover-foreground: oklch(0.118 0.022 20.823);
--card: oklch(0.98 0.007 17.283);
--card-foreground: oklch(0.103 0.019 20.789);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.669 0.139 21.482);
--primary-foreground: oklch(0.143 0.031 21.755);
--secondary: oklch(0.807 0.181 143.671);
--secondary-foreground: oklch(0.174 0.04 143.6);
--accent: oklch(0.595 0.164 280.164);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.344 0.135 28.289);
--destructive-foreground: oklch(0.822 0.091 19.201);
--ring: oklch(0.669 0.139 21.482);
--chart-1: oklch(0.669 0.139 21.482);
--chart-2: oklch(0.807 0.181 143.671);
--chart-3: oklch(0.595 0.164 280.164);
--chart-4: oklch(0.821 0.167 143.863);
--chart-5: oklch(0.668 0.145 21.758);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.016 19.368);
--foreground: oklch(0.975 0.004 17.219);
--muted: oklch(0.18 0.027 144.334);
--muted-foreground: oklch(0.761 0.014 145.434);
--popover: oklch(0.136 0.016 19.368);
--popover-foreground: oklch(0.975 0.004 17.219);
--card: oklch(0.148 0.019 19.557);
--card-foreground: oklch(0.983 0.002 17.198);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.669 0.139 21.482);
--primary-foreground: oklch(0.143 0.031 21.755);
--secondary: oklch(0.807 0.181 143.671);
--secondary-foreground: oklch(0.174 0.04 143.6);
--accent: oklch(0.595 0.164 280.164);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.568 0.229 28.797);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.669 0.139 21.482);
--chart-1: oklch(0.669 0.139 21.482);
--chart-2: oklch(0.807 0.181 143.671);
--chart-3: oklch(0.595 0.164 280.164);
--chart-4: oklch(0.821 0.167 143.863);
--chart-5: oklch(0.668 0.145 21.758);
}