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

Feature request: add css custom properties to simplify downstream styling #136

Open
magicDGS opened this issue Dec 1, 2024 · 0 comments

Comments

@magicDGS
Copy link
Contributor

magicDGS commented Dec 1, 2024

Some specific styling downstream might require using pixel sizes that depends on draw configuration and then hardcoded at the attribute (i.e., on rect, the width and position attributes), or there are hardcodes styles that are commonly overwritten when custom styling (i.e., font-* styles on different locations or colors).

Using custom properties would help in overriding some of them on specific keys to simplify the process, by overriding them on some selectors. In addition, it can simplify the process of customization and split it on two configuration ways (that can be combined):

  • Add a configuration entry for custom-properties override, that will just enable to use different fonts, colors, sizes, etc. and enable some basic configuration without advance css.
  • Using the current configuration for extra styles, would enable to use calculations and override of custom properties for more advance styling
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

1 participant