Black for shadcn/ui

Black is a shadcn/ui theme built around a vivid light green primary color (#bff8cf) with vivid light teal accents (#bff8eb). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the vivid light green primary (#bff8cf) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#f7fcf9mintcream
#010402black
Foreground
#031207black
#f9fbfamintcream
Card
#f7fcf9mintcream
#010402black
Card foreground
#031207black
#f9fbfamintcream
Popover
#f7fcf9mintcream
#010402black
Popover foreground
#031207black
#f9fbfamintcream
Primary
#bff8cfpaleturquoise
#bff8cfpaleturquoise
Primary foreground
#031c0ablack
#031c0ablack
Secondary
#cbf8bflightgrey
#cbf8bflightgrey
Secondary foreground
#081c03black
#081c03black
Muted
#dde0dcgainsboro
#20231fblack
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#bff8ebpaleturquoise
#bff8ebpaleturquoise
Accent foreground
#031c16black
#031c16black
Destructive
#d03906firebrick
#e94007orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bff8cfpaleturquoise
#bff8cfpaleturquoise

Contrast

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

Light mode
Text on background18.56:1AAA
Text on card18.56:1AAA
Primary button14.91:1AAA
Secondary button15.03:1AAA
Muted text6.65:1AA
Accent15.08:1AAA
Destructive4.93:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button14.91:1AAA
Secondary button15.03:1AAA
Muted text7.72:1AAA
Accent15.08:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 155.062);
  --foreground: oklch(0.162 0.033 153.122);
  --muted: oklch(0.903 0.007 138.894);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.987 0.007 155.062);
  --popover-foreground: oklch(0.162 0.033 153.122);
  --card: oklch(0.987 0.007 155.062);
  --card-foreground: oklch(0.162 0.033 153.122);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.929 0.08 153.485);
  --primary-foreground: oklch(0.199 0.047 150.831);
  --secondary: oklch(0.933 0.089 138.947);
  --secondary-foreground: oklch(0.201 0.053 138.278);
  --accent: oklch(0.936 0.06 180.149);
  --accent-foreground: oklch(0.203 0.033 176.647);
  --destructive: oklch(0.568 0.194 35.386);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.929 0.08 153.485);
  --chart-1: oklch(0.929 0.08 153.485);
  --chart-2: oklch(0.933 0.089 138.947);
  --chart-3: oklch(0.936 0.06 180.149);
  --chart-4: oklch(0.947 0.07 138.928);
  --chart-5: oklch(0.93 0.083 153.421);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.014 154.703);
  --foreground: oklch(0.986 0.002 155.148);
  --muted: oklch(0.253 0.01 138.907);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.097 0.014 154.703);
  --popover-foreground: oklch(0.986 0.002 155.148);
  --card: oklch(0.097 0.014 154.703);
  --card-foreground: oklch(0.986 0.002 155.148);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.929 0.08 153.485);
  --primary-foreground: oklch(0.199 0.047 150.831);
  --secondary: oklch(0.933 0.089 138.947);
  --secondary-foreground: oklch(0.201 0.053 138.278);
  --accent: oklch(0.936 0.06 180.149);
  --accent-foreground: oklch(0.203 0.033 176.647);
  --destructive: oklch(0.617 0.212 35.22);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.929 0.08 153.485);
  --chart-1: oklch(0.929 0.08 153.485);
  --chart-2: oklch(0.933 0.089 138.947);
  --chart-3: oklch(0.936 0.06 180.149);
  --chart-4: oklch(0.947 0.07 138.928);
  --chart-5: oklch(0.93 0.083 153.421);
}