Biology is a shadcn/ui theme built around a teal primary color (#25ad88) with muted teal accents (#aed0c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#25ad88) on a neutral background (#020806).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020806black |
| Foreground | #020d0ablack | #f6f8f8whitesmoke |
| Card | #ffffffwhite | #020806black |
| Card foreground | #020d0ablack | #f6f8f8whitesmoke |
| Popover | #ffffffwhite | #020806black |
| Popover foreground | #020d0ablack | #f6f8f8whitesmoke |
| Primary | #25ad88mediumseagreen | #25ad88mediumseagreen |
| Primary foreground | #010403black | #010403black |
| Secondary | #cfddd9lightgrey | #2f3231darkslategray |
| Secondary foreground | #334842darkslategray | #c8cbcalightgrey |
| Muted | #d7dbdagainsboro | #242827darkslategray |
| Muted foreground | #4b635cdimgray | #9cb4aedarkgray |
| Accent | #aed0c7silver | #364440darkslategray |
| Accent foreground | #1c312bdarkslategray | #d2dbd8lightgrey |
| Destructive | #b93a04firebrick | #fb7237tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25ad88mediumseagreen | #25ad88mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 4.62:1 | AA |
| Accent | 8.33:1 | AAA |
| Destructive | 5.72:1 | AA |
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.21:1 | AAA |
| Destructive | 7.55:1 | AAA |
Paste this into your globals.css to use Biology in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.022 177.69);
--muted: oklch(0.887 0.004 178.642);
--muted-foreground: oklch(0.477 0.031 176.767);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.022 177.69);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.022 177.69);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.668 0.124 169.688);
--primary-foreground: oklch(0.1 0.013 178.895);
--secondary: oklch(0.886 0.016 178.266);
--secondary-foreground: oklch(0.381 0.028 176.476);
--accent: oklch(0.831 0.039 177.371);
--accent-foreground: oklch(0.292 0.029 175.517);
--destructive: oklch(0.53 0.171 38.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.668 0.124 169.688);
--chart-1: oklch(0.668 0.124 169.688);
--chart-2: oklch(0.886 0.016 178.266);
--chart-3: oklch(0.831 0.039 177.371);
--chart-4: oklch(0.908 0.013 178.376);
--chart-5: oklch(0.676 0.128 169.298);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.015 178.886);
--foreground: oklch(0.979 0.002 178.713);
--muted: oklch(0.273 0.006 178.161);
--muted-foreground: oklch(0.751 0.028 177.659);
--popover: oklch(0.125 0.015 178.886);
--popover-foreground: oklch(0.979 0.002 178.713);
--card: oklch(0.125 0.015 178.886);
--card-foreground: oklch(0.979 0.002 178.713);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.668 0.124 169.688);
--primary-foreground: oklch(0.1 0.013 178.895);
--secondary: oklch(0.314 0.004 178.387);
--secondary-foreground: oklch(0.84 0.004 178.656);
--accent: oklch(0.373 0.018 177.278);
--accent-foreground: oklch(0.883 0.01 178.448);
--destructive: oklch(0.708 0.182 41.777);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.668 0.124 169.688);
--chart-1: oklch(0.668 0.124 169.688);
--chart-2: oklch(0.314 0.004 178.387);
--chart-3: oklch(0.373 0.018 177.278);
--chart-4: oklch(0.344 0.005 178.374);
--chart-5: oklch(0.676 0.128 169.298);
}