Tritone for shadcn/ui

Tritone is a shadcn/ui theme built around a vivid deep cyan primary color (#0b586b) with vivid deep blue accents (#0b276b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep cyan primary (#0b586b) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#ffffffwhite
#030607black
Foreground
#040e11black
#fcfdfdwhite
Card
#fcfcfcsnow
#05090bblack
Card foreground
#030b0dblack
#ffffffwhite
Popover
#ffffffwhite
#030607black
Popover foreground
#040e11black
#fcfdfdwhite
Primary
#0b586bdarkslategray
#0b586bdarkslategray
Primary foreground
#b0e9f7paleturquoise
#b0e9f7paleturquoise
Secondary
#0b6b4edarkslategray
#0b6b4edarkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcefe9lavender
#10231dblack
Muted foreground
#444645darkslategray
#b9bbbasilver
Accent
#0b276bmidnightblue
#0b276bmidnightblue
Accent foreground
#b0c5f7lightsteelblue
#b0c5f7lightsteelblue
Destructive
#601c0bmaroon
#d83e18chocolate
Destructive foreground
#f5b7a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b586bdarkslategray
#0b586bdarkslategray

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.42:1AAA
Primary button6.08:1AA
Secondary button6.53:1AA
Muted text7.94:1AAA
Accent8.00:1AAA
Destructive7.31:1AAA
Dark mode
Text on background19.91:1AAA
Text on card19.96:1AAA
Primary button6.08:1AA
Secondary button6.53:1AA
Muted text8.51:1AAA
Accent8.00:1AAA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.154 0.018 213.17);
  --muted: oklch(0.936 0.021 176);
  --muted-foreground: oklch(0.391 0.002 176.512);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.154 0.018 213.17);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.139 0.016 210.993);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.426 0.074 220.453);
  --primary-foreground: oklch(0.9 0.061 214.809);
  --secondary: oklch(0.469 0.094 165.843);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.303 0.123 263.337);
  --accent-foreground: oklch(0.826 0.074 266.675);
  --destructive: oklch(0.334 0.103 34.849);
  --destructive-foreground: oklch(0.833 0.076 34.481);
  --ring: oklch(0.426 0.074 220.453);
  --chart-1: oklch(0.426 0.074 220.453);
  --chart-2: oklch(0.469 0.094 165.843);
  --chart-3: oklch(0.303 0.123 263.337);
  --chart-4: oklch(0.511 0.104 165.62);
  --chart-5: oklch(0.429 0.076 220.827);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.009 211.263);
  --foreground: oklch(0.993 0.001 214.32);
  --muted: oklch(0.237 0.027 172.698);
  --muted-foreground: oklch(0.79 0.002 176.598);
  --popover: oklch(0.119 0.009 211.263);
  --popover-foreground: oklch(0.993 0.001 214.32);
  --card: oklch(0.136 0.01 211.392);
  --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.426 0.074 220.453);
  --primary-foreground: oklch(0.9 0.061 214.809);
  --secondary: oklch(0.469 0.094 165.843);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.303 0.123 263.337);
  --accent-foreground: oklch(0.826 0.074 266.675);
  --destructive: oklch(0.588 0.196 34.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.074 220.453);
  --chart-1: oklch(0.426 0.074 220.453);
  --chart-2: oklch(0.469 0.094 165.843);
  --chart-3: oklch(0.303 0.123 263.337);
  --chart-4: oklch(0.511 0.104 165.62);
  --chart-5: oklch(0.429 0.076 220.827);
}