Widget v1.1.0
Widget v1.1.0 introduces dark mode, which is now enabled programmatically without any toggles. Users can set the theme attribute when embedding the widget, choosing from light, dark, or auto to match their system settings, with the default set to light. Future updates may change the default to auto.
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, you now 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 default 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.
