Skip to content

Write your CSS in Javascript, Coffeescript, or any other JS flavour

License

Notifications You must be signed in to change notification settings

phazelift/css.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css.js

With all the great css in js tools available today this lib has become totally deprecated. I'll leave it here for some time before removing the repo.


Write CSS with Javascript, Coffeescipt or any other JS flavour

Use css.js to write your CSS in Javascript, having all benefits from a programming language at your disposal.


Key features:

  • virtually eliminate the need for external .css files
  • use variables, databases, sockets, or whatever you need for your CSS
  • work with Number values instead of 'px'/unit juggling
  • fetch any CSS value with ease, in number or string format, with or without unit
  • fetch a specific CSS rule, or fetch 'deep' all rules down the hierarchy
  • dynamically add/change/remove CSS while keeping the DOM in sync
  • set listeners on rules, selectors, properties, and listen 'deep' if you need to
  • support for @keyframes and @media queries
  • build-in prettifier for debugging

About

Write your CSS in Javascript, Coffeescript, or any other JS flavour

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published