Unwelcome for shadcn/ui

Unwelcome is a shadcn/ui theme built around a violet primary color (#854de0) with green accents (#a8e04d). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#854de0) on a violet-tinted background (#09060e).

Color palette

TokenLightDark
Background
#fcfbfewhite
#09060eblack
Foreground
#040109black
#f7f5f9whitesmoke
Card
#f9f8fcghostwhite
#0c0812black
Card foreground
#020104black
#faf9fbghostwhite
Popover
#f9f8fcghostwhite
#0c0812black
Popover foreground
#020104black
#faf9fbghostwhite
Primary
#854de0mediumslateblue
#854de0mediumslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a8e04dyellowgreen
#a8e04dyellowgreen
Secondary foreground
#000000black
#000000black
Muted
#dbe2cfgainsboro
#28301ddarkslategray
Muted foreground
#616954dimgray
#a3ab96darkgray
Accent
#a8e04dyellowgreen
#a8e04dyellowgreen
Accent foreground
#000000black
#000000black
Destructive
#9c2007firebrick
#ef310borangered
Destructive foreground
#fdded8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#854de0mediumslateblue
#854de0mediumslateblue

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card19.67:1AAA
Primary button5.06:1AA
Secondary button13.38:1AAA
Muted text4.32:1AA Large
Accent13.38:1AAA
Destructive6.33:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.94:1AAA
Primary button5.06:1AA
Secondary button13.38:1AAA
Muted text5.76:1AA
Accent13.38:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 303.595);
  --foreground: oklch(0.095 0.029 304.981);
  --muted: oklch(0.903 0.027 124.082);
  --muted-foreground: oklch(0.507 0.033 124.637);
  --popover: oklch(0.981 0.006 303.55);
  --popover-foreground: oklch(0.075 0.023 304.981);
  --card: oklch(0.981 0.006 303.55);
  --card-foreground: oklch(0.075 0.023 304.981);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.563 0.211 296.607);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.839 0.183 127.902);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.839 0.183 127.902);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.452 0.163 32.532);
  --destructive-foreground: oklch(0.925 0.035 31.163);
  --ring: oklch(0.563 0.211 296.607);
  --chart-1: oklch(0.563 0.211 296.607);
  --chart-2: oklch(0.839 0.183 127.902);
  --chart-3: oklch(0.839 0.183 127.902);
  --chart-4: oklch(0.849 0.173 127.436);
  --chart-5: oklch(0.561 0.219 296.171);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.02 303.141);
  --foreground: oklch(0.974 0.005 303.556);
  --muted: oklch(0.295 0.034 125.483);
  --muted-foreground: oklch(0.729 0.031 124.269);
  --popover: oklch(0.143 0.024 301.689);
  --popover-foreground: oklch(0.982 0.004 303.584);
  --card: oklch(0.143 0.024 301.689);
  --card-foreground: oklch(0.982 0.004 303.584);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.563 0.211 296.607);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.839 0.183 127.902);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.839 0.183 127.902);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.616 0.227 32.191);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.563 0.211 296.607);
  --chart-1: oklch(0.563 0.211 296.607);
  --chart-2: oklch(0.839 0.183 127.902);
  --chart-3: oklch(0.839 0.183 127.902);
  --chart-4: oklch(0.849 0.173 127.436);
  --chart-5: oklch(0.561 0.219 296.171);
}