Tremor for shadcn/ui

Tremor is a shadcn/ui theme built around a light red primary color (#f6e5e6) with light teal accents (#e5f6f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f6e5e6) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0707black
Foreground
#0c0304black
#fbf8f9snow
Card
#ffffffwhite
#0e0707black
Card foreground
#0c0304black
#fbf8f9snow
Popover
#ffffffwhite
#0e0707black
Popover foreground
#0c0304black
#fbf8f9snow
Primary
#f6e5e6mistyrose
#f6e5e6mistyrose
Primary foreground
#7d2c32brown
#7d2c32brown
Secondary
#e5f6f4honeydew
#e5f6f4honeydew
Secondary foreground
#11312edarkslategray
#11312edarkslategray
Muted
#eaf0f0whitesmoke
#0f1514black
Muted foreground
#465352darkslategray
#acb9b8darkgray
Accent
#e5f6f4honeydew
#e5f6f4honeydew
Accent foreground
#11312edarkslategray
#11312edarkslategray
Destructive
#ab2b12firebrick
#e23918orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6e5e6mistyrose
#f6e5e6mistyrose

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button7.55:1AAA
Secondary button12.49:1AAA
Muted text6.95:1AA
Accent12.49:1AAA
Destructive6.25:1AA
Dark mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button7.55:1AAA
Secondary button12.49:1AAA
Muted text9.14:1AAA
Accent12.49:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.024 13.477);
  --muted: oklch(0.951 0.006 191.109);
  --muted-foreground: oklch(0.431 0.017 190.357);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.024 13.477);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.024 13.477);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.935 0.019 11.69);
  --primary-foreground: oklch(0.413 0.112 18.609);
  --secondary: oklch(0.959 0.018 190.835);
  --secondary-foreground: oklch(0.289 0.038 187.945);
  --accent: oklch(0.959 0.018 190.835);
  --accent-foreground: oklch(0.289 0.038 187.945);
  --destructive: oklch(0.49 0.168 32.914);
  --destructive-foreground: oklch(0.972 0.011 31.067);
  --ring: oklch(0.935 0.019 11.69);
  --chart-1: oklch(0.935 0.019 11.69);
  --chart-2: oklch(0.959 0.018 190.835);
  --chart-3: oklch(0.959 0.018 190.835);
  --chart-4: oklch(0.977 0.01 191.017);
  --chart-5: oklch(0.934 0.02 11.719);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.014 12.568);
  --foreground: oklch(0.983 0.003 11.323);
  --muted: oklch(0.188 0.009 190.209);
  --muted-foreground: oklch(0.776 0.015 190.816);
  --popover: oklch(0.138 0.014 12.568);
  --popover-foreground: oklch(0.983 0.003 11.323);
  --card: oklch(0.138 0.014 12.568);
  --card-foreground: oklch(0.983 0.003 11.323);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.935 0.019 11.69);
  --primary-foreground: oklch(0.413 0.112 18.609);
  --secondary: oklch(0.959 0.018 190.835);
  --secondary-foreground: oklch(0.289 0.038 187.945);
  --accent: oklch(0.959 0.018 190.835);
  --accent-foreground: oklch(0.289 0.038 187.945);
  --destructive: oklch(0.601 0.21 32.797);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.935 0.019 11.69);
  --chart-1: oklch(0.935 0.019 11.69);
  --chart-2: oklch(0.959 0.018 190.835);
  --chart-3: oklch(0.959 0.018 190.835);
  --chart-4: oklch(0.977 0.01 191.017);
  --chart-5: oklch(0.934 0.02 11.719);
}