Open Bug 2034468 Opened 6 months ago Updated 2 months ago

Add lwtheme support for design tokens

Categories

(Toolkit :: Themes, task)

task

Tracking

()

People

(Reporter: jooliver, Unassigned)

References

Details

(Whiteboard: [recomp][acorntractors])

Add support for handling [lwtheme] selectors in tokens-config.js. This allows us to convert some token declarations into json that are currently unable to be converted.

See examples in:

Considerations

As part of this work, determine necessary use cases to support.

  • Basic positive [lwtheme] selectors directly from :root should be supported. Example here.
  • There are more complex selectors, for example "forced colors but not lwtheme" as seen here. Determine if this level of complexity is necessary to support.
  • This relates to bug 2034479, which includes restructuring of not([lwtheme]) usage in toolkit/themes/shared/design-system/dist/tokens-shared.css
Whiteboard: [recomp][acorntractors]
Blocks: 2034479
No longer blocks: 2034479

Not a priority for Nova. Will be useful for extracting more definitions from the CSS files.

See Also: → 2034479
You need to log in before you can comment on or make changes to this bug.