Skip to content

[CB] Replace material ui with native css variables and tailwind utilities#4188

Open
sergeyteleshev wants to merge 40 commits intodevelfrom
8433-cb-replace-material-ui-with-native-css-variables-and-tailwind-utilities
Open

[CB] Replace material ui with native css variables and tailwind utilities#4188
sergeyteleshev wants to merge 40 commits intodevelfrom
8433-cb-replace-material-ui-with-native-css-variables-and-tailwind-utilities

Conversation

@sergeyteleshev
Copy link
Copy Markdown
Contributor

@sergeyteleshev sergeyteleshev self-assigned this Mar 3, 2026
@sergeyteleshev sergeyteleshev force-pushed the 8433-cb-replace-material-ui-with-native-css-variables-and-tailwind-utilities branch from 45a3d76 to 53ef45a Compare March 4, 2026 09:08
@sergeyteleshev sergeyteleshev marked this pull request as ready for review March 4, 2026 11:38
Copy link
Copy Markdown
Contributor

@SychevAndrey SychevAndrey left a comment

Choose a reason for hiding this comment

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

This is a big step forward to clean CSS in the project! Good job. 👍🏻
Please check noted places and let's try to use css nesting more and don't forget about layers.

*/

.cm-tooltip.cm-tooltip-autocomplete {
& > :global(ul) {
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.

you use :global here, but this css file is not .module.css
plus for plain css we should use @layer

Comment on lines +35 to +41
background: var(--theme-sub-secondary) !important;
color: var(--theme-on-secondary) !important;
}

& li[aria-selected='true'] {
background: var(--theme-secondary) !important;
color: var(--theme-text-primary-on-light) !important;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it wasn't !important in scss varian, why it changed?

@sergeyteleshev sergeyteleshev requested a review from Wroud March 23, 2026 11:29
Copy link
Copy Markdown
Member

@Wroud Wroud left a comment

Choose a reason for hiding this comment

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

there are a lot of places where shadows / gaps / transitions / animations inlined in the specific styles, they all probably should be part of the design system, not just independent styles for specific components

background-color: currentColor;
border-radius: inherit;
pointer-events: none;
transition: opacity 150ms linear;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this is unique transition, or it should come from the design system?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moved to design system

@sergeyteleshev sergeyteleshev requested a review from Wroud March 26, 2026 11:05
Comment on lines +2 to +8
--duration-micro: 90ms;
--duration-fast: 100ms;
--duration-normal: 150ms;
--duration-medium: 200ms;
--duration-slow: 300ms;
--duration-slower: 350ms;
--duration-slowest: 500ms;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we sure that we need so many of them?
can we choose between 90 and 100 and keep one?
150 and 200?
300 and 350?

for example:
100
200
350
500

Comment on lines +13 to +15
--ease-linear: linear;
--ease-soft: ease;
--ease-in-out: ease-in-out;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

--ease-linear: linear;
--ease-in-out: ease-in-out;

naming usually should not reflect implementation, but purpose or some abstraction
for example, --ease-default: linear;, --ease-action: ease-in-out;

@sergeyteleshev sergeyteleshev requested a review from Wroud March 26, 2026 21:23
height: 16px;
padding: 0;
transition: transform ease-in-out 0.2s;
transition: transform var(--duration-medium) var(--ease-smooth);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need for tailwind import as we dont use @apply here, css variables can be used without problem

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

leaved only where we use @apply

opacity: 0.5;
transform: rotate(-90deg);
transition: transform 0.15s ease-in-out;
transition: transform var(--duration-medium) var(--ease-smooth);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants