Tick for shadcn/ui

Tick is a shadcn/ui theme built around a vivid deep indigo primary color (#130d77) with vivid deep green accents (#0d7713). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep indigo primary (#130d77) on an indigo-tinted background (#050410).

Color palette

TokenLightDark
Background
#ffffffwhite
#050410black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#050410black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#050410black
Popover foreground
#000000black
#ffffffwhite
Primary
#130d77midnightblue
#130d77midnightblue
Primary foreground
#c2bff8lightsteelblue
#c2bff8lightsteelblue
Secondary
#77130dmaroon
#77130dmaroon
Secondary foreground
#f8c2bflightpink
#f8c2bflightpink
Muted
#e7cccblightgrey
#341a18black
Muted foreground
#655453dimgray
#ac9b9adarkgray
Accent
#0d7713green
#0d7713green
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#812b09saddlebrown
#f16832tomato
Destructive foreground
#fbd1c1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#130d77midnightblue
#130d77midnightblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.93:1AAA
Secondary button7.13:1AAA
Muted text4.71:1AA
Accent5.70:1AA
Destructive6.58:1AA
Dark mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button8.93:1AAA
Secondary button7.13:1AAA
Muted text6.06:1AA
Accent5.70:1AA
Destructive6.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.867 0.03 21.358);
  --muted-foreground: oklch(0.461 0.023 21.585);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.278 0.165 270.32);
  --primary-foreground: oklch(0.826 0.08 286.803);
  --secondary: oklch(0.37 0.136 28.851);
  --secondary-foreground: oklch(0.86 0.063 21.935);
  --accent: oklch(0.496 0.16 143.081);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.413 0.126 38.788);
  --destructive-foreground: oklch(0.893 0.052 42.717);
  --ring: oklch(0.278 0.165 270.32);
  --chart-1: oklch(0.278 0.165 270.32);
  --chart-2: oklch(0.37 0.136 28.851);
  --chart-3: oklch(0.496 0.16 143.081);
  --chart-4: oklch(0.399 0.148 28.938);
  --chart-5: oklch(0.278 0.169 269.518);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.029 284.206);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.043 23.763);
  --muted-foreground: oklch(0.704 0.021 21.278);
  --popover: oklch(0.12 0.029 284.206);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.029 284.206);
  --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.278 0.165 270.32);
  --primary-foreground: oklch(0.826 0.08 286.803);
  --secondary: oklch(0.37 0.136 28.851);
  --secondary-foreground: oklch(0.86 0.063 21.935);
  --accent: oklch(0.496 0.16 143.081);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.679 0.181 40.392);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.278 0.165 270.32);
  --chart-1: oklch(0.278 0.165 270.32);
  --chart-2: oklch(0.37 0.136 28.851);
  --chart-3: oklch(0.496 0.16 143.081);
  --chart-4: oklch(0.399 0.148 28.938);
  --chart-5: oklch(0.278 0.169 269.518);
}