Tami 1 for shadcn/ui

Tami 1 is a shadcn/ui theme built around a near-black primary color (#1d1d1d) with neutral gray accents (#dfdfdf). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid light yellow primary (#fbf5df) on a neutral background (#0a0a0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0a0ablack
Foreground
#0a0a0ablack
#ffffffwhite
Card
#eeeeeewhitesmoke
#242424darkslategray
Card foreground
#1d1d1dblack
#ffffffwhite
Popover
#ffffffwhite
#0a0a0ablack
Popover foreground
#0a0a0ablack
#fafafasnow
Primary
#1d1d1dblack
#fbf5dfcornsilk
Primary foreground
#fbf5dfcornsilk
#262626darkslategray
Secondary
#def771khaki
#def771khaki
Secondary foreground
#000000black
#000000black
Muted
#f5f5f5whitesmoke
#181818black
Muted foreground
#737373dimgray
#a8a8a8darkgray
Accent
#dfdfdfgainsboro
#464646darkslategray
Accent foreground
#000000black
#ffffffwhite
Destructive
#d41a1acrimson
#c63232firebrick
Destructive foreground
#fafafasnow
#fafafasnow
Border
#dfdfdfgainsboro
#474747darkslategray
Input
#dfdfdfgainsboro
#474747darkslategray
Ring
#0a0a0ablack
#fbf5dfcornsilk

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card14.52:1AAA
Primary button15.43:1AAA
Secondary button17.64:1AAA
Muted text4.35:1AA Large
Accent15.75:1AAA
Destructive5.08:1AA
Dark mode
Text on background19.80:1AAA
Text on card15.52:1AAA
Primary button13.85:1AAA
Secondary button17.64:1AAA
Muted text7.50:1AAA
Accent9.43:1AAA
Destructive5.13:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0 180);
  --muted: oklch(0.97 0 180);
  --muted-foreground: oklch(0.556 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0 180);
  --card: oklch(0.949 0 180);
  --card-foreground: oklch(0.231 0 180);
  --border: oklch(0.904 0 158.199);
  --input: oklch(0.904 0 158.199);
  --primary: oklch(0.231 0 180);
  --primary-foreground: oklch(0.969 0.03 94.338);
  --secondary: oklch(0.931 0.161 118.456);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.904 0 158.199);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.555 0.215 28.053);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.145 0 180);
  --chart-1: oklch(0.571 0.243 289.768);
  --chart-2: oklch(0.931 0.161 118.456);
  --chart-3: oklch(0.711 0.181 44.628);
  --chart-4: oklch(0.674 0.184 9.634);
  --chart-5: oklch(0.969 0.03 94.338);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0 180);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0 167.471);
  --muted-foreground: oklch(0.732 0 180);
  --popover: oklch(0.145 0 180);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.26 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.398 0 170.538);
  --input: oklch(0.398 0 170.538);
  --primary: oklch(0.969 0.03 94.338);
  --primary-foreground: oklch(0.269 0 180);
  --secondary: oklch(0.931 0.161 118.456);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.394 0 170.538);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.548 0.185 25.752);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.969 0.03 94.338);
  --chart-1: oklch(0.571 0.243 289.768);
  --chart-2: oklch(0.931 0.161 118.456);
  --chart-3: oklch(0.711 0.181 44.628);
  --chart-4: oklch(0.674 0.184 9.634);
  --chart-5: oklch(0.969 0.03 94.338);
}