Tank-top for shadcn/ui

Tank-top is a shadcn/ui theme built around a vivid green primary color (#63ec13) with vivid violet accents (#9c13ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#63ec13) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040802black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#040802black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040802black
#ffffffwhite
Primary
#63ec13lawngreen
#63ec13lawngreen
Primary foreground
#142f04black
#142f04black
Secondary
#9c13ecblueviolet
#9c13ecblueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dccee4gainsboro
#291b31darkslategray
Muted foreground
#574a5edimgray
#aea1b5darkgray
Accent
#9c13ecblueviolet
#9c13ecblueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#aa3503firebrick
#fb6e32tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#63ec13lawngreen
#63ec13lawngreen

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button9.40:1AAA
Secondary button5.63:1AA
Muted text5.47:1AA
Accent5.63:1AA
Destructive6.50:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.40:1AAA
Secondary button5.63:1AA
Muted text6.59:1AA
Accent5.63:1AA
Destructive7.38:1AAA

CSS variables

Paste this into your globals.css to use Tank-top in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.02 132.086);
  --muted: oklch(0.868 0.034 313.367);
  --muted-foreground: oklch(0.43 0.036 313.084);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.02 132.086);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.02 132.086);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.833 0.255 138.288);
  --primary-foreground: oklch(0.274 0.076 136.393);
  --secondary: oklch(0.552 0.276 306.523);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.552 0.276 306.523);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.498 0.16 38.242);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.833 0.255 138.288);
  --chart-1: oklch(0.833 0.255 138.288);
  --chart-2: oklch(0.552 0.276 306.523);
  --chart-3: oklch(0.552 0.276 306.523);
  --chart-4: oklch(0.567 0.271 307.716);
  --chart-5: oklch(0.842 0.26 138.475);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.045 312.454);
  --muted-foreground: oklch(0.725 0.032 313.334);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.833 0.255 138.288);
  --primary-foreground: oklch(0.274 0.076 136.393);
  --secondary: oklch(0.552 0.276 306.523);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.552 0.276 306.523);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.703 0.186 41.483);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.833 0.255 138.288);
  --chart-1: oklch(0.833 0.255 138.288);
  --chart-2: oklch(0.552 0.276 306.523);
  --chart-3: oklch(0.552 0.276 306.523);
  --chart-4: oklch(0.567 0.271 307.716);
  --chart-5: oklch(0.842 0.26 138.475);
}