Adventurous for shadcn/ui

Adventurous is a shadcn/ui theme built around a vivid violet primary color (#905cfa) with muted light violet accents (#e7e4ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#905cfa) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#ffffffwhite
#050307black
Foreground
#000000black
#fcfcfdwhite
Card
#ffffffwhite
#050307black
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#050307black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#905cfamediumslateblue
#905cfamediumslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e7e4eclavender
#1e1e1fblack
Secondary foreground
#4a415ddarkslategray
#b7b6b9silver
Muted
#e4e1eagainsboro
#18151eblack
Muted foreground
#544e5fdimgray
#a5a0b1darkgray
Accent
#e7e4eclavender
#1e1e1fblack
Accent foreground
#4a415ddarkslategray
#b7b6b9silver
Destructive
#983d10saddlebrown
#e7601dchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#905cfamediumslateblue
#905cfamediumslateblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.12:1AA Large
Secondary button7.56:1AAA
Muted text6.16:1AA
Accent7.56:1AAA
Destructive6.94:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button4.12:1AA Large
Secondary button8.24:1AAA
Muted text7.10:1AAA
Accent8.24:1AAA
Destructive6.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.914 0.013 301.256);
  --muted-foreground: oklch(0.436 0.029 300.416);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.613 0.224 294.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.923 0.011 301.293);
  --secondary-foreground: oklch(0.396 0.049 299.474);
  --accent: oklch(0.923 0.011 301.293);
  --accent-foreground: oklch(0.396 0.049 299.474);
  --destructive: oklch(0.48 0.133 42.7);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.613 0.224 294.136);
  --chart-1: oklch(0.613 0.224 294.136);
  --chart-2: oklch(0.923 0.011 301.293);
  --chart-3: oklch(0.923 0.011 301.293);
  --chart-4: oklch(0.949 0.008 301.364);
  --chart-5: oklch(0.611 0.23 293.797);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.013 301.792);
  --foreground: oklch(0.991 0.002 301.466);
  --muted: oklch(0.203 0.02 299.914);
  --muted-foreground: oklch(0.715 0.026 300.915);
  --popover: oklch(0.106 0.013 301.792);
  --popover-foreground: oklch(0.991 0.002 301.466);
  --card: oklch(0.106 0.013 301.792);
  --card-foreground: oklch(0.991 0.002 301.466);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.613 0.224 294.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.236 0.002 301.33);
  --secondary-foreground: oklch(0.778 0.004 301.407);
  --accent: oklch(0.236 0.002 301.33);
  --accent-foreground: oklch(0.778 0.004 301.407);
  --destructive: oklch(0.653 0.183 42.554);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.613 0.224 294.136);
  --chart-1: oklch(0.613 0.224 294.136);
  --chart-2: oklch(0.236 0.002 301.33);
  --chart-3: oklch(0.236 0.002 301.33);
  --chart-4: oklch(0.268 0.003 301.319);
  --chart-5: oklch(0.611 0.23 293.797);
}