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

Request for feature: Use variables #55

Open
Yopai opened this issue Oct 29, 2023 · 1 comment
Open

Request for feature: Use variables #55

Yopai opened this issue Oct 29, 2023 · 1 comment

Comments

@Yopai
Copy link
Contributor

Yopai commented Oct 29, 2023

  • Allow declaration of variables (with their type, and their default value) via the meta
  • On a widget, allow changing the value of the variables

... and what do you think about global variables ? Which can be understood of two different ways :

  • Every widget has the same global variables (ex : background-color, background-opacity) I can set individualy on each widget
  • and/or I can set a variable globally for all the widgets
    To be discussed further... :)
@beyluta
Copy link
Owner

beyluta commented Oct 29, 2023

Are you referring to "only" css variables? If that's the case, wouldn't the best approach be to include a default "default.css" file that each .css files inherits from? Then if you want to set specific rules for specific widgets, all you have to do is overwrite the css-rule in the widget itself.

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