Infamous for shadcn/ui

Infamous is a shadcn/ui theme built around a near-black primary color (#1b1e1a) with near-black accents (#1a1e1b). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the near-black primary (#1b1e1a) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#040802black
Foreground
#050d02black
#ffffffwhite
Card
#f5fcf2honeydew
#060c04black
Card foreground
#040901black
#ffffffwhite
Popover
#f8fdf7mintcream
#040802black
Popover foreground
#050d02black
#ffffffwhite
Primary
#1b1e1ablack
#1b1e1ablack
Primary foreground
#b3b9b1darkgray
#b3b9b1darkgray
Secondary
#1d1e1ablack
#1d1e1ablack
Secondary foreground
#b8b9b1silver
#b8b9b1silver
Muted
#f1f2eewhitesmoke
#10110dblack
Muted foreground
#656959dimgray
#a2a696darkgray
Accent
#1a1e1bblack
#1a1e1bblack
Accent foreground
#b1b9b3darkgray
#b1b9b3darkgray
Destructive
#863309saddlebrown
#e05510chocolate
Destructive foreground
#fbd8c6bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b1e1ablack
#1b1e1ablack

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.27:1AAA
Primary button8.42:1AAA
Secondary button8.48:1AAA
Muted text5.01:1AA
Accent8.40:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.19:1AAA
Text on card19.81:1AAA
Primary button8.42:1AAA
Secondary button8.48:1AAA
Muted text7.59:1AAA
Accent8.40:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.01 136.639);
  --foreground: oklch(0.146 0.031 134.732);
  --muted: oklch(0.958 0.005 116.432);
  --muted-foreground: oklch(0.512 0.024 117.188);
  --popover: oklch(0.989 0.01 136.639);
  --popover-foreground: oklch(0.146 0.031 134.732);
  --card: oklch(0.984 0.015 136.655);
  --card-foreground: oklch(0.127 0.027 134.506);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.23 0.007 136.706);
  --primary-foreground: oklch(0.78 0.014 136.664);
  --secondary: oklch(0.232 0.006 116.834);
  --secondary-foreground: oklch(0.783 0.013 116.621);
  --accent: oklch(0.229 0.007 152.122);
  --accent-foreground: oklch(0.778 0.014 152.336);
  --destructive: oklch(0.432 0.124 42.105);
  --destructive-foreground: oklch(0.906 0.046 48.185);
  --ring: oklch(0.23 0.007 136.706);
  --chart-1: oklch(0.23 0.007 136.706);
  --chart-2: oklch(0.232 0.006 116.834);
  --chart-3: oklch(0.229 0.007 152.122);
  --chart-4: oklch(0.265 0.008 116.871);
  --chart-5: oklch(0.232 0.011 136.755);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.02 135.065);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.176 0.008 117.164);
  --muted-foreground: oklch(0.717 0.022 116.894);
  --popover: oklch(0.124 0.02 135.065);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.023 135.146);
  --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.23 0.007 136.706);
  --primary-foreground: oklch(0.78 0.014 136.664);
  --secondary: oklch(0.232 0.006 116.834);
  --secondary-foreground: oklch(0.783 0.013 116.621);
  --accent: oklch(0.229 0.007 152.122);
  --accent-foreground: oklch(0.778 0.014 152.336);
  --destructive: oklch(0.627 0.187 41.115);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.23 0.007 136.706);
  --chart-1: oklch(0.23 0.007 136.706);
  --chart-2: oklch(0.232 0.006 116.834);
  --chart-3: oklch(0.229 0.007 152.122);
  --chart-4: oklch(0.265 0.008 116.871);
  --chart-5: oklch(0.232 0.011 136.755);
}