Solanis 2 for shadcn/ui

Solanis 2 is a shadcn/ui theme built around a vivid light yellow primary color (#ffe08a) with muted light yellow accents (#d6ceb8). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid light yellow primary (#ffe08a) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfbf7snow
#030302black
Foreground
#110e03black
#fcfbf8snow
Card
#fdfbf7snow
#030302black
Card foreground
#110e03black
#fcfbf8snow
Popover
#fdfbf7snow
#030302black
Popover foreground
#110e03black
#fcfbf8snow
Primary
#ffe08akhaki
#ffe08akhaki
Primary foreground
#574000saddlebrown
#574000saddlebrown
Secondary
#e4e1d8gainsboro
#34322ddarkslategray
Secondary foreground
#524b38darkolivegreen
#cecbc5lightgrey
Muted
#f3f3f1whitesmoke
#0e0d0cblack
Muted foreground
#615e56dimgray
#a9a69edarkgray
Accent
#d6ceb8silver
#554f3fdarkolivegreen
Accent foreground
#3a3422darkslategray
#e7e5dfgainsboro
Destructive
#700e0amaroon
#eb332dcrimson
Destructive foreground
#f8b7b4lightpink
#ffffffwhite
Border
#e3e2degainsboro
#24221eblack
Input
#e3e2degainsboro
#24221eblack
Ring
#ffe08akhaki
#ffe08akhaki

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button7.59:1AAA
Secondary button6.62:1AA
Muted text5.82:1AA
Accent7.89:1AAA
Destructive7.07:1AAA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.59:1AAA
Secondary button7.88:1AAA
Muted text7.97:1AAA
Accent6.46:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 90.166);
  --foreground: oklch(0.163 0.024 93.107);
  --muted: oklch(0.963 0.002 90.137);
  --muted-foreground: oklch(0.483 0.013 90.305);
  --popover: oklch(0.989 0.006 90.166);
  --popover-foreground: oklch(0.163 0.024 93.107);
  --card: oklch(0.989 0.006 90.166);
  --card-foreground: oklch(0.163 0.024 93.107);
  --border: oklch(0.911 0.005 90.163);
  --input: oklch(0.911 0.005 90.163);
  --primary: oklch(0.914 0.111 90.124);
  --primary-foreground: oklch(0.385 0.079 85.196);
  --secondary: oklch(0.909 0.013 90.225);
  --secondary-foreground: oklch(0.414 0.032 90.426);
  --accent: oklch(0.852 0.031 90.352);
  --accent-foreground: oklch(0.325 0.031 90.362);
  --destructive: oklch(0.351 0.132 28.537);
  --destructive-foreground: oklch(0.838 0.077 21.063);
  --ring: oklch(0.914 0.111 90.124);
  --chart-1: oklch(0.914 0.111 90.124);
  --chart-2: oklch(0.909 0.013 90.225);
  --chart-3: oklch(0.852 0.031 90.352);
  --chart-4: oklch(0.93 0.01 90.2);
  --chart-5: oklch(0.917 0.114 90.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.007 93.498);
  --foreground: oklch(0.988 0.004 90.152);
  --muted: oklch(0.16 0.003 90.263);
  --muted-foreground: oklch(0.724 0.012 90.24);
  --popover: oklch(0.097 0.007 93.498);
  --popover-foreground: oklch(0.988 0.004 90.152);
  --card: oklch(0.097 0.007 93.498);
  --card-foreground: oklch(0.988 0.004 90.152);
  --border: oklch(0.254 0.007 90.316);
  --input: oklch(0.254 0.007 90.316);
  --primary: oklch(0.914 0.111 90.124);
  --primary-foreground: oklch(0.385 0.079 85.196);
  --secondary: oklch(0.318 0.01 90.331);
  --secondary-foreground: oklch(0.844 0.009 90.2);
  --accent: oklch(0.429 0.027 90.427);
  --accent-foreground: oklch(0.922 0.009 90.191);
  --destructive: oklch(0.614 0.22 27.979);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.111 90.124);
  --chart-1: oklch(0.914 0.111 90.124);
  --chart-2: oklch(0.318 0.01 90.331);
  --chart-3: oklch(0.429 0.027 90.427);
  --chart-4: oklch(0.349 0.012 90.336);
  --chart-5: oklch(0.917 0.114 90.086);
}