Widget for shadcn/ui

Widget is a shadcn/ui theme built around a deep orange primary color (#1b1408) with deep green accents (#191b08). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#1b1408) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#ffffffwhite
#080602black
Foreground
#090602black
#ffffffwhite
Card
#ffffffwhite
#080602black
Card foreground
#090602black
#ffffffwhite
Popover
#ffffffwhite
#080602black
Popover foreground
#090602black
#ffffffwhite
Primary
#1b1408black
#1b1408black
Primary foreground
#d8b57dburlywood
#d8b57dburlywood
Secondary
#1b0a08black
#1b0a08black
Secondary foreground
#d8887ddarksalmon
#d8887ddarksalmon
Muted
#f2e5e3mistyrose
#1c0f0dblack
Muted foreground
#494646darkslategray
#b9b7b6silver
Accent
#191b08black
#191b08black
Accent foreground
#a9b937yellowgreen
#a9b937yellowgreen
Destructive
#c93808firebrick
#dc3e09orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b1408black
#1b1408black

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button9.39:1AAA
Secondary button7.05:1AAA
Muted text7.60:1AAA
Accent8.02:1AAA
Destructive5.17:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button9.39:1AAA
Secondary button7.05:1AAA
Muted text9.36:1AAA
Accent8.02:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.017 88.114);
  --muted: oklch(0.932 0.014 26.545);
  --muted-foreground: oklch(0.398 0.003 26.498);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.017 88.114);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.124 0.017 88.114);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.197 0.025 78.693);
  --primary-foreground: oklch(0.792 0.083 78.987);
  --secondary: oklch(0.173 0.031 28.875);
  --secondary-foreground: oklch(0.707 0.101 28.005);
  --accent: oklch(0.216 0.034 114.738);
  --accent-foreground: oklch(0.749 0.15 115.92);
  --destructive: oklch(0.556 0.188 35.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.197 0.025 78.693);
  --chart-1: oklch(0.197 0.025 78.693);
  --chart-2: oklch(0.173 0.031 28.875);
  --chart-3: oklch(0.216 0.034 114.738);
  --chart-4: oklch(0.205 0.042 28.966);
  --chart-5: oklch(0.198 0.026 78.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.013 86.147);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.022 27.673);
  --muted-foreground: oklch(0.78 0.003 26.465);
  --popover: oklch(0.122 0.013 86.147);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.013 86.147);
  --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.197 0.025 78.693);
  --primary-foreground: oklch(0.792 0.083 78.987);
  --secondary: oklch(0.173 0.031 28.875);
  --secondary-foreground: oklch(0.707 0.101 28.005);
  --accent: oklch(0.216 0.034 114.738);
  --accent-foreground: oklch(0.749 0.15 115.92);
  --destructive: oklch(0.595 0.202 35.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.197 0.025 78.693);
  --chart-1: oklch(0.197 0.025 78.693);
  --chart-2: oklch(0.173 0.031 28.875);
  --chart-3: oklch(0.216 0.034 114.738);
  --chart-4: oklch(0.205 0.042 28.966);
  --chart-5: oklch(0.198 0.026 78.65);
}