Assembly for shadcn/ui

Assembly is a shadcn/ui theme built around a near-black primary color (#010f00) with near-black accents (#0e000f). The light mode uses a neutral background (#fbfefb). Dark mode keeps the near-black primary (#010f00) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#fbfefbwhite
#010401black
Foreground
#000000black
#ffffffwhite
Card
#f8fdf7mintcream
#030802black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fdf7mintcream
#030802black
Popover foreground
#000000black
#ffffffwhite
Primary
#010f00black
#010f00black
Primary foreground
#14d902lime
#14d902lime
Secondary
#0e000fblack
#0e000fblack
Secondary foreground
#ee44fdorchid
#ee44fdorchid
Muted
#e9d6eagainsboro
#271529black
Muted foreground
#524054darkslategray
#bdabbfsilver
Accent
#0e000fblack
#0e000fblack
Accent foreground
#ee44fdorchid
#ee44fdorchid
Destructive
#6e1c08maroon
#f15832tomato
Destructive foreground
#f9bdaelightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010f00black
#010f00black

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.31:1AAA
Primary button10.22:1AAA
Secondary button6.70:1AA
Muted text6.89:1AA
Accent6.70:1AA
Destructive7.06:1AAA
Dark mode
Text on background20.60:1AAA
Text on card20.21:1AAA
Primary button10.22:1AAA
Secondary button6.70:1AA
Muted text7.97:1AAA
Accent6.70:1AA
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 143.114);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.898 0.034 323.305);
  --muted-foreground: oklch(0.399 0.039 323.567);
  --popover: oklch(0.988 0.009 143.094);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.009 143.094);
  --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.148 0.047 140.193);
  --primary-foreground: oklch(0.768 0.259 142.231);
  --secondary: oklch(0.117 0.053 325.76);
  --secondary-foreground: oklch(0.702 0.28 324.309);
  --accent: oklch(0.117 0.053 325.76);
  --accent-foreground: oklch(0.702 0.28 324.309);
  --destructive: oklch(0.359 0.118 34.478);
  --destructive-foreground: oklch(0.849 0.073 34.46);
  --ring: oklch(0.148 0.047 140.193);
  --chart-1: oklch(0.148 0.047 140.193);
  --chart-2: oklch(0.117 0.053 325.76);
  --chart-3: oklch(0.117 0.053 325.76);
  --chart-4: oklch(0.161 0.074 324.958);
  --chart-5: oklch(0.149 0.048 140.104);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.018 141.483);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.046 323.958);
  --muted-foreground: oklch(0.764 0.033 323.333);
  --popover: oklch(0.122 0.022 141.483);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.022 141.483);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.148 0.047 140.193);
  --primary-foreground: oklch(0.768 0.259 142.231);
  --secondary: oklch(0.117 0.053 325.76);
  --secondary-foreground: oklch(0.702 0.28 324.309);
  --accent: oklch(0.117 0.053 325.76);
  --accent-foreground: oklch(0.702 0.28 324.309);
  --destructive: oklch(0.659 0.195 35.006);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.148 0.047 140.193);
  --chart-1: oklch(0.148 0.047 140.193);
  --chart-2: oklch(0.117 0.053 325.76);
  --chart-3: oklch(0.117 0.053 325.76);
  --chart-4: oklch(0.161 0.074 324.958);
  --chart-5: oklch(0.149 0.048 140.104);
}