Tilt for shadcn/ui

Tilt is a shadcn/ui theme built around a vivid light cyan primary color (#b7e6f5) with vivid light blue accents (#b7c7f5). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid light cyan primary (#b7e6f5) on a cyan-tinted background (#030a0c).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#030a0cblack
Foreground
#020708black
#f8fbfcghostwhite
Card
#f8fbfcghostwhite
#040d10black
Card foreground
#010304black
#fbfdfdwhite
Popover
#fcfdfdwhite
#030a0cblack
Popover foreground
#020708black
#f8fbfcghostwhite
Primary
#b7e6f5paleturquoise
#b7e6f5paleturquoise
Primary foreground
#0f546cdarkslategray
#0f546cdarkslategray
Secondary
#b7f5e6paleturquoise
#b7f5e6paleturquoise
Secondary foreground
#02120eblack
#02120eblack
Muted
#e2f3eflavender
#0c1d18black
Muted foreground
#535a58dimgray
#a5acaadarkgray
Accent
#b7c7f5lightsteelblue
#b7c7f5lightsteelblue
Accent foreground
#0f266cmidnightblue
#0f266cmidnightblue
Destructive
#7f3006saddlebrown
#ef5b0borangered
Destructive foreground
#fcd2bbpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7e6f5paleturquoise
#b7e6f5paleturquoise

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.84:1AAA
Primary button6.23:1AA
Secondary button15.74:1AAA
Muted text6.15:1AA
Accent8.24:1AAA
Destructive6.48:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button6.23:1AA
Secondary button15.74:1AAA
Muted text7.56:1AAA
Accent8.24:1AAA
Destructive3.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.001 219.518);
  --foreground: oklch(0.119 0.013 214.558);
  --muted: oklch(0.95 0.018 179.316);
  --muted-foreground: oklch(0.461 0.009 179.29);
  --popover: oklch(0.993 0.001 219.518);
  --popover-foreground: oklch(0.119 0.013 214.558);
  --card: oklch(0.986 0.003 219.528);
  --card-foreground: oklch(0.095 0.01 214.558);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.896 0.052 220.167);
  --primary-foreground: oklch(0.418 0.075 226.3);
  --secondary: oklch(0.925 0.066 177.642);
  --secondary-foreground: oklch(0.165 0.025 176.645);
  --accent: oklch(0.833 0.068 270.478);
  --accent-foreground: oklch(0.302 0.125 265.214);
  --destructive: oklch(0.417 0.119 42.989);
  --destructive-foreground: oklch(0.893 0.057 49.907);
  --ring: oklch(0.896 0.052 220.167);
  --chart-1: oklch(0.896 0.052 220.167);
  --chart-2: oklch(0.925 0.066 177.642);
  --chart-3: oklch(0.833 0.068 270.478);
  --chart-4: oklch(0.938 0.054 178.108);
  --chart-5: oklch(0.897 0.054 220.203);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.014 215.47);
  --foreground: oklch(0.986 0.003 219.532);
  --muted: oklch(0.213 0.024 176.05);
  --muted-foreground: oklch(0.738 0.008 179.546);
  --popover: oklch(0.136 0.014 215.47);
  --popover-foreground: oklch(0.986 0.003 219.532);
  --card: oklch(0.151 0.016 218.307);
  --card-foreground: oklch(0.993 0.002 219.52);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.896 0.052 220.167);
  --primary-foreground: oklch(0.418 0.075 226.3);
  --secondary: oklch(0.925 0.066 177.642);
  --secondary-foreground: oklch(0.165 0.025 176.645);
  --accent: oklch(0.833 0.068 270.478);
  --accent-foreground: oklch(0.302 0.125 265.214);
  --destructive: oklch(0.657 0.197 41.486);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.896 0.052 220.167);
  --chart-1: oklch(0.896 0.052 220.167);
  --chart-2: oklch(0.925 0.066 177.642);
  --chart-3: oklch(0.833 0.068 270.478);
  --chart-4: oklch(0.938 0.054 178.108);
  --chart-5: oklch(0.897 0.054 220.203);
}