Shocked is a shadcn/ui theme built around a vivid light purple primary color (#f9aeed) with vivid light green accents (#aef9bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light purple primary (#f9aeed) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #f8f7f8whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #f8f7f8whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #f8f7f8whitesmoke |
| Primary | #f9aeedplum | #f9aeedplum |
| Primary foreground | #6d085cpurple | #6d085cpurple |
| Secondary | #aef9bbpalegreen | #aef9bbpalegreen |
| Secondary foreground | #010e03black | #010e03black |
| Muted | #cee4d1lightgrey | #1b311fdarkslategray |
| Muted foreground | #4a5e4ddarkslategray | #a1b5a4darkgray |
| Accent | #aef9bbpalegreen | #aef9bbpalegreen |
| Accent foreground | #010e03black | #010e03black |
| Destructive | #630e08maroon | #de2012crimson |
| Destructive foreground | #f8aba5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9aeedplum | #f9aeedplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 16.01:1 | AAA |
| Muted text | 5.20:1 | AA |
| Accent | 16.01:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 16.01:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 16.01:1 | AAA |
| Destructive | 4.87:1 | AA |
Paste this into your globals.css to use Shocked in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.897 0.034 150.285);
--muted-foreground: oklch(0.461 0.037 149.673);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.842 0.117 332.589);
--primary-foreground: oklch(0.369 0.155 336.903);
--secondary: oklch(0.917 0.112 148.983);
--secondary-foreground: oklch(0.146 0.036 149.026);
--accent: oklch(0.917 0.112 148.983);
--accent-foreground: oklch(0.146 0.036 149.026);
--destructive: oklch(0.324 0.119 29.453);
--destructive-foreground: oklch(0.813 0.092 23.809);
--ring: oklch(0.842 0.117 332.589);
--chart-1: oklch(0.842 0.117 332.589);
--chart-2: oklch(0.917 0.112 148.983);
--chart-3: oklch(0.917 0.112 148.983);
--chart-4: oklch(0.93 0.093 149.354);
--chart-5: oklch(0.841 0.121 332.647);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 330.856);
--muted: oklch(0.29 0.044 148.473);
--muted-foreground: oklch(0.753 0.033 150.212);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 330.856);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 330.856);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.842 0.117 332.589);
--primary-foreground: oklch(0.369 0.155 336.903);
--secondary: oklch(0.917 0.112 148.983);
--secondary-foreground: oklch(0.146 0.036 149.026);
--accent: oklch(0.917 0.112 148.983);
--accent-foreground: oklch(0.146 0.036 149.026);
--destructive: oklch(0.575 0.222 29.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.842 0.117 332.589);
--chart-1: oklch(0.842 0.117 332.589);
--chart-2: oklch(0.917 0.112 148.983);
--chart-3: oklch(0.917 0.112 148.983);
--chart-4: oklch(0.93 0.093 149.354);
--chart-5: oklch(0.841 0.121 332.647);
}