Skip to content

Explore using CSS custom properties to set --inverse styles in bulk #6486

@romaricpascal

Description

@romaricpascal

What

Explore if we can use CSS Custom properties to create a wrapper class within which:

  • background is set to the brand colour (or a configurable arbitrary colour)
  • text is set to white (or a configurable arbitrary colour to ensure adequate contrast)
  • components like link or button automatically use their --inverse style without users having to set --inverse modifiers to them
  • possibly other components see their styles adapted?

Besides the technical exploration, we should also identify if new design concept emerge (eg. colour pairings) and how to document such feature (likely an object in our ITCSS architecture).

Why

To understand if such feature is worth implementing to simplify implementations of white on blue sections.

Who needs to work on this

Developers, Designers, Tech writer

Who needs to review this

Developers, Designers, Tech writer

Done when

  • We've run a spike to check technical feasibility, emerging design concepts and necessary documentation changes
  • We've decided whether we'd go ahead with this, and if so written the relevant issues for the implementation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions