Striking is a shadcn/ui theme built around a blue primary color (#6ca2e5) with muted light blue accents (#c9ced4). The light mode uses a neutral background (#f7fafc). Dark mode keeps the blue primary (#6ca2e5) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafcghostwhite | #030507black |
| Foreground | #010204black | #f9fafbghostwhite |
| Card | #f7fafcghostwhite | #030507black |
| Card foreground | #010204black | #f9fafbghostwhite |
| Popover | #f7fafcghostwhite | #030507black |
| Popover foreground | #010204black | #f9fafbghostwhite |
| Primary | #6ca2e5cornflowerblue | #6ca2e5cornflowerblue |
| Primary foreground | #050e1ablack | #050e1ablack |
| Secondary | #e5e5e6gainsboro | #21262bdarkslategray |
| Secondary foreground | #4a4c4fdarkslategray | #b7bec8silver |
| Muted | #e5eaf0lavender | #0f141ablack |
| Muted foreground | #3c3f44darkslategray | #bbbfc3silver |
| Accent | #c9ced4lightgrey | #313e4edarkslategray |
| Accent foreground | #2f353cdarkslategray | #d0d8e2gainsboro |
| Destructive | #8e0f0bdarkred | #e41811red |
| Destructive foreground | #fbd1d0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6ca2e5cornflowerblue | #6ca2e5cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 8.73:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 10.01:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Striking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 253.249);
--foreground: oklch(0.088 0.01 245.543);
--muted: oklch(0.935 0.01 253.292);
--muted-foreground: oklch(0.367 0.009 253.368);
--popover: oklch(0.983 0.004 253.249);
--popover-foreground: oklch(0.088 0.01 245.543);
--card: oklch(0.983 0.004 253.249);
--card-foreground: oklch(0.088 0.01 245.543);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.703 0.114 254.131);
--primary-foreground: oklch(0.162 0.03 251.817);
--secondary: oklch(0.923 0.001 253.229);
--secondary-foreground: oklch(0.417 0.005 253.299);
--accent: oklch(0.849 0.011 253.302);
--accent-foreground: oklch(0.326 0.015 253.487);
--destructive: oklch(0.414 0.16 28.902);
--destructive-foreground: oklch(0.897 0.048 20.411);
--ring: oklch(0.703 0.114 254.131);
--chart-1: oklch(0.703 0.114 254.131);
--chart-2: oklch(0.923 0.001 253.229);
--chart-3: oklch(0.849 0.011 253.302);
--chart-4: oklch(0.946 0.001 253.226);
--chart-5: oklch(0.702 0.119 254.185);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.007 248.534);
--foreground: oklch(0.984 0.002 253.232);
--muted: oklch(0.188 0.015 253.656);
--muted-foreground: oklch(0.803 0.007 253.278);
--popover: oklch(0.113 0.007 248.534);
--popover-foreground: oklch(0.984 0.002 253.232);
--card: oklch(0.113 0.007 248.534);
--card-foreground: oklch(0.984 0.002 253.232);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.703 0.114 254.131);
--primary-foreground: oklch(0.162 0.03 251.817);
--secondary: oklch(0.265 0.012 253.487);
--secondary-foreground: oklch(0.8 0.015 253.343);
--accent: oklch(0.36 0.033 253.709);
--accent-foreground: oklch(0.879 0.016 253.336);
--destructive: oklch(0.583 0.23 29.124);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.703 0.114 254.131);
--chart-1: oklch(0.703 0.114 254.131);
--chart-2: oklch(0.265 0.012 253.487);
--chart-3: oklch(0.36 0.033 253.709);
--chart-4: oklch(0.296 0.014 253.498);
--chart-5: oklch(0.702 0.119 254.185);
}