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.
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.
Modern Theme
A sleek, contemporary design with sharper edges and a more minimal feel.
Dark Mode
Enable dark mode on any theme by setting themode 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:Recommended Fonts by Role
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: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, usecustomFonts with woff2 URLs:
System Fonts
Font Type Reference
Font Type Reference
Widget Features
Toggle specific visual features of the widget on or off.Advanced Overrides
For complete control, use theoverrides property to customize specific theme values. This allows you to override any part of the generated theme.
Advanced Type Reference
Advanced Type Reference
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).