Jupyter Theme for shadcn/ui

Jupyter Theme is a shadcn/ui theme built around a neutral gray primary color (#2b2b2b) with neutral gray accents (#cfcfcf). The light mode uses a neutral background (#f5f5f5). Dark mode keeps the neutral gray primary (#2b2b2b) on a neutral background (#f5f5f5).

Color palette

TokenLightDark
Background
#f5f5f5whitesmoke
#f5f5f5whitesmoke
Foreground
#333333darkslategray
#333333darkslategray
Card
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Card foreground
#262626darkslategray
#262626darkslategray
Popover
#edededwhitesmoke
#edededwhitesmoke
Popover foreground
#1a1a1ablack
#1a1a1ablack
Primary
#2b2b2bdarkslategray
#2b2b2bdarkslategray
Primary foreground
#c4c4c4silver
#c4c4c4silver
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#cfcfcflightgrey
#cfcfcflightgrey
Accent foreground
#363636darkslategray
#363636darkslategray
Destructive
#a01f08firebrick
#a01f08firebrick
Destructive foreground
#fde2ddmistyrose
#fde2ddmistyrose
Border
#e8e8e8lavender
#e8e8e8lavender
Input
#e0e0e0gainsboro
#e0e0e0gainsboro
Ring
#2b2b2bdarkslategray
#2b2b2bdarkslategray

Contrast

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

Light mode
Text on background11.56:1AAA
Text on card13.24:1AAA
Primary button8.07:1AAA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.72:1AAA
Destructive6.34:1AA
Dark mode
Text on background11.56:1AAA
Text on card13.24:1AAA
Primary button8.07:1AAA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.72:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.97 0 180);
  --foreground: oklch(0.321 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.947 0 180);
  --popover-foreground: oklch(0.216 0 180);
  --card: oklch(0.954 0 180);
  --card-foreground: oklch(0.27 0 180);
  --border: oklch(0.931 0 180);
  --input: oklch(0.908 0 180);
  --primary: oklch(0.29 0 180);
  --primary-foreground: oklch(0.821 0 171.87);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.853 0 168.69);
  --accent-foreground: oklch(0.331 0 180);
  --destructive: oklch(0.459 0.167 31.967);
  --destructive-foreground: oklch(0.933 0.031 29.617);
  --ring: oklch(0.29 0 180);
  --chart-1: oklch(0.29 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.853 0 168.69);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.288 0.004 17.377);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.97 0 180);
  --foreground: oklch(0.321 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.947 0 180);
  --popover-foreground: oklch(0.216 0 180);
  --card: oklch(0.954 0 180);
  --card-foreground: oklch(0.27 0 180);
  --border: oklch(0.931 0 180);
  --input: oklch(0.908 0 180);
  --primary: oklch(0.29 0 180);
  --primary-foreground: oklch(0.821 0 171.87);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.853 0 168.69);
  --accent-foreground: oklch(0.331 0 180);
  --destructive: oklch(0.459 0.167 31.967);
  --destructive-foreground: oklch(0.933 0.031 29.617);
  --ring: oklch(0.29 0 180);
  --chart-1: oklch(0.29 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.853 0 168.69);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.288 0.004 17.377);
}