Theming
Set CSS variables on the widget container (or a parent). All blocks share them.
| Attribute | Required | Description |
|---|---|---|
--sx-accent | Accent: selected controls, live state. | |
--sx-accent-text | Text on the accent color. | |
--sx-background | Background. | |
--sx-text | Primary text. | |
--sx-muted | Secondary background: competition headers, stripes. | |
--sx-secondary-text | Secondary text. | |
--sx-border | Borders. | |
--sx-font-family | Font family. | |
--sx-radius | Corner radius. |
#livescore {
--sx-accent: #285dc1;
--sx-font-family: Georgia, serif;
--sx-radius: 4px;
}
#livescore .sx-league-header { border-left: 3px solid var(--sx-accent); }Finer overrides can target .sx-widget, .sx-match-widget, .sx-match-row, .sx-team-name, .sx-score, .sx-league-header and the [data-block] and [data-status] attributes. Widgets adapt to their container's width, not the screen: a narrow column gets the mobile layout.
Language
Style
Accent
Width
Preview