From d3307687ba6d15074f5dc1bcaef1e1b9631a7d84 Mon Sep 17 00:00:00 2001 From: Ryan Keairns Date: Wed, 11 Dec 2024 07:08:00 -0800 Subject: [PATCH] more lovable text colors (#203692) Related to https://github.com/elastic/kibana/issues/199715 Closes https://github.com/elastic/kibana/issues/200160 ## Summary The Kibana ES|QL + Discover teams reviewed the ES|QL editor text colors and found them to be dull relative to current theme settings. This PR makes a slight change to use base colors instead of text colors. **Note** Longer term - and this consideration was preexisting - we could explore adding a text-editor-specific set of tokens for use in Monaco editors. That said, these theme files are not React based, so this might be a challenge to handle via EUI tokens once the old javascript based theme tokens are deprecated. ### Before and after **Editor in 8.X (Amsterdam theme)** **Editor on main (Borealis theme)** **Editor after this PR (Borealis theme)** _Light mode_ _Dark mode_ --- packages/kbn-monaco/src/esql/lib/esql_theme.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/kbn-monaco/src/esql/lib/esql_theme.ts b/packages/kbn-monaco/src/esql/lib/esql_theme.ts index d8223df99bbd1..67a4a518a0d63 100644 --- a/packages/kbn-monaco/src/esql/lib/esql_theme.ts +++ b/packages/kbn-monaco/src/esql/lib/esql_theme.ts @@ -45,7 +45,7 @@ export const buildESQLTheme = ({ // source commands ...buildRuleGroup( ['from', 'row', 'show'], - euiThemeVars.euiColorPrimaryText, + euiThemeVars.euiColorPrimary, true // isBold ), @@ -88,12 +88,12 @@ export const buildESQLTheme = ({ 'desc', 'nulls_order', ], - euiThemeVars.euiColorAccentText, + euiThemeVars.euiColorAccent, true // isBold ), // functions - ...buildRuleGroup(['functions'], euiThemeVars.euiColorPrimaryText), + ...buildRuleGroup(['functions'], euiThemeVars.euiColorPrimary), // operators ...buildRuleGroup( @@ -116,7 +116,7 @@ export const buildESQLTheme = ({ 'percent', // '%' 'cast_op', // '::' ], - euiThemeVars.euiColorPrimaryText + euiThemeVars.euiColorPrimary ), // comments @@ -156,7 +156,7 @@ export const buildESQLTheme = ({ 'closing_metrics_line_comment', 'closing_metrics_multiline_comment', ], - euiThemeVars.euiColorDisabledText + euiThemeVars.euiColorDisabled ), // values