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 Name | Default Color (Light Theme) | Example Usage in Widget |
---|---|---|
--accent-color | FF4081 | Card headings, go button, link hover, etc |
--light-accent-color | F06292 | |
--divider-color | DBDBDB | |
--dark-divider-color | CCC | |
--primary-text-color | 212121 | Main font color |
--secondary-text-color | 737373 | Light font color |
--disabled-text-color | 9b9b9b | Disabled font color |
--light-text-color | 424242 | |
--lighter-text-color | 616161 | |
--lighter-2-text-color | 757575 | |
--lightest-text-color | BDBDBD | |
--lightest-2-text-color | E0E0E0 | |
--accented-text-color | 448AFF | |
--secondary-accented-text-color | 546E7A | |
--error-color | DD2C00 | Error messages (red) |
--success-color | 4CAF50 | Success messages (green) |
--card-background-color | FFF | Background of widget card |
--light-card-background-color | F5F5F5 | |
--dark-card-background-color | EEE | |
--secondary-button-color | 42A5F5 | |
--light-secondary-button-color | 64B5F6 | |
--dark-secondary-button-color | 2196F3 | |
--error-button-color | FF5252 | Delete button (red) |
--menu-selected-background-color | 9EC2FF | List row color (response card) |
--light-menu-selected-background-color | CCDFFF | |
--dark-menu-selected-background-color | 64B5F6 | |
--tf-input-focus-color | 2979FF | |
--tf-quick-select-unchecked-button-color | E0E0E0 | Multi select (Request card) |
--tf-quick-select-checked-button-color | 448AFF | Multi select (Request card) |
--tf-quick-select-checked-highlight-color | 619DFF | Multi select (Request card) |
--paper-toast-background-color | 323232 | Toast Message |
--paper-toast-color | F1F1F1 | Toast Message |
--paper-tooltip-background | 616161 | Tooltip (on hover) |
Updated over 4 years ago