Skip to main content
Version: v2.0

Type

This type is used to show the properties of leaderboardCard() options.

PropertyTypeOptionalDefaultDescription
artworkColors[HexColor, HexColor]βœ…Dark: ["#6B46D4", "#2e3cff"], Light: ["#997fe1", "#616bff"]Gradient colors for the top artwork area.
artworkImageURLβœ…Artwork image drawn over the header area.
backgroundColorHexColorβœ…Dark: #141414, Light: #FFFFFFBackground fill color for the main card area.
backgroundImageURLβœ…Background image drawn over the main card area.
borderColors[HexColor, HexColor]βœ…["#e0d440", "#fffa6b"]Gradient border colors for the guild icon.
fallbackFontstringβœ…Absolute file path to a fallback font.
lightbooleanβœ…falseUse the light leaderboard-card theme.
primaryFontstringβœ…Bundled Baloo2-Regular.woff2Absolute file path to the primary font.
rowColors[HexColor, HexColor]βœ…Dark: ["#1e1e1e", "#282828"], Light: ["#f0f0f0", "#dcdcdc"]Even/odd row colors for leaderboard entries.
rowOpacitynumberβœ…1, or 0.5 when backgroundImage is providedRow opacity, clamped to the 0..1 range.
secondaryFontstringβœ…Absolute file path to the secondary font.