LeaderboardCardOptions
Sur cette page
Type
Ce contenu n’est pas encore disponible dans votre langue.
This type is used to show the properties of leaderboardCard() options.
| Property | Type | Optional | Default | Description |
|---|---|---|---|---|
| artworkColors | [HexColor, HexColor\] |
✅ | Dark: ["#6B46D4", "#2e3cff"], Light: ["#997fe1", "#616bff"] |
Gradient colors for the top artwork area. |
| artworkImage | URL | ✅ | Artwork image drawn over the header area. | |
| backgroundColor | HexColor | ✅ | Dark: #141414, Light: #FFFFFF |
Background fill color for the main card area. |
| backgroundImage | URL | ✅ | Background image drawn over the main card area. | |
| borderColors | [HexColor, HexColor\] |
✅ | ["#e0d440", "#fffa6b"] |
Gradient border colors for the guild icon. |
| fallbackFont | string | ✅ | Absolute file path to a fallback font. | |
| light | boolean | ✅ | false |
Use the light leaderboard-card theme. |
| primaryFont | string | ✅ | Bundled Baloo2-Regular.woff2 |
Absolute file path to the primary font. |
| rowColors | [HexColor, HexColor\] |
✅ | Dark: ["#1e1e1e", "#282828"], Light: ["#f0f0f0", "#dcdcdc"] |
Even/odd row colors for leaderboard entries. |
| rowOpacity | number | ✅ | 1, or 0.5 when backgroundImage is provided |
Row opacity, clamped to the 0..1 range. |
| secondaryFont | string | ✅ | Absolute file path to the secondary font. |