Shocking is a shadcn/ui theme built around a deep indigo primary color (#25177d) with deep green accents (#6f7d17). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the deep indigo primary (#25177d) on an indigo-tinted background (#05030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #05030cblack |
| Foreground | #020104black | #f9f8fbghostwhite |
| Card | #fcfcfdwhite | #05030cblack |
| Card foreground | #020104black | #f9f8fbghostwhite |
| Popover | #fcfcfdwhite | #05030cblack |
| Popover foreground | #020104black | #f9f8fbghostwhite |
| Primary | #25177dmidnightblue | #25177dmidnightblue |
| Primary foreground | #d5d0f6lavender | #d5d0f6lavender |
| Secondary | #6f7d17olivedrab | #6f7d17olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e5e6e0gainsboro | #1e1f19black |
| Muted foreground | #494b3fdarkslategray | #bfc0b4silver |
| Accent | #6f7d17olivedrab | #6f7d17olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7d1808maroon | #d8290efirebrick |
| Destructive foreground | #fbc4bclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25177dmidnightblue | #25177dmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 9.48:1 | AAA |
| Secondary button | 4.54:1 | AA |
| Muted text | 7.08:1 | AAA |
| Accent | 4.54:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 9.48:1 | AAA |
| Secondary button | 4.54:1 | AA |
| Muted text | 9.00:1 | AAA |
| Accent | 4.54:1 | AA |
| Destructive | 4.96:1 | AA |
Paste this into your globals.css to use Shocking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 292.499);
--foreground: oklch(0.079 0.015 290.787);
--muted: oklch(0.923 0.008 112.712);
--muted-foreground: oklch(0.408 0.02 113.465);
--popover: oklch(0.99 0.002 292.499);
--popover-foreground: oklch(0.079 0.015 290.787);
--card: oklch(0.99 0.002 292.499);
--card-foreground: oklch(0.079 0.015 290.787);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.308 0.159 277.536);
--primary-foreground: oklch(0.873 0.053 291.369);
--secondary: oklch(0.56 0.121 117.374);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.56 0.121 117.374);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.384 0.138 31.604);
--destructive-foreground: oklch(0.867 0.064 28.489);
--ring: oklch(0.308 0.159 277.536);
--chart-1: oklch(0.308 0.159 277.536);
--chart-2: oklch(0.56 0.121 117.374);
--chart-3: oklch(0.56 0.121 117.374);
--chart-4: oklch(0.601 0.13 117.425);
--chart-5: oklch(0.307 0.164 276.586);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.024 290.342);
--foreground: oklch(0.981 0.004 292.466);
--muted: oklch(0.237 0.012 113.448);
--muted-foreground: oklch(0.804 0.017 112.943);
--popover: oklch(0.111 0.024 290.342);
--popover-foreground: oklch(0.981 0.004 292.466);
--card: oklch(0.111 0.024 290.342);
--card-foreground: oklch(0.981 0.004 292.466);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.308 0.159 277.536);
--primary-foreground: oklch(0.873 0.053 291.369);
--secondary: oklch(0.56 0.121 117.374);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.56 0.121 117.374);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.212 31.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.308 0.159 277.536);
--chart-1: oklch(0.308 0.159 277.536);
--chart-2: oklch(0.56 0.121 117.374);
--chart-3: oklch(0.56 0.121 117.374);
--chart-4: oklch(0.601 0.13 117.425);
--chart-5: oklch(0.307 0.164 276.586);
}