Story is a shadcn/ui theme built around a vivid light teal primary color (#e0fbf3) with vivid light yellow accents (#fbf3e0). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid light teal primary (#e0fbf3) on a teal-tinted background (#040c09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #040c09black |
| Foreground | #010907black | #f5faf8mintcream |
| Card | #fbfefdwhite | #040c09black |
| Card foreground | #010907black | #f5faf8mintcream |
| Popover | #fbfefdwhite | #040c09black |
| Popover foreground | #010907black | #f5faf8mintcream |
| Primary | #e0fbf3lightcyan | #e0fbf3lightcyan |
| Primary foreground | #083a2bdarkslategray | #083a2bdarkslategray |
| Secondary | #f3e0fblavender | #f3e0fblavender |
| Secondary foreground | #6e1494rebeccapurple | #6e1494rebeccapurple |
| Muted | #f3f1f4whitesmoke | #0d0b0eblack |
| Muted foreground | #58535adimgray | #aaa5acdarkgray |
| Accent | #fbf3e0oldlace | #fbf3e0oldlace |
| Accent foreground | #3a2b08black | #3a2b08black |
| Destructive | #a7420csaddlebrown | #ef681fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0fbf3lightcyan | #e0fbf3lightcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 11.63:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 12.38:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 11.63:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 8.09:1 | AAA |
| Accent | 12.38:1 | AAA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Story in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 176.557);
--foreground: oklch(0.127 0.018 176.882);
--muted: oklch(0.96 0.004 316.006);
--muted-foreground: oklch(0.45 0.013 315.921);
--popover: oklch(0.994 0.003 176.557);
--popover-foreground: oklch(0.127 0.018 176.882);
--card: oklch(0.994 0.003 176.557);
--card-foreground: oklch(0.127 0.018 176.882);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.965 0.03 175.718);
--primary-foreground: oklch(0.313 0.058 167.817);
--secondary: oklch(0.929 0.041 315.863);
--secondary-foreground: oklch(0.416 0.191 312.249);
--accent: oklch(0.964 0.026 87.536);
--accent-foreground: oklch(0.3 0.054 84.515);
--destructive: oklch(0.51 0.145 42.862);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.965 0.03 175.718);
--chart-1: oklch(0.965 0.03 175.718);
--chart-2: oklch(0.929 0.041 315.863);
--chart-3: oklch(0.964 0.026 87.536);
--chart-4: oklch(0.959 0.024 315.934);
--chart-5: oklch(0.966 0.031 175.681);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.016 176.383);
--foreground: oklch(0.981 0.006 176.468);
--muted: oklch(0.155 0.007 315.867);
--muted-foreground: oklch(0.728 0.011 315.966);
--popover: oklch(0.142 0.016 176.383);
--popover-foreground: oklch(0.981 0.006 176.468);
--card: oklch(0.142 0.016 176.383);
--card-foreground: oklch(0.981 0.006 176.468);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.965 0.03 175.718);
--primary-foreground: oklch(0.313 0.058 167.817);
--secondary: oklch(0.929 0.041 315.863);
--secondary-foreground: oklch(0.416 0.191 312.249);
--accent: oklch(0.964 0.026 87.536);
--accent-foreground: oklch(0.3 0.054 84.515);
--destructive: oklch(0.676 0.184 43.901);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.965 0.03 175.718);
--chart-1: oklch(0.965 0.03 175.718);
--chart-2: oklch(0.929 0.041 315.863);
--chart-3: oklch(0.964 0.026 87.536);
--chart-4: oklch(0.959 0.024 315.934);
--chart-5: oklch(0.966 0.031 175.681);
}