Exciting for shadcn/ui

Exciting is a shadcn/ui theme built around a neutral gray primary color (#595959) with near-white accents (#e9e7e7). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#595959) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0404black
Foreground
#0d0303black
#fdfcfcsnow
Card
#fefbfbsnow
#0b0404black
Card foreground
#0d0303black
#fdfcfcsnow
Popover
#fefbfbsnow
#0b0404black
Popover foreground
#0d0303black
#fdfcfcsnow
Primary
#595959dimgray
#595959dimgray
Primary foreground
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Secondary
#e9e7e7linen
#332e2edarkslategray
Secondary foreground
#514d4ddarkslategray
#cdc6c6silver
Muted
#f3ececlinen
#130c0cblack
Muted foreground
#4b4848darkslategray
#b7b4b4silver
Accent
#e9e7e7linen
#332e2edarkslategray
Accent foreground
#514d4ddarkslategray
#cdc6c6silver
Destructive
#a83a0bsaddlebrown
#f3753ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#595959dimgray
#595959dimgray

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button6.23:1AA
Secondary button6.78:1AA
Muted text7.78:1AAA
Accent6.78:1AA
Destructive6.42:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button6.23:1AA
Secondary button7.97:1AAA
Muted text9.40:1AAA
Accent7.97:1AAA
Destructive7.42:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.212);
  --foreground: oklch(0.117 0.024 21.496);
  --muted: oklch(0.949 0.008 17.291);
  --muted-foreground: oklch(0.406 0.004 17.319);
  --popover: oklch(0.99 0.003 17.212);
  --popover-foreground: oklch(0.117 0.024 21.496);
  --card: oklch(0.99 0.003 17.212);
  --card-foreground: oklch(0.117 0.024 21.496);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.465 0 180);
  --primary-foreground: oklch(0.962 0 180);
  --secondary: oklch(0.93 0.001 17.185);
  --secondary-foreground: oklch(0.424 0.006 17.405);
  --accent: oklch(0.93 0.001 17.185);
  --accent-foreground: oklch(0.424 0.006 17.405);
  --destructive: oklch(0.5 0.153 39.233);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.465 0 180);
  --chart-1: oklch(0.465 0 180);
  --chart-2: oklch(0.93 0.001 17.185);
  --chart-3: oklch(0.93 0.001 17.185);
  --chart-4: oklch(0.954 0.001 17.175);
  --chart-5: oklch(0.46 0.007 17.41);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 19.8);
  --foreground: oklch(0.992 0.001 17.175);
  --muted: oklch(0.163 0.012 18.495);
  --muted-foreground: oklch(0.771 0.003 17.23);
  --popover: oklch(0.121 0.017 19.8);
  --popover-foreground: oklch(0.992 0.001 17.175);
  --card: oklch(0.121 0.017 19.8);
  --card-foreground: oklch(0.992 0.001 17.175);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.465 0 180);
  --primary-foreground: oklch(0.962 0 180);
  --secondary: oklch(0.306 0.008 17.624);
  --secondary-foreground: oklch(0.832 0.007 17.301);
  --accent: oklch(0.306 0.008 17.624);
  --accent-foreground: oklch(0.832 0.007 17.301);
  --destructive: oklch(0.702 0.169 42.317);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.465 0 180);
  --chart-1: oklch(0.465 0 180);
  --chart-2: oklch(0.306 0.008 17.624);
  --chart-3: oklch(0.306 0.008 17.624);
  --chart-4: oklch(0.335 0.01 17.64);
  --chart-5: oklch(0.46 0.007 17.41);
}