Open Bug 1871490 Opened 1 years ago Updated 1 year ago

Adapt contentTheme.js to fit with our design tokens

Categories

(Firefox :: Theme, task)

task

Tracking

()

People

(Reporter: mstriemer, Unassigned)

References

Details

(Whiteboard: [recomp])

The contentTheme.js file defines some CSS variables based on a user's installed webextension theme. These variables have different names than the design tokens, but may actually be for the same thing, eg --newtab-background-color is intended to set the page's background colour, but this is normally --in-content-page-background (and will likely move to --color-canvas from the design tokens work)

Since these variables are using a different name, a component that is designed with out design tokens won't adapt to the theme without the hosting page manually overwriting our design tokens to match the contentTheme.js variables

Ideally contentTheme.js can set these variables in such a way that components can adapt to them and hosting pages don't need to special case their page to use them

Whiteboard: [fidefe-reusable-components] → [recomp]
You need to log in before you can comment on or make changes to this bug.