Skip to main content

Overview

The Metalayer Bridge Widget offers extensive theming capabilities to match your application’s design. You can use predefined themes for quick setup or customize every aspect of the widget’s appearance.

Widget Properties

Color Palette

Using a single Hex color, the widget will generate a color palette for the widget. Custom Brand Color Preview

Available Palettes

The color palette properties that can be used to customize the widget.

Predefined Themes

The widget includes two predefined themes that provide a complete, cohesive look out of the box.

Comfy Theme

The default theme with a warm, approachable aesthetic. Comfy Theme Preview - Light Mode

Modern Theme

A sleek, contemporary design with sharper edges and a more minimal feel. Modern Theme Preview - Light Mode

Dark Mode

Enable dark mode on any theme by setting the mode property:

Font Customization

The widget uses three font roles: label (headings/labels), body (body text), and data (numeric/monospace). Default fonts are Inter and Martian Mono.

Google Fonts

Specify font names for auto-loading from Google Fonts:

Google Fonts with Custom Weights

Custom Weight Choices

For more control over which font weights are used for regular and bold text, pass an object instead of a string:
Default weights by role:
The bold weight is currently only supported for the data role. Setting bold on label or body will show a dev warning and be ignored.

Custom Fonts

For fonts not on Google Fonts, use customFonts with woff2 URLs:
For multiple weights:

System Fonts

FontFamily

FontsConfig

FontFamilyConfig

The bold weight in weights is only supported for the data role.

GoogleFontsConfig

CustomFont

Either url or weights must be provided for custom fonts.

Widget Features

Toggle specific visual features of the widget on or off.

Advanced Overrides

For complete control, use the overrides property to customize specific theme values. This allows you to override any part of the generated theme.
These types are used when customizing advanced theme overrides.

StatusColors

There are 4 types of statuses: info, warning, success, and failure.

InteractiveColors

InteractiveThemeColors

Theme Object Structure

The complete theme object structure for advanced overrides. All properties are optional.
All color values should be provided in hex format (e.g., #RRGGBB or #RGB).