Striking is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #040202black |
| Foreground | #100404black | #fcf8f8snow |
| Card | #fcf7f7snow | #070303black |
| Card foreground | #0c0303black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #040202black |
| Popover foreground | #100404black | #fcf8f8snow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ffffffwhite | #ffffffwhite |
| Secondary foreground | #333333darkslategray | #333333darkslategray |
| Muted | #eceaealinen | #151313black |
| Muted foreground | #695454dimgray | #ab9696rosybrown |
| Accent | #ffffffwhite | #ffffffwhite |
| Accent foreground | #333333darkslategray | #333333darkslategray |
| Destructive | #a21611firebrick | #de1e17crimson |
| Destructive foreground | #fde9e8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 4.89:1 | AA |
Paste this into your globals.css to use Striking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 17.203);
--foreground: oklch(0.132 0.025 21.016);
--muted: oklch(0.937 0.002 17.197);
--muted-foreground: oklch(0.467 0.028 18.189);
--popover: oklch(0.991 0.003 17.203);
--popover-foreground: oklch(0.132 0.025 21.016);
--card: oklch(0.981 0.005 17.25);
--card-foreground: oklch(0.118 0.022 20.823);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.456 0.174 28.728);
--destructive-foreground: oklch(0.949 0.022 19.936);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 19.186);
--foreground: oklch(0.982 0.004 17.218);
--muted: oklch(0.191 0.003 17.447);
--muted-foreground: oklch(0.692 0.025 17.765);
--popover: oklch(0.085 0.009 19.186);
--popover-foreground: oklch(0.982 0.004 17.218);
--card: oklch(0.108 0.012 19.186);
--card-foreground: oklch(0.991 0.002 17.188);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.574 0.222 28.902);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}