Wide for shadcn/ui

Wide is a shadcn/ui theme built around a yellow primary color (#e0dc90) with purple accents (#dc90e0). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#e0dc90) on a yellow-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fefefbwhite
#0a0a05black
Foreground
#0d0d02black
#f8f8f7whitesmoke
Card
#fefefbwhite
#0a0a05black
Card foreground
#0d0d02black
#f8f8f7whitesmoke
Popover
#fefefbwhite
#0a0a05black
Popover foreground
#0d0d02black
#f8f8f7whitesmoke
Primary
#e0dc90khaki
#e0dc90khaki
Primary foreground
#302e0dblack
#302e0dblack
Secondary
#90e0dcskyblue
#90e0dcskyblue
Secondary foreground
#0d302edarkslategray
#0d302edarkslategray
Muted
#e6eae9lavender
#151918black
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#dc90e0plum
#dc90e0plum
Accent foreground
#2e0d30black
#2e0d30black
Destructive
#a11b12firebrick
#e9453atomato
Destructive foreground
#fce9e8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e0dc90khaki
#e0dc90khaki

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button9.68:1AAA
Secondary button9.34:1AAA
Muted text5.33:1AA
Accent7.45:1AAA
Destructive6.70:1AA
Dark mode
Text on background18.66:1AAA
Text on card18.66:1AAA
Primary button9.68:1AAA
Secondary button9.34:1AAA
Muted text6.87:1AA
Accent7.45:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 104.046);
  --foreground: oklch(0.155 0.026 107.021);
  --muted: oklch(0.934 0.003 193.534);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.996 0.004 104.046);
  --popover-foreground: oklch(0.155 0.026 107.021);
  --card: oklch(0.996 0.004 104.046);
  --card-foreground: oklch(0.155 0.026 107.021);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.879 0.097 105.64);
  --primary-foreground: oklch(0.295 0.05 106.245);
  --secondary: oklch(0.853 0.079 191.749);
  --secondary-foreground: oklch(0.283 0.039 190.589);
  --accent: oklch(0.755 0.138 325.093);
  --accent-foreground: oklch(0.231 0.075 325.653);
  --destructive: oklch(0.458 0.169 29.496);
  --destructive-foreground: oklch(0.95 0.021 22.471);
  --ring: oklch(0.879 0.097 105.64);
  --chart-1: oklch(0.879 0.097 105.64);
  --chart-2: oklch(0.853 0.079 191.749);
  --chart-3: oklch(0.755 0.138 325.093);
  --chart-4: oklch(0.868 0.071 191.966);
  --chart-5: oklch(0.885 0.101 105.696);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.012 105.753);
  --foreground: oklch(0.979 0.002 104.008);
  --muted: oklch(0.208 0.005 193.139);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.143 0.012 105.753);
  --popover-foreground: oklch(0.979 0.002 104.008);
  --card: oklch(0.143 0.012 105.753);
  --card-foreground: oklch(0.979 0.002 104.008);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.879 0.097 105.64);
  --primary-foreground: oklch(0.295 0.05 106.245);
  --secondary: oklch(0.853 0.079 191.749);
  --secondary-foreground: oklch(0.283 0.039 190.589);
  --accent: oklch(0.755 0.138 325.093);
  --accent-foreground: oklch(0.231 0.075 325.653);
  --destructive: oklch(0.627 0.202 28.422);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.879 0.097 105.64);
  --chart-1: oklch(0.879 0.097 105.64);
  --chart-2: oklch(0.853 0.079 191.749);
  --chart-3: oklch(0.755 0.138 325.093);
  --chart-4: oklch(0.868 0.071 191.966);
  --chart-5: oklch(0.885 0.101 105.696);
}