Enigma for shadcn/ui

Enigma is a shadcn/ui theme built around a muted deep teal primary color (#304039) with muted deep cyan accents (#303f40). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#304039) on a teal-tinted background (#04100b).

Color palette

TokenLightDark
Background
#fbfefdwhite
#04100bblack
Foreground
#020d09black
#f6f8f8whitesmoke
Card
#fbfefdwhite
#04100bblack
Card foreground
#020d09black
#f6f8f8whitesmoke
Popover
#fbfefdwhite
#04100bblack
Popover foreground
#020d09black
#f6f8f8whitesmoke
Primary
#304039darkslategray
#304039darkslategray
Primary foreground
#cbd8d2lightgrey
#cbd8d2lightgrey
Secondary
#304032darkslategray
#304032darkslategray
Secondary foreground
#cbd8cclightgrey
#cbd8cclightgrey
Muted
#eff6efwhitesmoke
#09100ablack
Muted foreground
#495f4bdarkslategray
#a0b6a2darkgray
Accent
#303f40darkslategray
#303f40darkslategray
Accent foreground
#cbd6d8lightgrey
#cbd6d8lightgrey
Destructive
#a4160afirebrick
#de1e0dred
Destructive foreground
#fde4e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#304039darkslategray
#304039darkslategray

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.44:1AAA
Secondary button7.47:1AAA
Muted text6.30:1AA
Accent7.43:1AAA
Destructive6.43:1AA
Dark mode
Text on background18.16:1AAA
Text on card18.16:1AAA
Primary button7.44:1AAA
Secondary button7.47:1AAA
Muted text8.89:1AAA
Accent7.43:1AAA
Destructive4.89:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 169.553);
  --foreground: oklch(0.146 0.024 169.033);
  --muted: oklch(0.965 0.011 147.943);
  --muted-foreground: oklch(0.462 0.042 147.061);
  --popover: oklch(0.995 0.004 169.553);
  --popover-foreground: oklch(0.146 0.024 169.033);
  --card: oklch(0.995 0.004 169.553);
  --card-foreground: oklch(0.146 0.024 169.033);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.355 0.023 167.66);
  --primary-foreground: oklch(0.869 0.016 169.152);
  --secondary: oklch(0.353 0.032 147.056);
  --secondary-foreground: oklch(0.868 0.021 147.805);
  --accent: oklch(0.354 0.019 203.197);
  --accent-foreground: oklch(0.869 0.013 203.45);
  --destructive: oklch(0.46 0.176 30.093);
  --destructive-foreground: oklch(0.94 0.028 23.89);
  --ring: oklch(0.355 0.023 167.66);
  --chart-1: oklch(0.355 0.023 167.66);
  --chart-2: oklch(0.353 0.032 147.056);
  --chart-3: oklch(0.354 0.019 203.197);
  --chart-4: oklch(0.384 0.036 147.032);
  --chart-5: oklch(0.359 0.028 167.23);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.021 167.348);
  --foreground: oklch(0.979 0.003 169.597);
  --muted: oklch(0.164 0.017 146.962);
  --muted-foreground: oklch(0.753 0.037 147.531);
  --popover: oklch(0.159 0.021 167.348);
  --popover-foreground: oklch(0.979 0.003 169.597);
  --card: oklch(0.159 0.021 167.348);
  --card-foreground: oklch(0.979 0.003 169.597);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.355 0.023 167.66);
  --primary-foreground: oklch(0.869 0.016 169.152);
  --secondary: oklch(0.353 0.032 147.056);
  --secondary-foreground: oklch(0.868 0.021 147.805);
  --accent: oklch(0.354 0.019 203.197);
  --accent-foreground: oklch(0.869 0.013 203.45);
  --destructive: oklch(0.575 0.223 30.084);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.355 0.023 167.66);
  --chart-1: oklch(0.355 0.023 167.66);
  --chart-2: oklch(0.353 0.032 147.056);
  --chart-3: oklch(0.354 0.019 203.197);
  --chart-4: oklch(0.384 0.036 147.032);
  --chart-5: oklch(0.359 0.028 167.23);
}