Shocking is a shadcn/ui theme built around a muted light green primary color (#eaede9) with muted light purple accents (#ece9ed). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted light green primary (#eaede9) on a green-tinted background (#080e06).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #080e06black |
| Foreground | #081603black | #fcfdfcwhite |
| Card | #f8fdf7mintcream | #080e06black |
| Card foreground | #081603black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #080e06black |
| Popover foreground | #081603black | #fcfdfcwhite |
| Primary | #eaede9linen | #eaede9linen |
| Primary foreground | #4e5a49darkolivegreen | #4e5a49darkolivegreen |
| Secondary | #ece9edlavender | #ece9edlavender |
| Secondary foreground | #56495adimgray | #56495adimgray |
| Muted | #e8e0eblavender | #1c141fblack |
| Muted foreground | #69616bdimgray | #9c949edarkgray |
| Accent | #ece9edlavender | #ece9edlavender |
| Accent foreground | #56495adimgray | #56495adimgray |
| Destructive | #bb1411firebrick | #eb302dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eaede9linen | #eaede9linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.11:1 | AAA |
| Text on card | 18.11:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 4.63:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 6.09:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Shocking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.01 137.78);
--foreground: oklch(0.182 0.043 137.022);
--muted: oklch(0.917 0.016 317.735);
--muted-foreground: oklch(0.503 0.018 317.703);
--popover: oklch(0.989 0.01 137.78);
--popover-foreground: oklch(0.182 0.043 137.022);
--card: oklch(0.989 0.01 137.78);
--card-foreground: oklch(0.182 0.043 137.022);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.942 0.006 137.774);
--primary-foreground: oklch(0.451 0.03 137.886);
--secondary: oklch(0.936 0.006 317.752);
--secondary-foreground: oklch(0.425 0.031 317.644);
--accent: oklch(0.936 0.006 317.752);
--accent-foreground: oklch(0.425 0.031 317.644);
--destructive: oklch(0.504 0.197 28.613);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.006 137.774);
--chart-1: oklch(0.942 0.006 137.774);
--chart-2: oklch(0.936 0.006 317.752);
--chart-3: oklch(0.936 0.006 317.752);
--chart-4: oklch(0.96 0.004 317.756);
--chart-5: oklch(0.942 0.008 137.778);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.02 137.014);
--foreground: oklch(0.993 0.002 137.766);
--muted: oklch(0.207 0.023 317.575);
--muted-foreground: oklch(0.676 0.017 317.722);
--popover: oklch(0.155 0.02 137.014);
--popover-foreground: oklch(0.993 0.002 137.766);
--card: oklch(0.155 0.02 137.014);
--card-foreground: oklch(0.993 0.002 137.766);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.942 0.006 137.774);
--primary-foreground: oklch(0.451 0.03 137.886);
--secondary: oklch(0.936 0.006 317.752);
--secondary-foreground: oklch(0.425 0.031 317.644);
--accent: oklch(0.936 0.006 317.752);
--accent-foreground: oklch(0.425 0.031 317.644);
--destructive: oklch(0.612 0.222 27.506);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.006 137.774);
--chart-1: oklch(0.942 0.006 137.774);
--chart-2: oklch(0.936 0.006 317.752);
--chart-3: oklch(0.936 0.006 317.752);
--chart-4: oklch(0.96 0.004 317.756);
--chart-5: oklch(0.942 0.008 137.778);
}