![Logo](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/admin/vis-2-widgets-inventwo.png)
# inventwo Widgets for ioBroker vis 2.0

![Number of Installations](http://iobroker.live/badges/vis-2-widgets-inventwo-installed.svg)
![Number of Installations](http://iobroker.live/badges/vis-2-widgets-inventwo-stable.svg)
[![NPM Version](https://nodei.co/npm/iobroker.vis-2-widgets-inventwo.svg?style=shields&data=v,u,d&color=orange)](https://www.npmjs.com/package/iobroker.vis-2-widgets-inventwo)
[![Downloads](https://img.shields.io/npm/dm/iobroker.vis-2-widgets-inventwo.svg)](https://www.npmjs.com/package/iobroker.vis-2-widgets-inventwo)
[![Paypal Donation](https://img.shields.io/badge/paypal-donate%20|%20spenden-green.svg)](https://www.paypal.com/donate/?hosted_button_id=7W6M3TFZ4W9LW)

**Build dashboards that look exactly the way you want.** A set of 12 widgets for **ioBroker vis 2.0** with one idea: every widget can be styled down to the last detail - colors and gradients, shapes, shadows, borders, fonts, sizes - without a single line of CSS.

**New: [Themes](#themes) and [Presets](#presets).** Restyle the whole dashboard with one click - twelve built-in themes, your own themes, and a Theme Customizer widget that lets you change theme and colors right on the wall tablet. Presets give every widget a ready-made form, from cards and tiles to clocks, gauges and rings.

![Dark dashboard built with inventwo widgets](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/showcase_dark.png)

📖 **[User Documentation](docs/README.md)** - detailed guides for all widgets, settings and examples.

---

## Why these widgets?

- 🌗 **Themes with a live customizer** - couple widgets to a theme and switch the look of the whole dashboard at once: twelve built-in themes, your own themes in a theme manager, and a [Theme Customizer](#theme-customizer) widget for changes at runtime.
- 🧱 **Presets** - ready-made forms for every widget (cards, tiles, segmented buttons, clocks, color wheel, gauges, rings, agenda …) to insert from a gallery, plus your own presets to reuse anywhere.
- 🎨 **Total design freedom** - gradients, glow, glass, neumorphism, hexagons, stars or your own polygon. Every color field accepts any CSS color, including `linear-gradient(...)`.
- 🧩 **One widget, many jobs** - the [Universal widget](#universal) is a switch, button, navigation tile, status display, dialog opener, color picker, clock and more, with its own look for every state.
- 📊 **Show data, don't just switch it** - gauges with color zones, scales and needles, sliders, tables with conditional row colors, calendars, event lists, tickers.
- 🔒 **Safe for wall panels** - password/PIN protection for any action, read-only modes, "hold to activate" buttons, automatic value reset.
- ♻️ **Consistent styling** - "From widget" lets many widgets share one look, so a redesign is a change in one place.
- 🔁 **Coming from vis 1?** A built-in [migration assistant](#migrating-from-vis-inventwo-vis-1) converts old `i-vis-*` widgets.

---

## See what is possible

All screens on this page are built only with the widgets of this adapter - no custom CSS, no extra adapters.

### Same dashboard, three looks
The dashboard above, with the same layout and widgets. Only the colors, radii, borders and shadows in the widget settings are different.

| Light | Glass |
|---|---|
| ![Light dashboard](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/showcase_light.png) | ![Glass dashboard](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/showcase_glass.png) |

### Shapes and styles
![Shapes and styles](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/showcase_styles.png)

The Universal widget in different shapes (rounded, hexagon, star, diamond, octagon, triangle - or your own polygon) and styles (neumorphism, inset shadows, neon glow, gradients, chamfered corners, dashed borders).

### Data at a glance
![Data widgets](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/showcase_data.png)

A device table with number and time formats and conditional row colors, gauges with the three color-zone modes, and an event calendar - all fed from plain datapoints.

---

## Themes

![The same dashboard in all twelve built-in themes](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/themes_overview.png)

*One dashboard, twelve looks - nothing changed but the theme.*

A theme is a shared set of **colors, corners, border, shadow and font**. Couple a widget to a theme in the attribute group **inventwo - Theme** and it takes its look from there; change the theme and every coupled widget follows immediately - in the editor and on every display.

- **Twelve built-in themes:** Graphite, Linen, Ocean, Glass, Retro 98, Neo Brutal, Synthwave, Terminal, Soft Pastel, Night Vision, High Contrast and Forest
- **Own values always win** - override a single color on one widget, the rest still follows the theme; decoupling keeps the current look
- **Theme manager** in the editor: create, duplicate, rename, edit with live preview, export and import themes, reset built-in themes to the original
- **Every theme value is a datapoint** under `vis-2-widgets-inventwo.0.themes` - switch to a dark theme at sunset with a script, or change the accent color from anywhere
- **CSS variables** (`--iw-*`) for everything else, e.g. `var(--iw-background)` as view background - see [View background that follows the theme](docs/en/themes.md#view-background-that-follows-the-theme)

| Theme Customizer (runtime) | Theme manager (editor) |
|---|---|
| ![Theme Customizer widget](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/theme_customizer_en.png) | ![Theme manager](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/theme_manager_en.png) |

The **[Theme Customizer](#theme-customizer)** widget brings all of this to the dashboard itself: pick a theme, the view background, accent color, corners, border, shadow and font at runtime - for all devices or only for the current one.

📖 [Themes](docs/en/themes.md) · [Theme Customizer widget](docs/en/widgets/theme-customizer-widget.md)

---

## Presets

![Preset gallery](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/presets_gallery_en.png)

Presets store the **form** of a widget - layout, sizes, spacing, shape, angles, feedback - while the theme provides the colors. Open **Presets** in the widget palette to browse them with preview pictures and insert a new widget with one click.

- **Built-in presets for every widget type**, e.g. Card, Tile, Segmented Buttons, Neumorphic, Hexagon, Slider, Thermostat, Needle Gauge, Table and Month Calendar
- **Ready-made templates** that also set up the widget for you: Analog Clock, Minimal Clock, Color Wheel, White Tone, Plus/Minus Buttons, Popup Tile, Shutter, Half Gauge, Progress Ring, Dimmer Ring, Vertical Ticker and Agenda - just pick the datapoint
- **Your own presets:** save the design of any widget, apply it to many widgets at once, copy and paste designs, export and import them as a file; they are stored on the server and available in all projects
- Datapoints, texts, actions and passwords are never part of a preset

📖 [Presets documentation](docs/en/design-presets.md)

---

## The widgets at a glance

| Widget | What it does |
|---|---|
| [**Universal**](#universal) | The all-rounder: switch, button, navigation, read-only display, dialog, +/- value, HTTP request, color picker, analog clock |
| [**Slider**](#slider) | Horizontal or vertical slider and bar display, with scale and color zones |
| [**Radial Slider**](#radial-slider) | Circular slider and gauge with scale, needle, second value and color zones |
| [**Switch**](#switch) | Toggle switch with custom values and labels |
| [**Checkbox**](#checkbox) | Checkbox with custom values and labels |
| [**Dropdown**](#dropdown) | Selection list filled from the states of a datapoint, with conditional background |
| [**Table**](#table) | JSON data as a table: formats, sorting, filters, pagination, row colors |
| [**Calendar**](#calendar) | Month calendar as date picker or date display |
| [**Event Calendar**](#event-calendar) | Google-Calendar-style view for appointments (month, week, day, year, lists) |
| [**Marquee**](#marquee) | Scrolling text ticker in any direction |
| [**Value List**](#value-list) | Bullet list from a text or datapoint |
| [**Theme Customizer**](#theme-customizer) | Change theme, colors, corners, border, shadow and font at runtime |

> Every widget page in the [documentation](docs/README.md) lists all settings in detail.

---

## Universal

*The flagship widget.* One tile that reacts to your data and looks different in every state.

![Preview Universal Widget](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/preview_universal_widget.png)

**What happens on click (type)**
- **Switch** toggles a datapoint between two values; **Button** sends a value - optionally only while pressed ("hold") or with automatic reset after a time
- **Navigation** to another view (the active view can be highlighted); **View in dialog** with position, size, title, auto-close and optional control by datapoint
- **Increase / decrease** a number by a step, **HTTP request** or **open URL**
- **Read-only** for pure status tiles
- **Password / PIN protection** for any of the actions above

**What is shown (content)**
- Icon, image, text/HTML with datapoint bindings, an embedded **view**, a full **color picker** (HEX, RGB, HSL, HSV, CIE) or an **analog clock** in several designs
- Content can blink, rotate, mirror and scale

**States and modes**
- Any number of states, chosen by value comparison, each with its own text, icon, colors and shadows
- **Single button** or **separated buttons** (mode selector, radio-button style)
- Click feedback, click-through, content opacity

**Design**
- Shapes: rectangle, triangle, diamond, pentagon, hexagon, heptagon, octagon, star or a **custom polygon**, with rotation and corner radius
- Rounded or chamfered corners, borders, several outer and inner shadows, gradient backgrounds, spacing and alignment

![Preview Shapes](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/preview_shapes.png)

📖 [Universal widget](docs/en/widgets/universal-widget.md) · [Interaction types](docs/en/widgets/universal/interaction-types.md) · [Content types](docs/en/widgets/universal/content-types.md) · [Styling and shapes](docs/en/widgets/universal/styling-and-shapes.md)
· Examples: [hexagon dashboard](docs/example-views/hexagonal-view.md), [rectangle dashboard](docs/example-views/rectangle-view.md), [design examples](docs/universal-widget-design-examples.md)

---

## Slider

![Preview Slider](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/preview_sliders.png)

Horizontal or vertical, with min/max, step, scale (automatic or custom marks) and value label. Works as an input or as a **read-only bar display**.

- **Color zones** (e.g. green / yellow / red from a value on) over the active range, as segments, or across the whole track - with hard edges or smooth gradients
- Gradients for rail and active rail, inverted bar, individual track and thumb styling including shadows

📖 [Slider documentation](docs/en/widgets/slider-widget.md)

## Radial Slider

![Preview Radial Slider](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/src-widgets/public/img/vis-widget-inventwo-radial-slider.png)

A circular slider that doubles as a **gauge** for temperatures, power, humidity and more.

- Free start and end angle - full circle, three quarters, half circle
- Value in the center with decimals, separator and unit, optional label, **second value** (e.g. target next to actual) and **time of last change**
- **Color zones**, **scale** with ticks and labels, and a **needle**
- Track and thumb styling including shadows; the thumb can be hidden for pure displays

📖 [Radial Slider documentation](docs/en/widgets/radial-slider-widget.md)

## Switch

![Preview Switches](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/preview_switches.png)

Toggle switch for boolean or any two-state datapoint: own values for on/off, texts per state, label position, and fully styled track and thumb (colors, size, radius, shadows, gradients).

📖 [Switch documentation](docs/en/widgets/switch-widget.md)

## Checkbox

![Preview Checkbox](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/preview_checkbox.png)

Checkbox with own true/false values, texts per state, label position, and custom box size and colors.

📖 [Checkbox documentation](docs/en/widgets/checkbox-widget.md)

## Dropdown

![Preview Dropdown](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/src-widgets/public/img/vis-widget-inventwo-dropdown.png)

Selection list that takes its options from the states list of the datapoint, or from your own list of values. Optional title, read-only mode, **background color by condition**, and full control over font, colors, border, radius and shadows.

📖 [Dropdown documentation](docs/en/widgets/dropdown-widget.md)

## Table

![Preview Table](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/preview_table.png)

Turns a JSON datapoint into a table.

- Columns with title, width, alignment, prefix/suffix and **formats**: text, number, boolean, date/time, image, link, IP address; calculated columns via formula
- **Sorting** (also multi-column), **column filters**, pagination, sticky header, sum row
- **Row colors by condition** - highlight errors, warnings, thresholds
- Header and row styling, borders, rounded corners, shadows

📖 [Table documentation](docs/en/widgets/table-widget.md)

## Calendar

A month calendar as **date picker**, read-only date display or "today" highlighter. Timestamp or ISO date, past/future lock, week numbers, adjustable day size and full color styling per part (header, weekdays, days, selected day, today).

📖 [Calendar documentation](docs/en/widgets/calendar-widget.md)

## Event Calendar

Google-Calendar-style view of appointments, fed from a JSON datapoint (for example from the **ical** adapter).

- Views: month, week, day, multi-month/year and four list views
- **Several calendars** with own colors and legend, **color rules by title**, week numbers, "+N more" per day
- Every part of the look is configurable

📖 [Event Calendar documentation](docs/en/widgets/event-calendar-widget.md)

## Marquee

Scrolling ticker for long texts and notifications: from a datapoint or fixed text, direction left/right/up/down, speed, gap, pause on hover, background.

📖 [Marquee documentation](docs/en/widgets/marquee-widget.md)

## Value List

Bullet list from a single text value with any separator. Bullet types (disc, circle, square, dash, arrow, numbers, custom character), bullet color, spacing and padding.

📖 [Value List documentation](docs/en/widgets/value-list-widget.md)

## Theme Customizer

![Theme Customizer](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/raw/main/img/theme_customizer_en.png)

Lets users restyle the dashboard at runtime, e.g. on a wall tablet: theme cards for all themes, view background, accent and surface colors with suggestions and a color picker, corners, border, shadow and font. Changes apply to all devices or only to the current device. See [Themes](#themes).

📖 [Theme Customizer documentation](docs/en/widgets/theme-customizer-widget.md)

---

## Getting started

1. Install the adapter **vis-2-widgets-inventwo** in ioBroker Admin (requires vis 2.0).
2. Open the vis 2 editor and pick a widget from the **inventwo design** list.
3. Select your datapoint and adjust the settings - the preview updates live.
4. Want a finished look right away? Open **Presets** in the palette and insert a widget from the gallery.
5. Couple your widgets to a theme in **inventwo - Theme** and switch the look of all of them at once - or add a **Theme Customizer** to change it at runtime.
6. To reuse a look between single widgets, set **From widget** in a style group and pick another widget of the same type.

---

## Migrating from vis-inventwo (vis 1)

Coming from the vis-1 adapter **[vis-inventwo](https://github.com/inventwo/ioBroker.vis-inventwo)**? This adapter includes a migration tool that converts the old widgets (`i-vis-*`) of a project imported into vis 2 to the widgets of this set. You find it in the instance settings of `vis-2-widgets-inventwo` in ioBroker Admin.

It shows a preview first, can write the result into a new project or back up the existing one, and lists everything that should be checked by hand afterwards. Not every widget can be converted completely.

📖 **Migration guide:** [English](docs/en/migration.md) · [Deutsch](docs/de/migration.md)

> **Please note:** The migration was built with care, but there is no guarantee that it works flawlessly for every project - vis-1 projects come in too many different shapes for that. If something is not converted as expected, please [open an issue](https://github.com/inventwo/ioBroker.vis-2-widgets-inventwo/issues). Your feedback helps to improve the tool.

---

## Changelog
<!--
    Placeholder for the next version (at the beginning of the line):
    ### **WORK IN PROGRESS**
-->
### 3.0.1 (2026-11-27)
- Marquee widget: border radius, border and outer shadow (also usable via themes and presets), so it can look like the Universal widget
- Universal: an empty outer shadow color now means no shadow (before, the default card shadow of MUI was shown)
- Presets on theme-coupled widgets: values that use the theme CSS variables (`var(--iw-…)`, e.g. a shadow color with `color-mix(...)`) are applied now instead of being left out; empty theme fields of a coupled widget are no longer stored as "not set", so applying the preset does not clear them in other widgets
- **Themes:** new theme color **Icons / content** (`icon`, CSS variable `--iw-icon`) for the icons and content of the Universal widget and the calendar header arrows, separate from **Secondary text**; built-in themes start with their previous secondary text color, themes without the value fall back to it
- **Themes:** new theme colors **Icons on accent** (`onAccentIcon`), **Shadow color (tiles & buttons)** (`shadowTile`, the previous shadow color is now for cards; in the built-in themes both start with the same value) and **Glow** (`glow`, defaults to the accent color with 40 % opacity); Universal widget: new settings **Active state** (accent fill or subtle with accent icon), **Glow in active state** and **Label** (text or secondary text) in the group "inventwo - Theme"; with theme background "None" the theme sets no shadow; Universal presets save and apply these settings (never the theme coupling itself)

### 3.0.0 (2026-11-26)
- **Themes:** couple any inventwo widget to a theme (colors, corners, border, shadow, font) in the new attribute group "inventwo - Theme"; own values always win, decoupling keeps the current look. Twelve built-in themes: Graphite, Linen, Ocean, Glass, Retro 98, Neo Brutal, Synthwave, Terminal, Soft Pastel, Night Vision, High Contrast, Forest
- Every theme value is a datapoint under `vis-2-widgets-inventwo.0.themes` (active theme in `themes.active`), so scripts can switch themes or change single values; the active theme is also available as CSS variables (`--iw-*`, e.g. `var(--iw-background)` as view background)
- New theme manager (palette entry "Themes"): create, duplicate, rename and delete themes, edit all values with live preview, set the active theme, export and import theme files; built-in themes are marked "Built-in" (or "Built-in · modified") and can be reset to the original
- New widget **Theme Customizer**: switch the theme and adjust every theme value at runtime (colors with suggestions and a color picker, corners, border incl. 3D styles, shadow, font), for all devices or only the current device
- **Presets** for all inventwo widgets: save, apply, copy/paste, export and import the design of a widget with a preview picture; stored on the server and available in all projects; datapoints, texts, actions and passwords are never transferred; on theme-coupled widgets the fields controlled by the theme are left out
- New palette entry "Presets": gallery of all presets by widget type, inserts a new widget with the preset into the current view, imports preset files
- Built-in presets for all widget types (one per form, e.g. Card, Tile, Segmented Buttons, Hexagon, Thermostat, Needle Gauge, Striped Table), read-only; templates also set up the widget and its size: Analog Clock, Minimal Clock, Color Wheel, White Tone, Plus/Minus Buttons, Popup Tile, Shutter, Half Gauge, Progress Ring, Dimmer Ring, Vertical Ticker, Agenda
- Universal and Table: the border style "outset" can be selected again (the option set "inset" before)
- Marquee, Table and Universal widgets: subscriptions are cleaned up correctly when the widget is removed

### 2.4.1 (2026-11-25)
- Dropdown Widget: the opened option list looked different on Safari/iPadOS (rounded, inset and blue selected item); items now span the full width with square corners and use the configured highlight color

### 2.4.0 (2026-11-24)
- Calendar Widget: the day, today, selected and month/year colors had no effect with the current MUI X version (renamed CSS classes), so the theme text color was used instead; fixed
- Checkbox Widget: true/false values default to `true`/`false` when left empty (like the Switch Widget), so a checkbox without custom values reflects and toggles boolean datapoints
- Universal Widget: no more white border when the border color is left empty (border is now transparent instead of falling back to the text color) (#353)
- Dropdown Widget: the opened list no longer shows a rounded border on iOS (explicit square paper without border/outline) (#350)
- Build: `mf-manifest.json` and `mf-stats.json` are now copied into `widgets/` and thus included in the npm package (fixes 404 errors in the browser) (#349)
- README: new overview with showcase screenshots
- New preview images for all widgets in the vis-2 editor, rendered from real widgets (Radial Slider now shows the gauge look with color zones and scale); the Marquee Widget got a preview image for the first time
- Fixed order of the widgets in the vis-2 editor palette (`visOrder`); before, the order depended on which widget finished loading first
- Universal Widget: new optional hover colors (content, background incl. gradients, text, border, outer/inner shadow) with "From widget" support; empty fields leave the color unchanged, mouse only (no sticky hover on touch devices); the migration assistant now takes over the vis-1 hover colors

### 2.3.0 (2026-11-23)
- Universal Widget: Password/PIN protection is now available for all types that trigger an action (switch, button, view in dialog, increase/decrease, HTTP), not only for navigation
- Universal Widget: Type button can reset the value after a configurable time; the migration assistant takes over the reset time of vis-1
- Slider & Radial Slider: New color zones – the active part changes its color depending on the value (e.g. green/yellow/red), either as a whole, per zone segment or as a fixed scale along the whole track, with a hard cut or a gradient between the zones
- Radial Slider: Decimals, decimal separator and unit for the displayed value; the thumb can be hidden (thumb size 0) to use the widget as a gauge
- Radial Slider: Optional scale ticks with labels, a needle, a second value (e.g. setpoint) and the time of the last change
- Slider: Fixed min/max not being taken over from the object when selecting the object ID
- Universal Widget: Scrolling and pinch-zoom with the finger on touchscreens now also work over the widget; only a button with **Hold value** still blocks touch gestures. A gesture that turns into scrolling no longer triggers the action

## Older changes
Can be found in [CHANGELOG_OLD.md](CHANGELOG_OLD.md)

---

## License
The MIT License (MIT)

Copyright (c) 2025-2026 jkvarel <jk@inventwo.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.