Research for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button8.15:1AAA
Secondary button6.85:1AA
Muted text5.93:1AA
Accent7.79:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button8.15:1AAA
Secondary button8.22:1AAA
Muted text7.51:1AAA
Accent7.86:1AAA
Destructive3.55:1AA Large

CSS variables

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);
}