Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Syntax Dark for shadcn/ui

Syntax Dark is a shadcn/ui theme built around a near-black primary color (#171717) with neutral gray accents (#3d3d3d). The light mode uses a neutral background (#171717). Dark mode keeps the near-black primary (#171717) on a neutral background (#171717).

Color palette

TokenLightDark
Background
#171717black
#171717black
Foreground
#bfbfbfsilver
#bfbfbfsilver
Card
#121212black
#121212black
Card foreground
#cccccclightgrey
#cccccclightgrey
Popover
#0f0f0fblack
#0f0f0fblack
Popover foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Primary
#171717black
#171717black
Primary foreground
#b0b0b0darkgray
#b0b0b0darkgray
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#2b2222darkslategray
#2b2222darkslategray
Muted foreground
#b09b9brosybrown
#b09b9brosybrown
Accent
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Accent foreground
#d6d6d6lightgrey
#d6d6d6lightgrey
Destructive
#eb4d42tomato
#eb4d42tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#242424darkslategray
#242424darkslategray
Input
#2b2b2bdarkslategray
#2b2b2bdarkslategray
Ring
#171717black
#171717black

Contrast

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

Light mode
Text on background9.75:1AAA
Text on card11.67:1AAA
Primary button8.27:1AAA
Secondary button8.25:1AAA
Muted text5.93:1AA
Accent7.45:1AAA
Destructive3.69:1AA Large
Dark mode
Text on background9.75:1AAA
Text on card11.67:1AAA
Primary button8.27:1AAA
Secondary button8.25:1AAA
Muted text5.93:1AA
Accent7.45:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.204 0 180);
  --foreground: oklch(0.805 0 169.695);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0.17 0 180);
  --popover-foreground: oklch(0.885 0 180);
  --card: oklch(0.182 0 164.055);
  --card-foreground: oklch(0.845 0 164.055);
  --border: oklch(0.259 0 167.471);
  --input: oklch(0.29 0 180);
  --primary: oklch(0.204 0 180);
  --primary-foreground: oklch(0.757 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.361 0 180);
  --accent-foreground: oklch(0.877 0 180);
  --destructive: oklch(0.639 0.196 28.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.204 0 180);
  --chart-1: oklch(0.204 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.361 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.203 0.002 17.337);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.204 0 180);
  --foreground: oklch(0.805 0 169.695);
  --muted: oklch(0.261 0.014 18.092);
  --muted-foreground: oklch(0.708 0.025 17.766);
  --popover: oklch(0.17 0 180);
  --popover-foreground: oklch(0.885 0 180);
  --card: oklch(0.182 0 164.055);
  --card-foreground: oklch(0.845 0 164.055);
  --border: oklch(0.259 0 167.471);
  --input: oklch(0.29 0 180);
  --primary: oklch(0.204 0 180);
  --primary-foreground: oklch(0.757 0 180);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.361 0 180);
  --accent-foreground: oklch(0.877 0 180);
  --destructive: oklch(0.639 0.196 28.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.204 0 180);
  --chart-1: oklch(0.204 0 180);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.361 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.203 0.002 17.337);
}