Theme config
To change the stylings of the SPA, use method updateThemeConfig
in the Betting API instance.
ThemeConfig
interface:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Info
Above are the default theme values. It is possible to change only the values you need
Warning
Palette supports only hex format for color. Fonts must be loaded on the page
Some palette
properties:
fontBaseSize
is used as base font size. Based on this variable, we generate several more internal variables with a certain multiplier
primaryColor
is used for the main background of the application.
primaryText
is used for the color of important text, such as match headers or competitor names.
primaryAccent
is used for the color of accent elements, such as active tabs, active icons, and the background color of some elements like odd buttons.
primaryAccentText
is used for the color of text of elements with primaryAccent background color. If the value is omitted, then the primaryText variable will be used instead.
secondaryColor
is used for the background color of UI elements, except for the main background.
secondaryText
is used for the text color of non-important or non-active UI elements, and also for the color of icons, such as the ‘Free Bet’ icon and the ‘Betslip is empty’ icon.
offsetTop
is used for sticky categorizer and betslip. Allows you to solve a common problem with a fixed header on the site: