Skip to content

[UIK-5351][theme] Add more variables to theme#3039

Open
j-mnizhek wants to merge 6 commits into
release/v17from
UIK-5351/add-more-variables-to-theme
Open

[UIK-5351][theme] Add more variables to theme#3039
j-mnizhek wants to merge 6 commits into
release/v17from
UIK-5351/add-more-variables-to-theme

Conversation

@j-mnizhek

@j-mnizhek j-mnizhek commented Jul 2, 2026

Copy link
Copy Markdown
Member

Changelog

@semcore/theme

Added

  • 82 new semantic variables
  • fallbacks for 12 renamed variables

Motivation and Context

  • Added 83 new variables to support upcoming changes and updates in the components styles
  • Added TODO comments to styles of some components
  • Updated variable name in the Tooltip example with custom background color (documentation)
  • Add script/tool for syncing variables between code and Figma lib (maybe it's better to add it as a separate pr later)

How has this been tested?

Manually.

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Nice improve.

Checklist:

  • I have updated the documentation accordingly.
  • I have added new tests on added of fixed functionality.

@j-mnizhek j-mnizhek marked this pull request as ready for review July 2, 2026 16:21
Comment thread semcore/base-components/src/components/hint/style/hint.shadow.css Outdated
cursor: pointer;

background: var(--intergalactic-bg-primary-neutral, oklch(1 0 0));
background: var(--intergalactic-bg-primary-neutral, oklch(1 0 0)); /* TODO: --intergalactic-control-select-trigger-normal */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why control-select instead of select ?
why select instead of trigger?

Comment thread semcore/button/src/component/Button/button.shadow.css
Comment thread semcore/button/src/component/Button/button.shadow.css Outdated
Comment thread semcore/checkbox/src/style/checkbox.shadow.css
box-sizing: border-box;
background-size: 12px;
background-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
background-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140)); /* TODO: --intergalactic-control-slider-bar-value */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slider-bar-value-bg?

box-sizing: border-box;
background-color: var(--intergalactic-bg-primary-neutral, oklch(1 0 0));
border: 5px solid var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
background-color: var(--intergalactic-bg-primary-neutral, oklch(1 0 0)); /* TODO: --intergalactic-control-slider-knob */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

knob-bg

STag[theme="additional-invert"],
STagContainerClose[theme="additional-invert"] {
color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949)); /* TODO:--intergalactic-tag-secondary-white-text */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not invert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we have variable for white text in Tags already. It's not semantical initially, because we cannot connect Tag colors to the specific semantic: different products can use, for example, green tag for different purposes. That's why Tag's variables are tied to colors initially. Not sure about invert here (didn't want to rename too many variables), but if it's okay to rename a bit more vars then I'll think about the invert in the name

Comment thread semcore/tooltip/src/style/tooltip.shadow.css
Comment thread semcore/wizard/src/style/wizard.shadow.css
Comment thread tools/theme/src/theme.ts
value: neutral.at(L_BG_PRIMARY),
description: 'Primary background of the interface which contains the main data and information.',
badge_bg_admin: {
value: '{baseTokens.colors.blue.400}',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use colors.blue['400'].value

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

@j-mnizhek j-mnizhek removed the request for review from Valeria-Zimnitskaya July 3, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment