メインコンテンツまでスキップ

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.
artworkImageURLArtwork image drawn over the header area.
backgroundColorHexColorDark: #141414, Light: #FFFFFFBackground fill color for the main card area.
backgroundImageURLBackground image drawn over the main card area.
borderColors[HexColor, HexColor]["#e0d440", "#fffa6b"]Gradient border colors for the guild icon.
fallbackFontstringAbsolute file path to a fallback font.
lightbooleanfalseUse the light leaderboard-card theme.
primaryFontstringBundled 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.
rowOpacitynumber1, or 0.5 when backgroundImage is providedRow opacity, clamped to the 0..1 range.
secondaryFontstringAbsolute file path to the secondary font.