dark1 for shadcn/ui

dark1 is a shadcn/ui theme built around a vivid yellow primary color (#efba0b) with neutral gray accents (#cfcfce). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#efba0b) on a yellow-tinted background (#0f0d06).

Color palette

TokenLightDark
Background
#fcfbf8snow
#0f0d06black
Foreground
#110e03black
#fdfdfcwhite
Card
#faf9f5whitesmoke
#121007black
Card foreground
#0d0a02black
#ffffffwhite
Popover
#faf9f5whitesmoke
#121007black
Popover foreground
#0d0a02black
#ffffffwhite
Primary
#efba0borange
#efba0borange
Primary foreground
#2c2202black
#2c2202black
Secondary
#cfcfcelightgrey
#211e18black
Secondary foreground
#363635darkslategray
#c1bba9silver
Muted
#eeeeecwhitesmoke
#131311black
Muted foreground
#514c3edarkolivegreen
#c1bdaesilver
Accent
#cfcfcelightgrey
#211e18black
Accent foreground
#363635darkslategray
#c1bba9silver
Destructive
#7f330asaddlebrown
#ed6c26chocolate
Destructive foreground
#fad5c2peachpuff
#000000black
Border
#efeeeblinen
#1f1e19black
Input
#efeeeblinen
#1f1e19black
Ring
#efba0borange
#efba0borange

Contrast

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

Light mode
Text on background18.63:1AAA
Text on card18.76:1AAA
Primary button8.71:1AAA
Secondary button7.74:1AAA
Muted text7.36:1AAA
Accent7.74:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.04:1AAA
Primary button8.71:1AAA
Secondary button8.64:1AAA
Muted text9.91:1AAA
Accent8.64:1AAA
Destructive6.77:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 92.696);
  --foreground: oklch(0.164 0.024 95.49);
  --muted: oklch(0.948 0.003 92.684);
  --muted-foreground: oklch(0.418 0.023 93.089);
  --popover: oklch(0.982 0.006 92.716);
  --popover-foreground: oklch(0.147 0.022 97.252);
  --card: oklch(0.982 0.006 92.716);
  --card-foreground: oklch(0.147 0.022 97.252);
  --border: oklch(0.95 0.004 92.7);
  --input: oklch(0.95 0.004 92.7);
  --primary: oklch(0.813 0.165 87.541);
  --primary-foreground: oklch(0.257 0.05 91.903);
  --secondary: oklch(0.854 0.001 92.669);
  --secondary-foreground: oklch(0.332 0.001 92.7);
  --accent: oklch(0.854 0.001 92.669);
  --accent-foreground: oklch(0.332 0.001 92.7);
  --destructive: oklch(0.423 0.116 43.763);
  --destructive-foreground: oklch(0.9 0.049 50.009);
  --ring: oklch(0.813 0.165 87.541);
  --chart-1: oklch(0.813 0.165 87.541);
  --chart-2: oklch(0.854 0.001 92.669);
  --chart-3: oklch(0.854 0.001 92.669);
  --chart-4: oklch(0.877 0.001 92.667);
  --chart-5: oklch(0.821 0.167 87.131);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.016 94.57);
  --foreground: oklch(0.993 0.001 92.662);
  --muted: oklch(0.184 0.004 92.855);
  --muted-foreground: oklch(0.796 0.02 92.888);
  --popover: oklch(0.172 0.018 93.648);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.172 0.018 93.648);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.234 0.009 92.988);
  --input: oklch(0.234 0.009 92.988);
  --primary: oklch(0.813 0.165 87.541);
  --primary-foreground: oklch(0.257 0.05 91.903);
  --secondary: oklch(0.237 0.013 93.084);
  --secondary-foreground: oklch(0.793 0.026 92.943);
  --accent: oklch(0.237 0.013 93.084);
  --accent-foreground: oklch(0.793 0.026 92.943);
  --destructive: oklch(0.679 0.178 44.673);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.813 0.165 87.541);
  --chart-1: oklch(0.813 0.165 87.541);
  --chart-2: oklch(0.237 0.013 93.084);
  --chart-3: oklch(0.237 0.013 93.084);
  --chart-4: oklch(0.272 0.016 93.102);
  --chart-5: oklch(0.821 0.167 87.131);
}