teamColors
[ "#e31837", "#007bc7", "#fb4f14", "#a5acaf" ]
import { loadLeague } from "@sportsdataverse/sdvplot";
import { teamColors } from "@sportsdataverse/sdvplot/nivo";
await loadLeague("nfl");
const colors = teamColors({ league: "nfl", teams: ["KC", "LAC", "DEN", "LV"], background: "#181a1b" });
["KC", "LAC", "DEN", "LV"].map((id) => colors({ id }));
Tags: docstring · teamColors. All sdvplot examples.