Parallel for shadcn/ui

Parallel is a shadcn/ui theme built around a near-black primary color (#171618) with near-black accents (#171816). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#171618) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#ffffffwhite
#050208black
Foreground
#000000black
#fcfcfdwhite
Card
#ffffffwhite
#050208black
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#050208black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#171618black
#171618black
Primary foreground
#b0aeb2darkgray
#b0aeb2darkgray
Secondary
#171816black
#171816black
Secondary foreground
#b0b2aedarkgray
#b0b2aedarkgray
Muted
#edf2e9linen
#12160dblack
Muted foreground
#64675fdimgray
#9ca098darkgray
Accent
#171816black
#171816black
Accent foreground
#b0b2aedarkgray
#b0b2aedarkgray
Destructive
#87380dsaddlebrown
#eb6924chocolate
Destructive foreground
#fadcccbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#171618black
#171618black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.18:1AAA
Secondary button8.35:1AAA
Muted text5.05:1AA
Accent8.35:1AAA
Destructive6.22:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button8.18:1AAA
Secondary button8.35:1AAA
Muted text6.87:1AA
Accent8.35:1AAA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.954 0.013 127.275);
  --muted-foreground: oklch(0.51 0.013 127.431);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.203 0.003 306.938);
  --primary-foreground: oklch(0.753 0.007 306.996);
  --secondary: oklch(0.206 0.003 127.282);
  --secondary-foreground: oklch(0.761 0.007 127.226);
  --accent: oklch(0.206 0.003 127.282);
  --accent-foreground: oklch(0.761 0.007 127.226);
  --destructive: oklch(0.443 0.121 43.925);
  --destructive-foreground: oklch(0.915 0.04 50.128);
  --ring: oklch(0.203 0.003 306.938);
  --chart-1: oklch(0.203 0.003 306.938);
  --chart-2: oklch(0.206 0.003 127.282);
  --chart-3: oklch(0.206 0.003 127.282);
  --chart-4: oklch(0.24 0.004 127.3);
  --chart-5: oklch(0.201 0.006 306.762);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.021 308.454);
  --foreground: oklch(0.991 0.002 307.083);
  --muted: oklch(0.194 0.018 128.348);
  --muted-foreground: oklch(0.699 0.012 127.326);
  --popover: oklch(0.102 0.021 308.454);
  --popover-foreground: oklch(0.991 0.002 307.083);
  --card: oklch(0.102 0.021 308.454);
  --card-foreground: oklch(0.991 0.002 307.083);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.203 0.003 306.938);
  --primary-foreground: oklch(0.753 0.007 306.996);
  --secondary: oklch(0.206 0.003 127.282);
  --secondary-foreground: oklch(0.761 0.007 127.226);
  --accent: oklch(0.206 0.003 127.282);
  --accent-foreground: oklch(0.761 0.007 127.226);
  --destructive: oklch(0.671 0.178 44.498);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.203 0.003 306.938);
  --chart-1: oklch(0.203 0.003 306.938);
  --chart-2: oklch(0.206 0.003 127.282);
  --chart-3: oklch(0.206 0.003 127.282);
  --chart-4: oklch(0.24 0.004 127.3);
  --chart-5: oklch(0.201 0.006 306.762);
}