Widget Themes & Colors

Change the widget theme to match your website style

You can completely change the colors of the widget to match your website style. You can check out some sample themes (and corresponding widget code) in the Widget Demo.

1. Select 'Light' or 'Dark' base theme

First, decide whether you want the light or the dark version of the widget.

  • Light Theme is the default. You do not have to do anything to get the default Light theme.
  • To get the Dark Theme, just add the HTML attribute dark-theme, in the tag.

2. Change theme colors to match your website

After selecting a base color (Light or Dark), you can change any of its colors to match your own website theme.

You can change colors by setting the HTML attribute "theme-colors" in the tag with different color values in JSON format, as explained below.

eg:

The easiest way to match the widget to your own theme is by changing the Accent Color to match your website's primary or accent color. Change accent color by setting:

πŸ‘

Easiest Way To Match Your Website's Theme:

You can start by just changing the --accent-color to match your website's primary or accent color.

Please do not forget to also set the lighter version of your --accent-color.

Eg:

Here are the different color values that you can change. Please play around with these values to see how they affect the theme:

Color NameDefault Color (Light Theme)Example Usage in Widget
--accent-colorFF4081Card headings, go button, link hover, etc
--light-accent-colorF06292
--divider-colorDBDBDB
--dark-divider-colorCCC
--primary-text-color212121Main font color
--secondary-text-color737373Light font color
--disabled-text-color9b9b9bDisabled font color
--light-text-color424242
--lighter-text-color616161
--lighter-2-text-color757575
--lightest-text-colorBDBDBD
--lightest-2-text-colorE0E0E0
--accented-text-color448AFF
--secondary-accented-text-color546E7A
--error-colorDD2C00Error messages (red)
--success-color4CAF50Success messages (green)
--card-background-colorFFFBackground of widget card
--light-card-background-colorF5F5F5
--dark-card-background-colorEEE
--secondary-button-color42A5F5
--light-secondary-button-color64B5F6
--dark-secondary-button-color2196F3
--error-button-colorFF5252Delete button (red)
--menu-selected-background-color9EC2FFList row color (response card)
--light-menu-selected-background-colorCCDFFF
--dark-menu-selected-background-color64B5F6
--tf-input-focus-color2979FF
--tf-quick-select-unchecked-button-colorE0E0E0Multi select (Request card)
--tf-quick-select-checked-button-color448AFFMulti select (Request card)
--tf-quick-select-checked-highlight-color619DFFMulti select (Request card)
--paper-toast-background-color323232Toast Message
--paper-toast-colorF1F1F1Toast Message
--paper-tooltip-background616161Tooltip (on hover)