Armrest for shadcn/ui

Armrest is a shadcn/ui theme built around a vivid yellow primary color (#ffca57) with vivid violet accents (#ca57ff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#ffca57) on a yellow-tinted background (#100c04).

Color palette

TokenLightDark
Background
#ffffffwhite
#100c04black
Foreground
#040301black
#f8f8f6whitesmoke
Card
#fcfcfcsnow
#140f06black
Card foreground
#000000black
#fbfaf9snow
Popover
#fcfcfcsnow
#140f06black
Popover foreground
#000000black
#fbfaf9snow
Primary
#ffca57sandybrown
#ffca57sandybrown
Primary foreground
#241800black
#241800black
Secondary
#57ffcaturquoise
#57ffcaturquoise
Secondary foreground
#002418black
#002418black
Muted
#eceeedwhitesmoke
#111312black
Muted foreground
#4c615bdimgray
#9eb3acdarkgray
Accent
#ca57ffmediumorchid
#ca57ffmediumorchid
Accent foreground
#000000black
#000000black
Destructive
#ad3210firebrick
#ec5a32tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffca57sandybrown
#ffca57sandybrown

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button11.45:1AAA
Secondary button13.08:1AAA
Muted text5.69:1AA
Accent6.30:1AA
Destructive6.49:1AA
Dark mode
Text on background18.32:1AAA
Text on card18.27:1AAA
Primary button11.45:1AAA
Secondary button13.08:1AAA
Muted text8.44:1AAA
Accent6.30:1AA
Destructive6.07:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.013 92.327);
  --muted: oklch(0.948 0.002 175.553);
  --muted-foreground: oklch(0.474 0.027 173.81);
  --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.865 0.143 83.773);
  --primary-foreground: oklch(0.219 0.045 85.488);
  --secondary: oklch(0.9 0.158 167.884);
  --secondary-foreground: oklch(0.23 0.047 167.527);
  --accent: oklch(0.673 0.248 313.118);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.5 0.164 35.06);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.865 0.143 83.773);
  --chart-1: oklch(0.865 0.143 83.773);
  --chart-2: oklch(0.9 0.158 167.884);
  --chart-3: oklch(0.673 0.248 313.118);
  --chart-4: oklch(0.905 0.148 168.833);
  --chart-5: oklch(0.869 0.146 83.596);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.019 88.579);
  --foreground: oklch(0.978 0.002 86.015);
  --muted: oklch(0.183 0.003 175.121);
  --muted-foreground: oklch(0.748 0.025 174.612);
  --popover: oklch(0.173 0.021 86.946);
  --popover-foreground: oklch(0.986 0.001 86.012);
  --card: oklch(0.173 0.021 86.946);
  --card-foreground: oklch(0.986 0.001 86.012);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.865 0.143 83.773);
  --primary-foreground: oklch(0.219 0.045 85.488);
  --secondary: oklch(0.9 0.158 167.884);
  --secondary-foreground: oklch(0.23 0.047 167.527);
  --accent: oklch(0.673 0.248 313.118);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.654 0.189 36.004);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.865 0.143 83.773);
  --chart-1: oklch(0.865 0.143 83.773);
  --chart-2: oklch(0.9 0.158 167.884);
  --chart-3: oklch(0.673 0.248 313.118);
  --chart-4: oklch(0.905 0.148 168.833);
  --chart-5: oklch(0.869 0.146 83.596);
}