Tile for shadcn/ui

Tile is a shadcn/ui theme built around a neutral gray primary color (#c6c3c6) with neutral gray accents (#c6c3c5). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the neutral gray primary (#c6c3c6) on a purple-tinted background (#0a040b).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#0a040bblack
Foreground
#070208black
#f9f5f9whitesmoke
Card
#f9f4fawhitesmoke
#0e050fblack
Card foreground
#040104black
#fbf9fbsnow
Popover
#f9f4fawhitesmoke
#0e050fblack
Popover foreground
#040104black
#fbf9fbsnow
Primary
#c6c3c6silver
#c6c3c6silver
Primary foreground
#2c2a2ddarkslategray
#2c2a2ddarkslategray
Secondary
#c4c3c6silver
#c4c3c6silver
Secondary foreground
#2b2a2ddarkslategray
#2b2a2ddarkslategray
Muted
#e9e5f1lavender
#130e1ablack
Muted foreground
#444346darkslategray
#bab9bcsilver
Accent
#c6c3c5silver
#c6c3c5silver
Accent foreground
#2d2a2cdarkslategray
#2d2a2cdarkslategray
Destructive
#d24204orangered
#e64805orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6c3c6silver
#c6c3c6silver

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.20:1AAA
Primary button8.11:1AAA
Secondary button8.10:1AAA
Muted text7.90:1AAA
Accent8.09:1AAA
Destructive4.64:1AA
Dark mode
Text on background18.78:1AAA
Text on card19.11:1AAA
Primary button8.11:1AAA
Secondary button8.10:1AAA
Muted text9.70:1AAA
Accent8.09:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 321.61);
  --foreground: oklch(0.108 0.022 323.227);
  --muted: oklch(0.928 0.016 302.658);
  --muted-foreground: oklch(0.387 0.005 302.74);
  --popover: oklch(0.974 0.009 321.619);
  --popover-foreground: oklch(0.086 0.018 323.227);
  --card: oklch(0.974 0.009 321.619);
  --card-foreground: oklch(0.086 0.018 323.227);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.819 0.006 321.612);
  --primary-foreground: oklch(0.289 0.006 321.647);
  --secondary: oklch(0.818 0.005 302.834);
  --secondary-foreground: oklch(0.287 0.005 302.671);
  --accent: oklch(0.819 0.005 338.849);
  --accent-foreground: oklch(0.289 0.005 339.071);
  --destructive: oklch(0.581 0.189 37.755);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.006 321.612);
  --chart-1: oklch(0.819 0.006 321.612);
  --chart-2: oklch(0.818 0.005 302.834);
  --chart-3: oklch(0.819 0.005 338.849);
  --chart-4: oklch(0.842 0.004 302.85);
  --chart-5: oklch(0.817 0.012 321.633);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.023 322.949);
  --foreground: oklch(0.975 0.006 321.611);
  --muted: oklch(0.178 0.025 300.746);
  --muted-foreground: oklch(0.787 0.004 302.851);
  --popover: oklch(0.138 0.027 322.458);
  --popover-foreground: oklch(0.983 0.004 321.604);
  --card: oklch(0.138 0.027 322.458);
  --card-foreground: oklch(0.983 0.004 321.604);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.819 0.006 321.612);
  --primary-foreground: oklch(0.289 0.006 321.647);
  --secondary: oklch(0.818 0.005 302.834);
  --secondary-foreground: oklch(0.287 0.005 302.671);
  --accent: oklch(0.819 0.005 338.849);
  --accent-foreground: oklch(0.289 0.005 339.071);
  --destructive: oklch(0.621 0.203 37.576);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.006 321.612);
  --chart-1: oklch(0.819 0.006 321.612);
  --chart-2: oklch(0.818 0.005 302.834);
  --chart-3: oklch(0.819 0.005 338.849);
  --chart-4: oklch(0.842 0.004 302.85);
  --chart-5: oklch(0.817 0.012 321.633);
}