Shock is a shadcn/ui theme built around a green primary color (#80bb77) with green accents (#77bb90). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#80bb77) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #051103black | #f6f9f6whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040d02black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #051103black | #f6f9f6whitesmoke |
| Primary | #80bb77darkseagreen | #80bb77darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #a2bb77darkkhaki | #a2bb77darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #dce5cdgainsboro | #2a321adarkslategray |
| Muted foreground | #5b6151dimgray | #a8ae9edarkgray |
| Accent | #77bb90darkseagreen | #77bb90darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #6b130bmaroon | #e32816crimson |
| Destructive foreground | #f7b6b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #80bb77darkseagreen | #80bb77darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 9.27:1 | AAA |
| Secondary button | 9.88:1 | AAA |
| Muted text | 4.92:1 | AA |
| Accent | 9.27:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 9.27:1 | AAA |
| Secondary button | 9.88:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 9.27:1 | AAA |
| Destructive | 4.57:1 | AA |
Paste this into your globals.css to use Shock in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.038 139.782);
--muted: oklch(0.908 0.034 123.506);
--muted-foreground: oklch(0.483 0.026 123.765);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.162 0.038 139.782);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.144 0.033 139.51);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.734 0.112 141.185);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.756 0.095 124.989);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.734 0.093 155.568);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.344 0.123 29.859);
--destructive-foreground: oklch(0.835 0.077 24.717);
--ring: oklch(0.734 0.112 141.185);
--chart-1: oklch(0.734 0.112 141.185);
--chart-2: oklch(0.756 0.095 124.989);
--chart-3: oklch(0.734 0.093 155.568);
--chart-4: oklch(0.774 0.088 124.765);
--chart-5: oklch(0.739 0.122 141.161);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.004 141.58);
--muted: oklch(0.303 0.043 125.298);
--muted-foreground: oklch(0.741 0.024 123.418);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.004 141.58);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.003 141.584);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.734 0.112 141.185);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.756 0.095 124.989);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.734 0.093 155.568);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.59 0.222 30.071);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.734 0.112 141.185);
--chart-1: oklch(0.734 0.112 141.185);
--chart-2: oklch(0.756 0.095 124.989);
--chart-3: oklch(0.734 0.093 155.568);
--chart-4: oklch(0.774 0.088 124.765);
--chart-5: oklch(0.739 0.122 141.161);
}