Type
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. |