Tank-top for shadcn/ui

Tank-top is a shadcn/ui theme built around a cyan primary color (#87d7ee) with green accents (#d7ee87). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#87d7ee) on a cyan-tinted background (#040d10).

Color palette

TokenLightDark
Background
#ffffffwhite
#040d10black
Foreground
#020708black
#f6f8f9whitesmoke
Card
#ffffffwhite
#040d10black
Card foreground
#020708black
#f6f8f9whitesmoke
Popover
#ffffffwhite
#040d10black
Popover foreground
#020708black
#f6f8f9whitesmoke
Primary
#87d7eeskyblue
#87d7eeskyblue
Primary foreground
#082f3adarkslategray
#082f3adarkslategray
Secondary
#ee87d7violet
#ee87d7violet
Secondary foreground
#3a082fmidnightblue
#3a082fmidnightblue
Muted
#e9dde6gainsboro
#22161fblack
Muted foreground
#625b60dimgray
#a49da3darkgray
Accent
#d7ee87khaki
#d7ee87khaki
Accent foreground
#2f3a08darkgreen
#2f3a08darkgreen
Destructive
#a83e00saddlebrown
#ff6e19darkorange
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#87d7eeskyblue
#87d7eeskyblue

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button8.80:1AAA
Secondary button7.20:1AAA
Muted text5.01:1AA
Accent9.51:1AAA
Destructive6.26:1AA
Dark mode
Text on background18.37:1AAA
Text on card18.37:1AAA
Primary button8.80:1AAA
Secondary button7.20:1AAA
Muted text6.58:1AA
Accent9.51:1AAA
Destructive7.48: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.12 0.011 211.972);
  --muted: oklch(0.91 0.017 332.902);
  --muted-foreground: oklch(0.479 0.013 333.043);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.12 0.011 211.972);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.12 0.011 211.972);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.836 0.085 217.359);
  --primary-foreground: oklch(0.285 0.046 220.545);
  --secondary: oklch(0.759 0.159 335.617);
  --secondary-foreground: oklch(0.246 0.091 338.267);
  --accent: oklch(0.91 0.131 119.102);
  --accent-foreground: oklch(0.328 0.071 121.325);
  --destructive: oklch(0.506 0.152 42.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.085 217.359);
  --chart-1: oklch(0.836 0.085 217.359);
  --chart-2: oklch(0.759 0.159 335.617);
  --chart-3: oklch(0.91 0.131 119.102);
  --chart-4: oklch(0.783 0.142 335.213);
  --chart-5: oklch(0.839 0.088 217.451);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.016 214.953);
  --foreground: oklch(0.978 0.003 216.022);
  --muted: oklch(0.22 0.024 334.219);
  --muted-foreground: oklch(0.704 0.012 332.882);
  --popover: oklch(0.153 0.016 214.953);
  --popover-foreground: oklch(0.978 0.003 216.022);
  --card: oklch(0.153 0.016 214.953);
  --card-foreground: oklch(0.978 0.003 216.022);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.836 0.085 217.359);
  --primary-foreground: oklch(0.285 0.046 220.545);
  --secondary: oklch(0.759 0.159 335.617);
  --secondary-foreground: oklch(0.246 0.091 338.267);
  --accent: oklch(0.91 0.131 119.102);
  --accent-foreground: oklch(0.328 0.071 121.325);
  --destructive: oklch(0.706 0.196 44.321);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.836 0.085 217.359);
  --chart-1: oklch(0.836 0.085 217.359);
  --chart-2: oklch(0.759 0.159 335.617);
  --chart-3: oklch(0.91 0.131 119.102);
  --chart-4: oklch(0.783 0.142 335.213);
  --chart-5: oklch(0.839 0.088 217.451);
}