Extent for shadcn/ui

Extent is a shadcn/ui theme built around a near-black primary color (#0a0605) with near-black accents (#06050a). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0605) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#160803black
#ffffffwhite
Card
#ffffffwhite
#040201black
Card foreground
#160803black
#ffffffwhite
Popover
#ffffffwhite
#040201black
Popover foreground
#160803black
#ffffffwhite
Primary
#0a0605black
#0a0605black
Primary foreground
#be9183rosybrown
#be9183rosybrown
Secondary
#050a06black
#050a06black
Secondary foreground
#83be91darkseagreen
#83be91darkseagreen
Muted
#eaf5edhoneydew
#0a150cblack
Muted foreground
#4f6955dimgray
#96b09cdarkseagreen
Accent
#06050ablack
#06050ablack
Accent foreground
#9183bemediumpurple
#9183bemediumpurple
Destructive
#a8220bfirebrick
#e62f0forangered
Destructive foreground
#fdeae7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a0605black
#0a0605black

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button7.25:1AAA
Secondary button9.24:1AAA
Muted text5.39:1AA
Accent5.98:1AA
Destructive6.24:1AA
Dark mode
Text on background20.71:1AAA
Text on card20.71:1AAA
Primary button7.25:1AAA
Secondary button9.24:1AAA
Muted text7.99:1AAA
Accent5.98:1AA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.154 0.03 44.084);
  --muted: oklch(0.96 0.016 152.964);
  --muted-foreground: oklch(0.493 0.044 151.687);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.154 0.03 44.084);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.154 0.03 44.084);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.13 0.008 41.253);
  --primary-foreground: oklch(0.696 0.058 37.6);
  --secondary: oklch(0.137 0.013 152.832);
  --secondary-foreground: oklch(0.749 0.089 151.101);
  --accent: oklch(0.122 0.013 296.822);
  --accent-foreground: oklch(0.646 0.087 294.543);
  --destructive: oklch(0.476 0.172 32.013);
  --destructive-foreground: oklch(0.953 0.021 29.559);
  --ring: oklch(0.13 0.008 41.253);
  --chart-1: oklch(0.13 0.008 41.253);
  --chart-2: oklch(0.137 0.013 152.832);
  --chart-3: oklch(0.122 0.013 296.822);
  --chart-4: oklch(0.179 0.021 151.173);
  --chart-5: oklch(0.13 0.009 41.648);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.008 42.759);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.181 0.024 150.841);
  --muted-foreground: oklch(0.732 0.04 152.314);
  --popover: oklch(0.089 0.008 42.759);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.089 0.008 42.759);
  --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.13 0.008 41.253);
  --primary-foreground: oklch(0.696 0.058 37.6);
  --secondary: oklch(0.137 0.013 152.832);
  --secondary-foreground: oklch(0.749 0.089 151.101);
  --accent: oklch(0.122 0.013 296.822);
  --accent-foreground: oklch(0.646 0.087 294.543);
  --destructive: oklch(0.6 0.221 31.854);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.13 0.008 41.253);
  --chart-1: oklch(0.13 0.008 41.253);
  --chart-2: oklch(0.137 0.013 152.832);
  --chart-3: oklch(0.122 0.013 296.822);
  --chart-4: oklch(0.179 0.021 151.173);
  --chart-5: oklch(0.13 0.009 41.648);
}