Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Functional

The behavior in some elements can be changed or turned off completely, those options are the following:

Name

Applies to

Default behavior

Description

Tabs

Navigation controls (tabs in the bottom)

All tabs are shown by default.

Controls main navigation in the GameTracker, user is able to move between different tabs in order to see specific content. A subset of tabs could be defined in order to hide certain options. The following tabs are available:

  • Field/pitch

  • Player stats

  • Team stats

Team icon/logo

Scoreboard

Each team has a customized helmet based on brand colors and name abbreviation.

Whether or not to hide team icon/logo.

Styling

Theme options

The Game Tracker’s appearance can be customized by changing values in the Material UI theme. By default it looks like this:

But we can change several aspects such as the following:

Name

Applies to

Default value

Description

primaryColor.main

Possession indicator, Tab highlight, buttons

#0000DC (Light theme)
#E1FF67 (Dark theme)

Color used to highlight elements, is implemented in backgrounds, icons and some decorative elements

primaryColor.contrastText

Buttons

#FFFFFF (Light theme)
#151B34 (Dark theme)

Text color to be used when background is set to primary color

background.default

Game Tracker background

#FFFFFF (Light theme)
#151B34 (Dark theme)

Background color for the Game Tracker

background.paper

Cards, scores

rgba(21, 27, 52, 0.04) (Light theme)
rgba(255, 255, 255, 0.1) (Dark theme)

Background color for contained elements such as cards and scores within the scoreboard

text.primary

Most elements

#151B34 (Light theme)
#FFFFFF (Dark theme)

Text color used by default in most elements

typography.fontFamily

Most elements

'Red Hat Display'

Font to be used in the Game Tracker

For example, by using this options a Game Tracker can be styled to be used in Fanduel’s website and look like this:

Advanced customization

We are able to do more specific customization upon request through advanced themes powered by CSS overrides, it could include changes such different font size for a particular element, icon size, spacing changes and more.

Changes powered by advanced themes are just for presentation, it can’t provide new functionality.

To have a better idea of what could be achieved through an advanced theme, let’s make some changes in the scoreboard as an example. We would start with something like this:

We could write and advanced theme that targets several elements in the scoreboard so that we can change its appearance through CSS overrides:

partialTheme: {
  GameTrackerCompetitor: {
    scoreWrapper: {
      background: '#000',
      borderRadius: 6,
      color: '#fff',
      fontSize: 18
      height: 50,
      width: 50
    },
    timeoutContainer: {
      width: '1.5em',
      gap: '6px'
    },
    timeout: {
      borderRadius: '50%'
    },
    teamName: {
      textTransform: 'none'
    },
    possessionIcon: {
      color: 'hotpink'
    }
  }
}

By applying that theme, the scoreboard would start looking like this:

  • No labels