Corny for shadcn/ui

Corny is a shadcn/ui theme built around a vivid violet primary color (#8342eb) with vivid green accents (#aaeb42). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#8342eb) on a neutral background (#040208).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040208black
Foreground
#07030cblack
#faf9fbghostwhite
Card
#fcfbfewhite
#040208black
Card foreground
#07030cblack
#faf9fbghostwhite
Popover
#fcfbfewhite
#040208black
Popover foreground
#07030cblack
#faf9fbghostwhite
Primary
#8342ebblueviolet
#8342ebblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#aaeb42greenyellow
#aaeb42greenyellow
Secondary foreground
#000000black
#000000black
Muted
#e8eae6linen
#171915black
Muted foreground
#40423edarkslategray
#c0c1bdsilver
Accent
#aaeb42greenyellow
#aaeb42greenyellow
Accent foreground
#000000black
#000000black
Destructive
#7f0701maroon
#ef0d01red
Destructive foreground
#ffb7b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8342ebblueviolet
#8342ebblueviolet

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button5.33:1AA
Secondary button14.69:1AAA
Muted text8.39:1AAA
Accent14.69:1AAA
Destructive6.56:1AA
Dark mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button5.33:1AA
Secondary button14.69:1AAA
Muted text9.78:1AAA
Accent14.69:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 303.581);
  --foreground: oklch(0.114 0.027 304.381);
  --muted: oklch(0.935 0.005 123.721);
  --muted-foreground: oklch(0.375 0.007 123.905);
  --popover: oklch(0.99 0.004 303.581);
  --popover-foreground: oklch(0.114 0.027 304.381);
  --card: oklch(0.99 0.004 303.581);
  --card-foreground: oklch(0.114 0.027 304.381);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.555 0.237 294.948);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.866 0.203 128.542);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.866 0.203 128.542);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.378 0.15 30.071);
  --destructive-foreground: oklch(0.845 0.084 22.391);
  --ring: oklch(0.555 0.237 294.948);
  --chart-1: oklch(0.555 0.237 294.948);
  --chart-2: oklch(0.866 0.203 128.542);
  --chart-3: oklch(0.866 0.203 128.542);
  --chart-4: oklch(0.874 0.193 128.003);
  --chart-5: oklch(0.553 0.244 294.467);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.021 304.54);
  --foreground: oklch(0.983 0.003 303.595);
  --muted: oklch(0.21 0.007 124.168);
  --muted-foreground: oklch(0.809 0.006 123.741);
  --popover: oklch(0.101 0.021 304.54);
  --popover-foreground: oklch(0.983 0.003 303.595);
  --card: oklch(0.101 0.021 304.54);
  --card-foreground: oklch(0.983 0.003 303.595);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.555 0.237 294.948);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.866 0.203 128.542);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.866 0.203 128.542);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.6 0.242 29.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.555 0.237 294.948);
  --chart-1: oklch(0.555 0.237 294.948);
  --chart-2: oklch(0.866 0.203 128.542);
  --chart-3: oklch(0.866 0.203 128.542);
  --chart-4: oklch(0.874 0.193 128.003);
  --chart-5: oklch(0.553 0.244 294.467);
}