Cyst for shadcn/ui

Cyst is a shadcn/ui theme built around a vivid violet primary color (#8c1aef) with vivid green accents (#7eef1a). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid violet primary (#8c1aef) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#000000black
Foreground
#030104black
#faf9fbghostwhite
Card
#f8f3fcghostwhite
#030303black
Card foreground
#000000black
#fcfcfdwhite
Popover
#faf7fdghostwhite
#000000black
Popover foreground
#030104black
#faf9fbghostwhite
Primary
#8c1aefblueviolet
#8c1aefblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7eef1alawngreen
#7eef1alawngreen
Secondary foreground
#1d3904darkgreen
#1d3904darkgreen
Muted
#edf1ealinen
#12150eblack
Muted foreground
#58654edarkolivegreen
#a5b19adarkgray
Accent
#7eef1alawngreen
#7eef1alawngreen
Accent foreground
#1d3904darkgreen
#1d3904darkgreen
Destructive
#813109saddlebrown
#f17537tomato
Destructive foreground
#fbd4c1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8c1aefblueviolet
#8c1aefblueviolet

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.19:1AAA
Primary button5.98:1AA
Secondary button8.69:1AAA
Muted text5.40:1AA
Accent8.69:1AAA
Destructive6.44:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.16:1AAA
Primary button5.98:1AA
Secondary button8.69:1AAA
Muted text8.20:1AAA
Accent8.69:1AAA
Destructive7.33:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 309.7);
  --foreground: oklch(0.082 0.016 311.298);
  --muted: oklch(0.952 0.01 129.888);
  --muted-foreground: oklch(0.489 0.039 130.622);
  --popover: oklch(0.98 0.008 309.7);
  --popover-foreground: oklch(0.082 0.016 311.298);
  --card: oklch(0.97 0.013 309.657);
  --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.537 0.273 300.155);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.851 0.245 135.508);
  --secondary-foreground: oklch(0.311 0.085 134.199);
  --accent: oklch(0.851 0.245 135.508);
  --accent-foreground: oklch(0.311 0.085 134.199);
  --destructive: oklch(0.422 0.12 42.191);
  --destructive-foreground: oklch(0.898 0.051 48.136);
  --ring: oklch(0.537 0.273 300.155);
  --chart-1: oklch(0.537 0.273 300.155);
  --chart-2: oklch(0.851 0.245 135.508);
  --chart-3: oklch(0.851 0.245 135.508);
  --chart-4: oklch(0.858 0.238 134.846);
  --chart-5: oklch(0.539 0.278 299.643);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 309.752);
  --muted: oklch(0.19 0.014 130.578);
  --muted-foreground: oklch(0.745 0.035 130.27);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 309.752);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.002 309.769);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.537 0.273 300.155);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.851 0.245 135.508);
  --secondary-foreground: oklch(0.311 0.085 134.199);
  --accent: oklch(0.851 0.245 135.508);
  --accent-foreground: oklch(0.311 0.085 134.199);
  --destructive: oklch(0.698 0.17 44.6);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.537 0.273 300.155);
  --chart-1: oklch(0.537 0.273 300.155);
  --chart-2: oklch(0.851 0.245 135.508);
  --chart-3: oklch(0.851 0.245 135.508);
  --chart-4: oklch(0.858 0.238 134.846);
  --chart-5: oklch(0.539 0.278 299.643);
}