Themes

Light and dark modes, your brand color, and custom colors on Pro.

Light, dark or automatic

data-mode="light" gives a white panel and data-mode="dark" a dark gray one. The default, auto, follows the visitor's system setting and switches when they change it.

Brand color

data-color="#6d5efc" sets the color of the floating button, the "new" dot, highlights and the focus ring. Text on the button turns black or white, whichever reads better. Without it, the widget uses your project's color.

Custom background and text (Pro)

On the Pro plan you can match the panel to your product exactly:

<script
  async
  src="https://cdn.whatsnew.xrisstech.com/w.js"
  data-key="pk_your_public_key"
  data-background="#002b36"
  data-text="#fdf6e3"
></script>

These replace the light or dark palette. Borders, secondary text and raised surfaces are mixed from your two colors, so the panel stays consistent. Set only a background and the widget picks a readable text color; set only a text color and it keeps the theme's background.

On other plans these attributes are ignored and the widget uses the light or dark theme. You can try custom colors in the live preview on the Install page on any plan.

Accessibility

The widget is keyboard navigable: Tab moves through the panel and stays inside it, Escape closes it and returns focus to the button that opened it. It respects reduced motion and has ARIA roles and labels, including the unread count on the button.