Research is a shadcn/ui theme built around a muted deep blue primary color (#151719) with muted light blue accents (#c9ced4). The light mode uses a neutral background (#f8fafc). Dark mode keeps the muted deep blue primary (#151719) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #030507black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f8fafcghostwhite | #030507black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f8fafcghostwhite | #030507black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #151719black | #151719black |
| Primary foreground | #a9afb7darkgray | #a9afb7darkgray |
| Secondary | #e5e5e6gainsboro | #212326black |
| Secondary foreground | #4a4c4fdarkslategray | #b8bcc1silver |
| Muted | #ebeff4whitesmoke | #0b0f14black |
| Muted foreground | #565b61dimgray | #9ea2a9darkgray |
| Accent | #c9ced4lightgrey | #2f343ddarkslategray |
| Accent foreground | #30353bdarkslategray | #c8ced5lightgrey |
| Destructive | #812b09saddlebrown | #ef5315orangered |
| Destructive foreground | #fbd1c1peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #151719black | #151719black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 5.93:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Research in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 256.665);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.008 256.684);
--muted-foreground: oklch(0.469 0.012 256.738);
--popover: oklch(0.983 0.003 256.665);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.003 256.665);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.202 0.006 256.743);
--primary-foreground: oklch(0.751 0.014 256.718);
--secondary: oklch(0.923 0.001 256.658);
--secondary-foreground: oklch(0.416 0.005 256.699);
--accent: oklch(0.849 0.01 256.697);
--accent-foreground: oklch(0.325 0.014 256.777);
--destructive: oklch(0.413 0.126 38.788);
--destructive-foreground: oklch(0.893 0.052 42.717);
--ring: oklch(0.202 0.006 256.743);
--chart-1: oklch(0.202 0.006 256.743);
--chart-2: oklch(0.923 0.001 256.658);
--chart-3: oklch(0.849 0.01 256.697);
--chart-4: oklch(0.946 0.001 256.656);
--chart-5: oklch(0.201 0.007 256.764);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.01 250.505);
--foreground: oklch(0.992 0.002 256.658);
--muted: oklch(0.165 0.012 256.818);
--muted-foreground: oklch(0.711 0.011 256.708);
--popover: oklch(0.111 0.01 250.505);
--popover-foreground: oklch(0.992 0.002 256.658);
--card: oklch(0.111 0.01 250.505);
--card-foreground: oklch(0.992 0.002 256.658);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.202 0.006 256.743);
--primary-foreground: oklch(0.751 0.014 256.718);
--secondary: oklch(0.256 0.006 256.736);
--secondary-foreground: oklch(0.794 0.009 256.695);
--accent: oklch(0.324 0.017 256.79);
--accent-foreground: oklch(0.848 0.012 256.704);
--destructive: oklch(0.648 0.202 38.299);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.202 0.006 256.743);
--chart-1: oklch(0.202 0.006 256.743);
--chart-2: oklch(0.256 0.006 256.736);
--chart-3: oklch(0.324 0.017 256.79);
--chart-4: oklch(0.287 0.007 256.739);
--chart-5: oklch(0.201 0.007 256.764);
}