Indicator for shadcn/ui

Indicator is a shadcn/ui theme built around a near-white primary color (#e6eae7) with near-white accents (#eae7e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#e6eae7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#041008black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#041008black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#041008black
#ffffffwhite
Primary
#e6eae7lavender
#e6eae7lavender
Primary foreground
#4a554ddarkslategray
#4a554ddarkslategray
Secondary
#e7e6ealavender
#e7e6ealavender
Secondary foreground
#4d4a55darkslategray
#4d4a55darkslategray
Muted
#e0dbebgainsboro
#191424black
Muted foreground
#464153darkslategray
#b2acbedarkgray
Accent
#eae7e6linen
#eae7e6linen
Accent foreground
#554d4adarkslategray
#554d4adarkslategray
Destructive
#9a280ebrown
#e93c16orangered
Destructive foreground
#fce4demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6eae7lavender
#e6eae7lavender

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button6.40:1AA
Secondary button6.99:1AA
Muted text7.23:1AAA
Accent6.71:1AA
Destructive6.44:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.40:1AA
Secondary button6.99:1AA
Muted text8.16:1AAA
Accent6.71:1AA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.025 154.271);
  --muted: oklch(0.9 0.022 299.63);
  --muted-foreground: oklch(0.388 0.03 298.704);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.025 154.271);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.158 0.025 154.271);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.933 0.005 155.775);
  --primary-foreground: oklch(0.436 0.019 155.02);
  --secondary: oklch(0.928 0.004 299.958);
  --secondary-foreground: oklch(0.415 0.019 299.278);
  --accent: oklch(0.931 0.003 44.951);
  --accent-foreground: oklch(0.426 0.012 44.721);
  --destructive: oklch(0.456 0.154 33.594);
  --destructive-foreground: oklch(0.936 0.028 32.693);
  --ring: oklch(0.933 0.005 155.775);
  --chart-1: oklch(0.933 0.005 155.775);
  --chart-2: oklch(0.928 0.004 299.958);
  --chart-3: oklch(0.931 0.003 44.951);
  --chart-4: oklch(0.952 0.003 299.986);
  --chart-5: oklch(0.934 0.007 155.736);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.031 297.371);
  --muted-foreground: oklch(0.755 0.026 299.463);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.933 0.005 155.775);
  --primary-foreground: oklch(0.436 0.019 155.02);
  --secondary: oklch(0.928 0.004 299.958);
  --secondary-foreground: oklch(0.415 0.019 299.278);
  --accent: oklch(0.931 0.003 44.951);
  --accent-foreground: oklch(0.426 0.012 44.721);
  --destructive: oklch(0.616 0.214 33.344);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.933 0.005 155.775);
  --chart-1: oklch(0.933 0.005 155.775);
  --chart-2: oklch(0.928 0.004 299.958);
  --chart-3: oklch(0.931 0.003 44.951);
  --chart-4: oklch(0.952 0.003 299.986);
  --chart-5: oklch(0.934 0.007 155.736);
}