Shiny is a shadcn/ui theme built around a deep green primary color (#060f09) with deep teal accents (#060f0d). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#060f09) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #030704black |
| Foreground | #020e05black | #ffffffwhite |
| Card | #f8fcf9mintcream | #030704black |
| Card foreground | #020e05black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #030704black |
| Popover foreground | #020e05black | #ffffffwhite |
| Primary | #060f09black | #060f09black |
| Primary foreground | #3fa25emediumseagreen | #3fa25emediumseagreen |
| Secondary | #070f06black | #070f06black |
| Secondary foreground | #51a23folivedrab | #51a23folivedrab |
| Muted | #d2e3cflightgrey | #20301cdarkslategray |
| Muted foreground | #3d4a3adarkslategray | #b8c5b5silver |
| Accent | #060f0dblack | #060f0dblack |
| Accent foreground | #3fa28fmediumseagreen | #3fa28fmediumseagreen |
| Destructive | #c31613firebrick | #e31a16crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060f09black | #060f09black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.96:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 6.10:1 | AA |
| Muted text | 6.97:1 | AA |
| Accent | 6.27:1 | AA |
| Destructive | 6.09:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 6.10:1 | AA |
| Muted text | 7.77:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Shiny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 156.467);
--foreground: oklch(0.145 0.03 155.5);
--muted: oklch(0.897 0.032 139.959);
--muted-foreground: oklch(0.394 0.031 139.927);
--popover: oklch(0.987 0.005 156.467);
--popover-foreground: oklch(0.145 0.03 155.5);
--card: oklch(0.987 0.005 156.467);
--card-foreground: oklch(0.145 0.03 155.5);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.155 0.02 155.277);
--primary-foreground: oklch(0.636 0.137 150.953);
--secondary: oklch(0.156 0.023 138.975);
--secondary-foreground: oklch(0.638 0.157 140.11);
--accent: oklch(0.157 0.015 182.392);
--accent-foreground: oklch(0.648 0.096 178.92);
--destructive: oklch(0.521 0.203 28.579);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.155 0.02 155.277);
--chart-1: oklch(0.155 0.02 155.277);
--chart-2: oklch(0.156 0.023 138.975);
--chart-3: oklch(0.157 0.015 182.392);
--chart-4: oklch(0.199 0.035 139.933);
--chart-5: oklch(0.156 0.021 155.194);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.013 156.271);
--foreground: oklch(1 0 180);
--muted: oklch(0.289 0.041 139.91);
--muted-foreground: oklch(0.808 0.026 139.962);
--popover: oklch(0.121 0.013 156.271);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.013 156.271);
--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.155 0.02 155.277);
--primary-foreground: oklch(0.636 0.137 150.953);
--secondary: oklch(0.156 0.023 138.975);
--secondary-foreground: oklch(0.638 0.157 140.11);
--accent: oklch(0.157 0.015 182.392);
--accent-foreground: oklch(0.648 0.096 178.92);
--destructive: oklch(0.584 0.229 28.666);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.155 0.02 155.277);
--chart-1: oklch(0.155 0.02 155.277);
--chart-2: oklch(0.156 0.023 138.975);
--chart-3: oklch(0.157 0.015 182.392);
--chart-4: oklch(0.199 0.035 139.933);
--chart-5: oklch(0.156 0.021 155.194);
}