Dinosaur is a shadcn/ui theme built around a deep green primary color (#0c1509) with deep green accents (#09150c). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the deep green primary (#0c1509) on a neutral background (#040704).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #040704black |
| Foreground | #060b04black | #ffffffwhite |
| Card | #fcfdfbsnow | #040704black |
| Card foreground | #060b04black | #ffffffwhite |
| Popover | #fcfdfbsnow | #040704black |
| Popover foreground | #060b04black | #ffffffwhite |
| Primary | #0c1509black | #0c1509black |
| Primary foreground | #98c987darkseagreen | #98c987darkseagreen |
| Secondary | #121509black | #121509black |
| Secondary foreground | #8ca249yellowgreen | #8ca249yellowgreen |
| Muted | #f0f3e7linen | #15180cblack |
| Muted foreground | #666c56dimgray | #a3a993darkgray |
| Accent | #09150cblack | #09150cblack |
| Accent foreground | #87c998darkseagreen | #87c998darkseagreen |
| Destructive | #8d2d07saddlebrown | #f45110orangered |
| Destructive foreground | #fcd8c9bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c1509black | #0c1509black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 9.78:1 | AAA |
| Secondary button | 6.48:1 | AA |
| Muted text | 4.86:1 | AA |
| Accent | 9.62:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 9.78:1 | AAA |
| Secondary button | 6.48:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 9.62:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Dinosaur in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 137.768);
--foreground: oklch(0.142 0.022 136.306);
--muted: oklch(0.959 0.016 118.118);
--muted-foreground: oklch(0.519 0.033 118.963);
--popover: oklch(0.994 0.003 137.768);
--popover-foreground: oklch(0.142 0.022 136.306);
--card: oklch(0.994 0.003 137.768);
--card-foreground: oklch(0.142 0.022 136.306);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.183 0.026 138.085);
--primary-foreground: oklch(0.785 0.104 138.058);
--secondary: oklch(0.189 0.023 120.02);
--secondary-foreground: oklch(0.675 0.119 121.334);
--accent: oklch(0.182 0.025 151.282);
--accent-foreground: oklch(0.779 0.097 151.498);
--destructive: oklch(0.438 0.138 38.199);
--destructive-foreground: oklch(0.909 0.046 42.76);
--ring: oklch(0.183 0.026 138.085);
--chart-1: oklch(0.183 0.026 138.085);
--chart-2: oklch(0.189 0.023 120.02);
--chart-3: oklch(0.182 0.025 151.282);
--chart-4: oklch(0.232 0.032 120.388);
--chart-5: oklch(0.185 0.028 138.087);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.012 136.839);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.023 119.892);
--muted-foreground: oklch(0.724 0.031 118.577);
--popover: oklch(0.12 0.012 136.839);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.012 136.839);
--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.183 0.026 138.085);
--primary-foreground: oklch(0.785 0.104 138.058);
--secondary: oklch(0.189 0.023 120.02);
--secondary-foreground: oklch(0.675 0.119 121.334);
--accent: oklch(0.182 0.025 151.282);
--accent-foreground: oklch(0.779 0.097 151.498);
--destructive: oklch(0.654 0.209 37.748);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.183 0.026 138.085);
--chart-1: oklch(0.183 0.026 138.085);
--chart-2: oklch(0.189 0.023 120.02);
--chart-3: oklch(0.182 0.025 151.282);
--chart-4: oklch(0.232 0.032 120.388);
--chart-5: oklch(0.185 0.028 138.087);
}