Scientific is a shadcn/ui theme built around a deep blue primary color (#294166) with deep orange accents (#664e29). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#294166) on a blue-tinted background (#05090f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05090fblack |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #ffffffwhite | #05090fblack |
| Card foreground | #010204black | #fcfcfdwhite |
| Popover | #ffffffwhite | #05090fblack |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #294166darkslategray | #294166darkslategray |
| Primary foreground | #d3deeegainsboro | #d3deeegainsboro |
| Secondary | #664e29darkolivegreen | #664e29darkolivegreen |
| Secondary foreground | #eee3d3antiquewhite | #eee3d3antiquewhite |
| Muted | #efeeeblinen | #141210black |
| Muted foreground | #504d49darkslategray | #b6b3afdarkgray |
| Accent | #664e29darkolivegreen | #664e29darkolivegreen |
| Accent foreground | #eee3d3antiquewhite | #eee3d3antiquewhite |
| Destructive | #ce2909firebrick | #e12d09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #294166darkslategray | #294166darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 5.32:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 8.94:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 4.57:1 | AA |
Paste this into your globals.css to use Scientific in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.012 248.649);
--muted: oklch(0.948 0.003 78.302);
--muted-foreground: oklch(0.423 0.008 78.236);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.086 0.012 248.649);
--card: oklch(1 0 180);
--card-foreground: oklch(0.086 0.012 248.649);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.375 0.071 258.278);
--primary-foreground: oklch(0.897 0.024 258.363);
--secondary: oklch(0.44 0.062 76.072);
--secondary-foreground: oklch(0.92 0.024 78.206);
--accent: oklch(0.44 0.062 76.072);
--accent-foreground: oklch(0.92 0.024 78.206);
--destructive: oklch(0.551 0.203 32.233);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.375 0.071 258.278);
--chart-1: oklch(0.375 0.071 258.278);
--chart-2: oklch(0.44 0.062 76.072);
--chart-3: oklch(0.44 0.062 76.072);
--chart-4: oklch(0.472 0.068 76);
--chart-5: oklch(0.374 0.075 258.288);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.015 253.994);
--foreground: oklch(0.992 0.001 258.315);
--muted: oklch(0.184 0.005 78.204);
--muted-foreground: oklch(0.769 0.007 78.281);
--popover: oklch(0.139 0.015 253.994);
--popover-foreground: oklch(0.992 0.001 258.315);
--card: oklch(0.139 0.015 253.994);
--card-foreground: oklch(0.992 0.001 258.315);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.375 0.071 258.278);
--primary-foreground: oklch(0.897 0.024 258.363);
--secondary: oklch(0.44 0.062 76.072);
--secondary-foreground: oklch(0.92 0.024 78.206);
--accent: oklch(0.44 0.062 76.072);
--accent-foreground: oklch(0.92 0.024 78.206);
--destructive: oklch(0.59 0.218 32.164);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.375 0.071 258.278);
--chart-1: oklch(0.375 0.071 258.278);
--chart-2: oklch(0.44 0.062 76.072);
--chart-3: oklch(0.44 0.062 76.072);
--chart-4: oklch(0.472 0.068 76);
--chart-5: oklch(0.374 0.075 258.288);
}