Partial for shadcn/ui

Partial is a shadcn/ui theme built around a vivid deep cyan primary color (#021012) with near-white accents (#eaebeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep cyan primary (#021012) on a cyan-tinted background (#060d0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060d0eblack
Foreground
#010404black
#f5f9faghostwhite
Card
#fcfcfcsnow
#081012black
Card foreground
#000000black
#f8fbfbghostwhite
Popover
#fcfcfcsnow
#081012black
Popover foreground
#000000black
#f8fbfbghostwhite
Primary
#021012black
#021012black
Primary foreground
#15adcblightseagreen
#15adcblightseagreen
Secondary
#eaebeblavender
#191a1ablack
Secondary foreground
#4e5455darkslategray
#b0b4b5darkgray
Muted
#d7e3e5gainsboro
#1a2628darkslategray
Muted foreground
#49575adarkslategray
#a5b3b6darkgray
Accent
#eaebeblavender
#191a1ablack
Accent foreground
#4e5455darkslategray
#b0b4b5darkgray
Destructive
#622109maroon
#e94e16orangered
Destructive foreground
#f7bca6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#021012black
#021012black

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button7.26:1AAA
Secondary button6.46:1AA
Muted text5.71:1AA
Accent6.46:1AA
Destructive7.30:1AAA
Dark mode
Text on background18.48:1AAA
Text on card18.44:1AAA
Primary button7.26:1AAA
Secondary button8.34:1AAA
Muted text7.19:1AAA
Accent8.34:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.01 207.338);
  --muted: oklch(0.906 0.013 211.039);
  --muted-foreground: oklch(0.446 0.018 211.091);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.159 0.023 209.745);
  --primary-foreground: oklch(0.69 0.12 216.736);
  --secondary: oklch(0.94 0.002 211.043);
  --secondary-foreground: oklch(0.441 0.007 211.039);
  --accent: oklch(0.94 0.002 211.043);
  --accent-foreground: oklch(0.441 0.007 211.039);
  --destructive: oklch(0.344 0.1 38.592);
  --destructive-foreground: oklch(0.843 0.075 40.879);
  --ring: oklch(0.159 0.023 209.745);
  --chart-1: oklch(0.159 0.023 209.745);
  --chart-2: oklch(0.94 0.002 211.043);
  --chart-3: oklch(0.94 0.002 211.043);
  --chart-4: oklch(0.962 0.001 211.044);
  --chart-5: oklch(0.16 0.024 209.721);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.012 210.25);
  --foreground: oklch(0.979 0.004 211.04);
  --muted: oklch(0.258 0.017 211.277);
  --muted-foreground: oklch(0.756 0.016 211.044);
  --popover: oklch(0.166 0.014 211.127);
  --popover-foreground: oklch(0.986 0.003 211.042);
  --card: oklch(0.166 0.014 211.127);
  --card-foreground: oklch(0.986 0.003 211.042);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.159 0.023 209.745);
  --primary-foreground: oklch(0.69 0.12 216.736);
  --secondary: oklch(0.217 0.002 211.038);
  --secondary-foreground: oklch(0.767 0.004 211.039);
  --accent: oklch(0.217 0.002 211.038);
  --accent-foreground: oklch(0.767 0.004 211.039);
  --destructive: oklch(0.634 0.201 37.421);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.159 0.023 209.745);
  --chart-1: oklch(0.159 0.023 209.745);
  --chart-2: oklch(0.217 0.002 211.038);
  --chart-3: oklch(0.217 0.002 211.038);
  --chart-4: oklch(0.25 0.003 211.038);
  --chart-5: oklch(0.16 0.024 209.721);
}