We’ve gone dark y’all! We are following up on our previous release and rolling out dark mode for our widget. Unlike the page, dark mode is enabled programmatically, with no toggles.
While embedding the widget, now you have an optional theme
attribute that you can pass. It accepts one of three values:
light
- light themedark
- dark themeauto
- auto-detect based on the user’s computer system settings
We are defaulting to our usual light
theme to avoid shocking your eyes with the new theme. In the future, this property default value be changed to auto
.
onsetWidgetSettings = {
page: 'releases.onset.io',
triggerText: "🔔 What's New",
theme: 'dark',
};
Check out our widget documentation for more configuration options.