Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[maps] replace euiPaletteX with @kbn/palette package #208077

Open
nreese opened this issue Jan 23, 2025 · 1 comment
Open

[maps] replace euiPaletteX with @kbn/palette package #208077

nreese opened this issue Jan 23, 2025 · 1 comment
Labels
Feature:Maps Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas technical debt Improvement of the software architecture and operational architecture

Comments

@nreese
Copy link
Contributor

nreese commented Jan 23, 2025

In preparation for the new Borealis theme, @elastic/kibana-visualizations change palettes in kibana. Previously palettes were defined in eui by static imports (i.e. euiPaletteColorBlind). But we now need a way to make these palettes theme-aware to toggle between the old Amsterdam palettes and the new Borealis palettes. In addition, we had multiple definitions of the same palettes.

First to make it easier @elastic/kibana-visualizations centralized the palette definitions in the new @kbn/palette package. This provides two methods for retrieving theme-aware palettes either getKbnPalettes or useKbnPalettes. You can read more about these changes in kibana#201015

Maps uses euiPaletteX calls directly and these should be transitioned to @kbn/palette equivalents. See eui#8112 for more details.

@nreese nreese added Feature:Maps Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas technical debt Improvement of the software architecture and operational architecture labels Jan 23, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Maps Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas technical debt Improvement of the software architecture and operational architecture
Projects
None yet
Development

No branches or pull requests

2 participants