Skip to content

Handle dynamic team colours #14987

@jamesmockett

Description

@jamesmockett

The designs use team colours for numbers and graphs. We don't have any direct control over these as they come from the PA feed and need to work in light and dark mode whilst providing sufficient contrast.

The designs include an example where the team colour is pure white which is swapped out for black text with a border applied to the graph. However, there are other team colours which lack sufficient contrast (some which work in light mode do not work in dark mode) so we need to make this solution more generalised. We could try calculating the contrast instead and swap the colour for solid black (or white in dark mode) if the contrast ratio is insufficient rather than trying to handle specific colours which is not scaleable.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions