Pseudoscience for shadcn/ui

Pseudoscience is a shadcn/ui theme built around a deep teal primary color (#186752) with muted light teal accents (#d8dedd). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the deep teal primary (#186752) on a teal-tinted background (#050b09).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050b09black
Foreground
#010403black
#f4faf9mintcream
Card
#fcfdfdwhite
#050b09black
Card foreground
#010403black
#f4faf9mintcream
Popover
#fcfdfdwhite
#050b09black
Popover foreground
#010403black
#f4faf9mintcream
Primary
#186752darkslategray
#186752darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eaebeblavender
#1f2d29darkslategray
Secondary foreground
#515252darkslategray
#b4cbc5silver
Muted
#d9e7e4gainsboro
#182622black
Muted foreground
#5b716bdimgray
#8ea49edarkseagreen
Accent
#d8deddgainsboro
#2f4b44darkslategray
Accent foreground
#3d4845darkslategray
#cde0dbgainsboro
Destructive
#a9140afirebrick
#f11d0ered
Destructive foreground
#fee8e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#186752darkslategray
#186752darkslategray

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.74:1AA
Secondary button6.55:1AA
Muted text4.11:1AA Large
Accent6.98:1AA
Destructive6.42:1AA
Dark mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button6.74:1AA
Secondary button8.36:1AAA
Muted text5.96:1AA
Accent6.88:1AA
Destructive4.26:1AA Large

CSS variables

Paste this into your globals.css to use Pseudoscience in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 178.725);
  --foreground: oklch(0.101 0.015 178.91);
  --muted: oklch(0.918 0.016 178.281);
  --muted-foreground: oklch(0.529 0.028 177.159);
  --popover: oklch(0.994 0.002 178.725);
  --popover-foreground: oklch(0.101 0.015 178.91);
  --card: oklch(0.994 0.002 178.725);
  --card-foreground: oklch(0.101 0.015 178.91);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.462 0.082 170.659);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.939 0 178.77);
  --secondary-foreground: oklch(0.438 0.002 178.638);
  --accent: oklch(0.896 0.006 178.574);
  --accent-foreground: oklch(0.39 0.015 177.668);
  --destructive: oklch(0.469 0.181 29.728);
  --destructive-foreground: oklch(0.949 0.023 22.503);
  --ring: oklch(0.462 0.082 170.659);
  --chart-1: oklch(0.462 0.082 170.659);
  --chart-2: oklch(0.939 0 178.77);
  --chart-3: oklch(0.896 0.006 178.574);
  --chart-4: oklch(0.962 0 178.775);
  --chart-5: oklch(0.468 0.085 170.289);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.012 178.809);
  --foreground: oklch(0.981 0.007 178.588);
  --muted: oklch(0.253 0.021 176.161);
  --muted-foreground: oklch(0.7 0.027 177.649);
  --popover: oklch(0.139 0.012 178.809);
  --popover-foreground: oklch(0.981 0.007 178.588);
  --card: oklch(0.139 0.012 178.809);
  --card-foreground: oklch(0.981 0.007 178.588);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.462 0.082 170.659);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.284 0.02 176.584);
  --secondary-foreground: oklch(0.822 0.026 177.837);
  --accent: oklch(0.389 0.036 175.685);
  --accent-foreground: oklch(0.89 0.021 178.085);
  --destructive: oklch(0.61 0.239 29.756);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.082 170.659);
  --chart-1: oklch(0.462 0.082 170.659);
  --chart-2: oklch(0.284 0.02 176.584);
  --chart-3: oklch(0.389 0.036 175.685);
  --chart-4: oklch(0.317 0.023 176.483);
  --chart-5: oklch(0.468 0.085 170.289);
}