Skip to content

Theme Configuration

The Theme interface defines the structure for customizing the visual appearance of the betting system. It consists of three main sections: Font, Palette, and Radius.

The theme can be configured in two ways:

  1. At application load: By providing theme options in bettingOptions through bettingLoader.load (AppInitOptions).
  2. Dynamically at runtime: By calling the updateThemeConfig method of the BettingAPI (updateThemeConfig).

Font

Defines the typography settings for the application.

Property Type Description Default Value Example
fontSans string The primary sans-serif font family. "Roboto, sans-serif" "Arial, sans-serif"
baseFontSize string The base font size for text elements. "16" "14px"

Palette

Defines the color scheme for the interface, including primary, secondary, and accent colors, as well as text and notification colors.

Property Type Description Default Value Example
colorsPrimary1 string? Primary color variant 1. "#ffffff" "#FF5733"
colorsPrimary2 string? Primary color variant 2. "#000000" "#FF7849"
colorsSecondary1 string? Secondary color variant 1. "#111111" "#1E90FF"
colorsSecondary2 string? Secondary color variant 2. "#212121" "#4682B4"
colorsSecondary3 string? Secondary color variant 3. "#797979" "#5F9EA0"
colorsAccent1 string? Accent color variant 1. "#00ebaa" "#FFD700"
colorsAccent2 string? Accent color variant 2. "#f6262e" "#FFA500"
colorsAccent3 string? Accent color variant 3. "#fff500" "#FF4500"
textButton string? Color for button text. "#000000" "#FFFFFF"
textPrimary string? Primary text color. "#ffffff" "#000000"
textSecondary string? Secondary text color. "#bcbcbc" "#666666"
notificationBlocked string? Color for blocked notifications. "#797979" "#D32F2F"
notificationError string? Color for error notifications. "#f6262e" "#F44336"
notificationInfo string? Color for informational notifications. "#0852FF" "#2196F3"
notificationSuccess string? Color for success notifications. "#00EB81" "#4CAF50"
notificationWarning string? Color for warning notifications. "#fff500" "#FFC107"

Radius

Defines the border radius settings for UI components.

Property Type Description Default Value
rounded2 string? Xxs "2px"
rounded4 string? Xs "4px"
rounded6 string? S "6px"
rounded8 string? M "8px"
rounded12 string? L "12px"
rounded16 string? Xl "16px"
rounded24 string? Xxl "24px"

Theme config helper

Theme config helper designed to simplify the theme customization process. To access and use it, follow these steps:

  1. Open the Demo Site: Navigate to the demo site using the following URL: https://demo-v2.data.bet

  2. Enable the Helper via Console: Open your browser's developer console (usually by pressing F12). Then, paste and execute the following command:

    1
    localStorage.setItem('isHelper', true)
    
  3. Reload the Page: Refresh the demo site page to apply the changes. The Theme Config Helper should now be active.

Theme Helper

Using this helper, you can easily configure and preview the theme in real-time and copy the ready-made theme configuration for use in your project.