Scientist is a shadcn/ui theme built around a vivid deep green primary color (#326808) with vivid deep green accents (#08680e). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the vivid deep green primary (#326808) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #020401black |
| Foreground | #070c04black | #ffffffwhite |
| Card | #f9fdf7mintcream | #020401black |
| Card foreground | #070c04black | #ffffffwhite |
| Popover | #f9fdf7mintcream | #020401black |
| Popover foreground | #070c04black | #ffffffwhite |
| Primary | #326808forestgreen | #326808forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #626808olive | #626808olive |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edeeddbeige | #212211black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #08680edarkgreen | #08680edarkgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d42202firebrick | #fd4f30tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #326808forestgreen | #326808forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 6.96:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 5.21:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 7.44:1 | AAA |
| Accent | 6.97:1 | AA |
| Destructive | 3.31:1 | AA Large |
Paste this into your globals.css to use Scientist in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.009 131.168);
--foreground: oklch(0.144 0.021 129.956);
--muted: oklch(0.943 0.022 109.915);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(0.99 0.009 131.168);
--popover-foreground: oklch(0.144 0.021 129.956);
--card: oklch(0.99 0.009 131.168);
--card-foreground: oklch(0.144 0.021 129.956);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.463 0.133 136.1);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.496 0.109 113.966);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.451 0.146 143.172);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.558 0.213 31.476);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.463 0.133 136.1);
--chart-1: oklch(0.463 0.133 136.1);
--chart-2: oklch(0.496 0.109 113.966);
--chart-3: oklch(0.451 0.146 143.172);
--chart-4: oklch(0.543 0.119 114.021);
--chart-5: oklch(0.467 0.136 136.273);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.014 129.908);
--foreground: oklch(1 0 180);
--muted: oklch(0.245 0.029 111.645);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.099 0.014 129.908);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.014 129.908);
--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.463 0.133 136.1);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.496 0.109 113.966);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.451 0.146 143.172);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.668 0.215 32.383);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.463 0.133 136.1);
--chart-1: oklch(0.463 0.133 136.1);
--chart-2: oklch(0.496 0.109 113.966);
--chart-3: oklch(0.451 0.146 143.172);
--chart-4: oklch(0.543 0.119 114.021);
--chart-5: oklch(0.467 0.136 136.273);
}