Dwell for shadcn/ui

Dwell is a shadcn/ui theme built around a vivid orange primary color (#d1420a) with vivid violet accents (#420ad1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#d1420a) on an orange-tinted background (#100804).

Color palette

TokenLightDark
Background
#ffffffwhite
#100804black
Foreground
#000000black
#f9f7f6whitesmoke
Card
#fcfcfcsnow
#140a06black
Card foreground
#000000black
#fbf9f9snow
Popover
#fcfcfcsnow
#140a06black
Popover foreground
#000000black
#fbf9f9snow
Primary
#d1420achocolate
#d1420achocolate
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0ad142limegreen
#0ad142limegreen
Secondary foreground
#010f05black
#010f05black
Muted
#e3f2e8honeydew
#0d1c11black
Muted foreground
#405446darkslategray
#abbfb1darkgray
Accent
#420ad1mediumblue
#420ad1mediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a0320esaddlebrown
#ec5827chocolate
Destructive foreground
#fde9e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d1420achocolate
#d1420achocolate

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button4.64:1AA
Secondary button9.56:1AAA
Muted text7.03:1AAA
Accent9.53:1AAA
Destructive6.07:1AA
Dark mode
Text on background18.59:1AAA
Text on card18.64:1AAA
Primary button4.64:1AA
Secondary button9.56:1AAA
Muted text9.11:1AAA
Accent9.53:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.947 0.02 154.793);
  --muted-foreground: oklch(0.424 0.033 153.668);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.581 0.188 37.46);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.75 0.23 145.611);
  --secondary-foreground: oklch(0.147 0.035 153.781);
  --accent: oklch(0.424 0.253 279.052);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.477 0.151 36.804);
  --destructive-foreground: oklch(0.949 0.023 39.374);
  --ring: oklch(0.581 0.188 37.46);
  --chart-1: oklch(0.581 0.188 37.46);
  --chart-2: oklch(0.75 0.23 145.611);
  --chart-3: oklch(0.424 0.253 279.052);
  --chart-4: oklch(0.789 0.242 145.563);
  --chart-5: oklch(0.585 0.193 37.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.018 48.462);
  --foreground: oklch(0.977 0.003 43.104);
  --muted: oklch(0.208 0.028 152.305);
  --muted-foreground: oklch(0.785 0.029 154.506);
  --popover: oklch(0.156 0.021 45.871);
  --popover-foreground: oklch(0.984 0.002 43.113);
  --card: oklch(0.156 0.021 45.871);
  --card-foreground: oklch(0.984 0.002 43.113);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.581 0.188 37.46);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.75 0.23 145.611);
  --secondary-foreground: oklch(0.147 0.035 153.781);
  --accent: oklch(0.424 0.253 279.052);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.651 0.192 37.62);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0.188 37.46);
  --chart-1: oklch(0.581 0.188 37.46);
  --chart-2: oklch(0.75 0.23 145.611);
  --chart-3: oklch(0.424 0.253 279.052);
  --chart-4: oklch(0.789 0.242 145.563);
  --chart-5: oklch(0.585 0.193 37.044);
}