Skip to main content
All patterns

Color

Entity color slots

Entities never get a hex in a component — they get a data-attribute slot, and CSS maps each slot to a fg/bg/border triple derived from theme tokens, with unknown entities falling through to neutral.

Reach for it when building

  • per-author coloring in collaborative tools
  • category and tag theming
  • calendar owners and participants
  • series or project identity colors
  • multi-party conversation views
  • color
  • theming
  • custom-properties
  • data-attributes