Vicious for shadcn/ui

Vicious is a shadcn/ui theme built around a vivid green primary color (#03bf29) with vivid teal accents (#03bf86). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#03bf29) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b05black
Foreground
#041106black
#fcfdfcwhite
Card
#fcfcfcsnow
#050f07black
Card foreground
#030d05black
#ffffffwhite
Popover
#fcfcfcsnow
#050f07black
Popover foreground
#030d05black
#ffffffwhite
Primary
#03bf29limegreen
#03bf29limegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3bbf03limegreen
#3bbf03limegreen
Secondary foreground
#000000black
#000000black
Muted
#deeed8gainsboro
#182711black
Muted foreground
#60635fdimgray
#9da09cdarkgray
Accent
#03bf86lightseagreen
#03bf86lightseagreen
Accent foreground
#000000black
#000000black
Destructive
#bb460cfirebrick
#f26e2ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03bf29limegreen
#03bf29limegreen

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.31:1AAA
Primary button2.47:1Fail
Secondary button8.63:1AAA
Muted text5.03:1AA
Accent8.79:1AAA
Destructive5.24:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.45:1AAA
Primary button2.47:1Fail
Secondary button8.63:1AAA
Muted text5.92:1AA
Accent8.79:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.159 0.031 150.226);
  --muted: oklch(0.932 0.034 136.158);
  --muted-foreground: oklch(0.495 0.007 136.073);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.142 0.027 150.865);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.142 0.027 150.865);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.698 0.226 143.991);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.705 0.226 140.015);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.712 0.153 163.25);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.548 0.162 41.264);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.698 0.226 143.991);
  --chart-1: oklch(0.698 0.226 143.991);
  --chart-2: oklch(0.705 0.226 140.015);
  --chart-3: oklch(0.712 0.153 163.25);
  --chart-4: oklch(0.746 0.24 140.065);
  --chart-5: oklch(0.706 0.23 143.876);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.021 151.192);
  --foreground: oklch(0.993 0.002 151.977);
  --muted: oklch(0.253 0.045 136.909);
  --muted-foreground: oklch(0.702 0.006 136.055);
  --popover: oklch(0.156 0.024 150.635);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.024 150.635);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.698 0.226 143.991);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.705 0.226 140.015);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.712 0.153 163.25);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.688 0.179 43.789);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.698 0.226 143.991);
  --chart-1: oklch(0.698 0.226 143.991);
  --chart-2: oklch(0.705 0.226 140.015);
  --chart-3: oklch(0.712 0.153 163.25);
  --chart-4: oklch(0.746 0.24 140.065);
  --chart-5: oklch(0.706 0.23 143.876);
}