Skip to main content
You can change the default colours and font used in the Nmbr Component by passing theme information via the theme property when instantiating the Nmbr Component:
payroll.html

Font Family

The fontFamily property allows you to customize the font used throughout the Nmbr Component. It only supports Google Fonts — the component will automatically load the specified font from Google Fonts at runtime.

Type Information

The theme property accepts an object with the following keys and value types:
The string provided as a ThemeColor property value must correspond to a CSS Hex Code (ex: #ff0000). If the light, dark, and contrastText values are not provided, they will be automatically inferred from the main color. If no theme values are defined, the Nmbr Component will use a set of default colors: