Story-telling is a shadcn/ui theme built around a vivid teal primary color (#0bd0a9) with vivid red accents (#d00b32). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid teal primary (#0bd0a9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #030d0bblack | #fcfdfdwhite |
| Card | #f7fdfcmintcream | #030303black |
| Card foreground | #020807black | #ffffffwhite |
| Popover | #fbfefdwhite | #000000black |
| Popover foreground | #030d0bblack | #fcfdfdwhite |
| Primary | #0bd0a9lightseagreen | #0bd0a9lightseagreen |
| Primary foreground | #010f0cblack | #010f0cblack |
| Secondary | #d00b32crimson | #d00b32crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f1f2whitesmoke | #0e0c0cblack |
| Muted foreground | #4c4345darkslategray | #bcb3b5silver |
| Accent | #d00b32crimson | #d00b32crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ba2008firebrick | #f7543btomato |
| Destructive foreground | #fff6f5lavenderblush | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0bd0a9lightseagreen | #0bd0a9lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 9.89:1 | AAA |
| Secondary button | 5.54:1 | AA |
| Muted text | 8.52:1 | AAA |
| Accent | 5.54:1 | AA |
| Destructive | 5.99:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.89:1 | AAA |
| Secondary button | 5.54:1 | AA |
| Muted text | 9.53:1 | AAA |
| Accent | 5.54:1 | AA |
| Destructive | 6.28:1 | AA |
Paste this into your globals.css to use Story-telling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 183.1);
--foreground: oklch(0.145 0.019 182.098);
--muted: oklch(0.961 0.002 3.24);
--muted-foreground: oklch(0.393 0.012 3.999);
--popover: oklch(0.994 0.003 183.1);
--popover-foreground: oklch(0.145 0.019 182.098);
--card: oklch(0.989 0.006 183.016);
--card-foreground: oklch(0.126 0.016 183.012);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.766 0.147 172.419);
--primary-foreground: oklch(0.15 0.025 181.296);
--secondary: oklch(0.545 0.216 21.37);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.545 0.216 21.37);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.508 0.191 31.295);
--destructive-foreground: oklch(0.98 0.009 27.98);
--ring: oklch(0.766 0.147 172.419);
--chart-1: oklch(0.766 0.147 172.419);
--chart-2: oklch(0.545 0.216 21.37);
--chart-3: oklch(0.545 0.216 21.37);
--chart-4: oklch(0.573 0.227 21.513);
--chart-5: oklch(0.774 0.149 172.112);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 183.143);
--muted: oklch(0.156 0.003 3.722);
--muted-foreground: oklch(0.775 0.01 3.532);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 183.143);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.766 0.147 172.419);
--primary-foreground: oklch(0.15 0.025 181.296);
--secondary: oklch(0.545 0.216 21.37);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.545 0.216 21.37);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.665 0.203 31.479);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.766 0.147 172.419);
--chart-1: oklch(0.766 0.147 172.419);
--chart-2: oklch(0.545 0.216 21.37);
--chart-3: oklch(0.545 0.216 21.37);
--chart-4: oklch(0.573 0.227 21.513);
--chart-5: oklch(0.774 0.149 172.112);
}