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

changing non color variables dynamically #47

Closed
NicoP-tickitto opened this issue Apr 29, 2020 · 1 comment
Closed

changing non color variables dynamically #47

NicoP-tickitto opened this issue Apr 29, 2020 · 1 comment

Comments

@NicoP-tickitto
Copy link

NicoP-tickitto commented Apr 29, 2020

Hi,
So I am trying to create a new theme that can be changed at runtime. I believe I have it working as I am able to change @primary-color at runtime, so that is all good. Although I can not change other variables such as @card-radius.

Does this library only support color variables? Is there a way around this?

How I am changing the variables:

window.less.modifyVars({ '@primary-color': 'green', '@card-radius': '1rem' })

@mzohaibqc
Copy link
Owner

This is not in the scope of this plugin. This is just for color related variables and adding logic for other type of variables can be possible but I don't have time to do that. Any PRs are most welcome.

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