Skip to content

[Epic] Benchmark performance gains of CSS variables for theming/color mode #8902

@acstll

Description

@acstll

✨ Summary

Assess whether leveraging CSS variables for theming could represent significant performance gains, namely in Kibana.

❗ Problem or Opportunity

Handling of theming, color mode, etc in EUI is handled with JavaScript logic. A change means computing a new theme and updating the styles of each and every component on the page. We can let the browser do this, and remove a decent amount of code/logic.

🎯 Value

Performance and DX (less code).

🎯 Urgency

This is inline with the current efforts to improve perceived performance related to how we write and use Emotion. It'll be enabling the actual implementation if there are actual performance gains.

🧠 Feasibility & Direction

We want to:

  • make a PoC that handles theming with CSS variables
  • benchmark performance in Kibana

❓ Open Questions to answer

~

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions