Another for shadcn/ui

Another is a shadcn/ui theme built around a neutral gray primary color (#908f8e) with neutral gray accents (#8f8e90). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#908f8e) on an orange-tinted background (#0f0905).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0905black
Foreground
#080402black
#fbfaf9snow
Card
#fcfcfcsnow
#130c07black
Card foreground
#040201black
#fdfcfcsnow
Popover
#fcfcfcsnow
#130c07black
Popover foreground
#040201black
#fdfcfcsnow
Primary
#908f8egray
#908f8egray
Primary foreground
#000000black
#000000black
Secondary
#8e908fgray
#8e908fgray
Secondary foreground
#000000black
#000000black
Muted
#d6dbd8gainsboro
#242926darkslategray
Muted foreground
#515853darkslategray
#a7aeaadarkgray
Accent
#8f8e90gray
#8f8e90gray
Accent foreground
#000000black
#000000black
Destructive
#832607saddlebrown
#f56738tomato
Destructive foreground
#fccfc0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#908f8egray
#908f8egray

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.25:1AAA
Primary button6.47:1AA
Secondary button6.52:1AA
Muted text5.23:1AA
Accent6.41:1AA
Destructive6.61:1AA
Dark mode
Text on background18.95:1AAA
Text on card18.97:1AAA
Primary button6.47:1AA
Secondary button6.52:1AA
Muted text6.54:1AA
Accent6.41:1AA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.116 0.014 65.684);
  --muted: oklch(0.888 0.007 160.046);
  --muted-foreground: oklch(0.451 0.011 159.679);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.092 0.011 65.684);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.092 0.011 65.684);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.002 56.39);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.003 160.118);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.003 304.269);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.411 0.133 36.561);
  --destructive-foreground: oklch(0.889 0.055 39.26);
  --ring: oklch(0.649 0.002 56.39);
  --chart-1: oklch(0.649 0.002 56.39);
  --chart-2: oklch(0.651 0.003 160.118);
  --chart-3: oklch(0.647 0.003 304.269);
  --chart-4: oklch(0.676 0.003 160.131);
  --chart-5: oklch(0.65 0.008 56.257);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.014 60.414);
  --foreground: oklch(0.985 0.002 56.408);
  --muted: oklch(0.274 0.01 159.405);
  --muted-foreground: oklch(0.745 0.009 159.939);
  --popover: oklch(0.16 0.017 57.056);
  --popover-foreground: oklch(0.992 0.001 56.422);
  --card: oklch(0.16 0.017 57.056);
  --card-foreground: oklch(0.992 0.001 56.422);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.002 56.39);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.003 160.118);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.647 0.003 304.269);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.685 0.184 38.285);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.649 0.002 56.39);
  --chart-1: oklch(0.649 0.002 56.39);
  --chart-2: oklch(0.651 0.003 160.118);
  --chart-3: oklch(0.647 0.003 304.269);
  --chart-4: oklch(0.676 0.003 160.131);
  --chart-5: oklch(0.65 0.008 56.257);
}