Customization
Paint the sportsbook in your brand colors with the skin you send in extra_data on game launch. The same skin works for the Sports Widget and the lobbies.
Preview
Pick a palette or change any color to see how the sportsbook looks with it. The preview paints each part with the same rules as the platform. The screens of each provider differ, but every color lands on the same kind of element.
{
"extra_data": {
"skin": {
"stops": [
"#07030a",
"#16051e",
"#31123f",
"#4a2159"
],
"accent": "#f5c20a",
"active": "#ff6b3d",
"text": "#ffffff",
"muted": "#94a3b8",
"border": "#603172",
"ink": "#000000"
}
}
}How it works
Send the colors in extra_data[skin] when you launch the sportsbook, next to the other extra_data values of the game launch. Colors are hexadecimal: #rgb or #rrggbb.
- Digitain always applies the skin.
- First applies it only on some accounts, depending on how the account is set up; on the others the sportsbook keeps its own colors. Ask your Content360 contact whether yours does.
Keys
Send only the keys you want to change: each key you leave out takes its default.
| Key | What it colors | Default |
|---|---|---|
stops | Backgrounds, from darkest to lightest. At least 2; we recommend 4. | #000000#141414#2e2e2e#3d3d3d |
accent | Your brand color: main buttons, the value of each odd, the line under the active tab, counters and favorites. | #ff8000 |
active | The odd the player picked. | The accent |
text | Main text. | #ffffff |
muted | Secondary text: times, leagues, labels and inactive tabs. | #b0b0b0 |
border | Lines between rows, sections and fields. | #1f1f1f |
ink | Dark reference color. The text over accent and active is ink or text, whichever reads better on that color. | #000000 |
Where each color applies
stops is a scale: with 4 stops they sit at 0%, 22%, 62% and 100% of it, and any other count is spread evenly. Each part of the sportsbook takes the color of the scale at its own point:
| Part | Point of the scale |
|---|---|
| Page background | 0% (the first stop) |
| Header and match rows | 22% |
| Odds | 34% |
| League headers | 36% |
| Bet slip | 50% |
| Active tab | 52% |
| Selection in the bet slip | 62% |
| Stake input | 78% |
Example
The object you send inside extra_data:
"extra_data": {
"skin": {
"stops": ["#07030a", "#16051e", "#31123f", "#4a2159"],
"accent": "#f5c20a",
"active": "#ff6b3d",
"text": "#ffffff",
"muted": "#94a3b8",
"border": "#603172"
}
}
Since the game launch is a GET, each value travels in the query string with brackets, and # encoded as %23:
extra_data%5Bskin%5D%5Bstops%5D%5B0%5D=%2307030a&extra_data%5Bskin%5D%5Bstops%5D%5B1%5D=%2316051e&extra_data%5Bskin%5D%5Bstops%5D%5B2%5D=%2331123f&extra_data%5Bskin%5D%5Bstops%5D%5B3%5D=%234a2159&extra_data%5Bskin%5D%5Baccent%5D=%23f5c20a&extra_data%5Bskin%5D%5Bactive%5D=%23ff6b3d&extra_data%5Bskin%5D%5Btext%5D=%23ffffff&extra_data%5Bskin%5D%5Bmuted%5D=%2394a3b8&extra_data%5Bskin%5D%5Bborder%5D=%23603172
Sports Widget and lobbies
- The Sports Widget takes the same object in its
skinoption. - The lobbies accept the same palette in
extra_data[skin]: they usestops,accent,text,borderandink, and ignoreactiveandmuted.