Docs
NFLBar is one script and three custom elements. Load the script once per page, then place elements anywhere.
<script src="https://cdn.nflbar.com/nflbar.js" defer></script>
<nfl-bar theme="dark" tabs="scores,schedule,leaders" team="KC" accent="#F5B700"></nfl-bar>
<nfl-card type="standings" division="AFC West"></nfl-card>
<nfl-pill team="PHI"></nfl-pill>
Attributes
| Element | Attribute | Values |
|---|---|---|
nfl-bar | theme | dark (default) | light |
nfl-bar | team | Team abbreviation to pin first, e.g. KC, PHI, LA |
nfl-bar | tabs | Comma list of scores, schedule, leaders |
nfl-bar | mode | ticker (continuous scroll, default) | static |
nfl-bar | accent | Any CSS color for the active tab and highlights |
nfl-bar | flat | Square corners and no border, for docking at the very top of a page |
nfl-bar | skin | default | neon | led | varsity | turf | terminal | pride | broadcast |
nfl-bar | preset | gold | sky | violet | orange | midnight | slate | paper | cream | team (uses the pinned team's colors) |
nfl-bar | bg, color, muted, border, win | Any CSS color; overrides the skin and preset |
nfl-bar | motion | off disables every animation (reduced-motion visitors never get any) |
nfl-card | type | standings | team | game | leaders |
nfl-card | division | e.g. AFC West (standings) |
nfl-card | team | Team for team/game cards (also picks the division for standings) |
nfl-card | stat | pass_yds | rush_yds | rec_yds | td | ppr (leaders) |
nfl-pill | team | Required. Team abbreviation |
nfl-pill | show | last (default) | next |
nfl-pill | theme / size | light, and size=sm for inline text |
all | lang | en | es | pt | de | fr | it | nl | ja | ko | zh, or auto to follow your page's <html lang>. Kickoff times follow the language's format |
all | site | Your saved embed id from your account, for install stats |
Theming with CSS
Every color is a CSS variable, so you can also theme the bar from your own stylesheet. Attributes win over CSS, CSS wins over presets and skins.
nfl-bar {
--nb-bg: #111; --nb-fg: #fafafa; --nb-mut: #a1a1aa;
--nb-line: #27272a; --nb-win: #fff; --nb-acc: #22c55e;
}
Docking the bar at the top of your site
<nfl-bar flat style="position:sticky;top:0;z-index:50"></nfl-bar>
JSON feed for apps
Everything the widgets draw is in two public, CDN-cached files. Use them in iOS, Android, React Native or anything that speaks HTTP.
| URL | Contents | Refresh |
|---|---|---|
https://cdn.nflbar.com/v1/feed.json | Teams and colors, last/this/next week games with lines, standings, leaders, per-game leaders, injuries | Nightly + Monday morning |
https://cdn.nflbar.com/v1/live.json | In-game state keyed by ESPN event id (the espn field on each game): score, quarter, clock, possession, down and distance | Every minute during games |
https://cdn.nflbar.com/v1/season-2026.json | Every game of the season | Nightly |
Where the data comes from
Schedules, results, lines, team colors, player stats and injury reports come from nflverse, the open-source project behind nfl_data_py and nflreadpy. Standings are computed from results and sorted by win percentage, then point differential; they do not apply the NFL's full tiebreaker rules.
Privacy
The embed sets no cookies and collects no personal data. It sends an anonymous impression event (host domain, widget type) so we can count installs.