You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All usages of JSON tokens have been removed in favor of color tokens, where possible.
Exported legacy JSON tokens will be deprecated in the future and will eventually be replaced with tokens from the EUI theme. We'd appreciate it if teams could spend some time migrating away from these.
Please discontinue use of these and replace them with a JS variable from our theme context.
JSON tokens are anything from:
@elastic/eui/dist/eui_theme_light.json
@elastic/eui/dist/eui_theme_dark.json
import { euiThemeVars } from '@kbn/ui-theme'
As many usage of euiThemeVars are in styled-components , explore team is planning to use this opportunity completely remove styled-components and migrate to emotion/react .
The content you are editing has changed. Please copy your edits and refresh the page.
Context
Changes are made to EUI that will be visible to end-users in Kibana:
These changes are available in a new theme called Borealis.
See parent ticket for how to use the new theme and labels to add to the PR for tracking
Description
All usages of JSON tokens have been removed in favor of color tokens, where possible.
Exported legacy JSON tokens will be deprecated in the future and will eventually be replaced with tokens from the EUI theme. We'd appreciate it if teams could spend some time migrating away from these.
Please discontinue use of these and replace them with a JS variable from our theme context.
JSON tokens are anything from:
For example:
https://github.com/elastic/kibana/blob/main/packages/kbn-visualization-ui-components/components/dimension_buttons/palette_indicator.tsx#L32
Before:
After:
As many usage of euiThemeVars are in styled-components , explore team is planning to use this opportunity completely remove styled-components and migrate to emotion/react .
Tasks
To test
Running Kibana with the Borealis theme
In order to run Kibana with
Borealis
, you'll need to do the following:Set the following in kibana.dev.yml:
uiSettings.experimental.themeSwitcherEnabled: true
Run Kibana with the following environment variable set:
KBN_OPTIMIZER_THEMES="borealislight,borealisdark,v8light,v8dark" yarn start
This will expose a toggle under Stack Management > Advanced Settings > Theme version, which you can use to toggle between Amsterdam and Borealis.
The text was updated successfully, but these errors were encountered: