Striking is a shadcn/ui theme built around a vivid orange primary color (#b35000) with vivid violet accents (#5000b3). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the vivid orange primary (#b35000) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #000000black |
| Foreground | #130c06black | #fdfcfbsnow |
| Card | #fcfaf8snow | #030303black |
| Card foreground | #100a05black | #ffffffwhite |
| Popover | #fcfaf8snow | #030303black |
| Popover foreground | #100a05black | #ffffffwhite |
| Primary | #b35000saddlebrown | #b35000saddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #00b350seagreen | #00b350seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff5f2whitesmoke | #0a100cblack |
| Muted foreground | #445a4edarkslategray | #a5bbafdarkgray |
| Accent | #5000b3indigo | #5000b3indigo |
| Accent foreground | #f1e6fflavender | #f1e6fflavender |
| Destructive | #a02c08firebrick | #da3c0borangered |
| Destructive foreground | #fde5ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b35000saddlebrown | #b35000saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.98:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 5.17:1 | AA |
| Secondary button | 2.79:1 | Fail |
| Muted text | 6.76:1 | AA |
| Accent | 8.79:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.17:1 | AA |
| Secondary button | 2.79:1 | Fail |
| Muted text | 9.46:1 | AAA |
| Accent | 8.79:1 | AAA |
| Destructive | 4.53:1 | AA |
Paste this into your globals.css to use Striking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 62.171);
--foreground: oklch(0.162 0.018 62.869);
--muted: oklch(0.966 0.008 162.417);
--muted-foreground: oklch(0.446 0.034 160.602);
--popover: oklch(0.985 0.003 62.149);
--popover-foreground: oklch(0.149 0.016 66.221);
--card: oklch(0.985 0.003 62.149);
--card-foreground: oklch(0.149 0.016 66.221);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.549 0.147 48.929);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.669 0.186 149.643);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.398 0.224 290.588);
--accent-foreground: oklch(0.94 0.036 305.938);
--destructive: oklch(0.47 0.158 35.359);
--destructive-foreground: oklch(0.939 0.029 37.628);
--ring: oklch(0.549 0.147 48.929);
--chart-1: oklch(0.549 0.147 48.929);
--chart-2: oklch(0.669 0.186 149.643);
--chart-3: oklch(0.398 0.224 290.588);
--chart-4: oklch(0.711 0.198 149.531);
--chart-5: oklch(0.552 0.151 48.405);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 62.171);
--muted: oklch(0.164 0.012 160.683);
--muted-foreground: oklch(0.772 0.03 161.632);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--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.549 0.147 48.929);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.669 0.186 149.643);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.398 0.224 290.588);
--accent-foreground: oklch(0.94 0.036 305.938);
--destructive: oklch(0.589 0.201 34.97);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.549 0.147 48.929);
--chart-1: oklch(0.549 0.147 48.929);
--chart-2: oklch(0.669 0.186 149.643);
--chart-3: oklch(0.398 0.224 290.588);
--chart-4: oklch(0.711 0.198 149.531);
--chart-5: oklch(0.552 0.151 48.405);
}