Skip to content

lightweight Javascript to set and scale css variable values

License

Notifications You must be signed in to change notification settings

compmeist/scale_css_variables_js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

scale_css_variables_js

lightweight Javascript to set and scale css variable values

Features:

  • will use the existing units of your css vars (e.g. 1.0em -> 1.2em, or 25px -> 33px)
  • controls precision of floating point numbers
  • lightweight
  • works with any scope css that is accessible by querySelector()

Drawbacks:

  • document.querySelector must be run ahead of time
  • does not create any css variables

About

lightweight Javascript to set and scale css variable values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published