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

Switch styles with variables in components #364

Open
Kurosaakii opened this issue Dec 20, 2024 · 1 comment
Open

Switch styles with variables in components #364

Kurosaakii opened this issue Dec 20, 2024 · 1 comment

Comments

@Kurosaakii
Copy link

Hi!

For a new project we intend to use Material as per design system. For this purpose I duplicated the file from the community because of the need of theme personalization, but I don't understand how I could apply the local variables to the components in the file. The file contains both styles and variables, but the components have only styles applied. Due to this, I cannot switch between themes (light, dark, ecc). I checked the theme builder plugin but I didn't see anything related to the switch to variables in components.

How could I apply the updated local variables to components without losing a week of work???
SCR-20241220-pxqc

Thanks!

@Si-UAN
Copy link

Si-UAN commented Jan 28, 2025

Hi,

As a user, I had the same problem. The only solution I found is to manually change the property of a style to a variable. So yeah, a lot of work...

Image

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

No branches or pull requests

2 participants