TraceAvatar
Menu

Docs

Theming

CSS variables for colours, fonts and layers.

The overlay lives in a shadow root, so your styles never leak into it. Theme it with CSS variables on :root:

styles.css
:root {
  --ta-color: #2456d8;      /* cursor, ring, chips */
  --ta-badge-bg: #111827;   --ta-badge-fg: #f9fafb;
  --ta-caption-bg: #111827; --ta-caption-fg: #f9fafb;
  --ta-font: system-ui, sans-serif;
  --ta-z: 2147483000;
}

Dark-mode colours apply automatically unless you set your own.

The avatar

Each trace can carry an avatar, a name with an optional image and colour, and the avatar option overrides it. This site’s demo uses Ava, with the brand purple as --ta-color.

 
createTrace({ trace, avatar: { name: 'Ava · Support', image: '/ava.svg', color: '#5b3df5' } });

The full reference is in the README on GitHub.