npm.io
0.0.1 • Published 8 years ago

cascade.css

Licence
MIT
Version
0.0.1
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Stars
1

Cascade

An innovative CSS preprocessor made of JavaScript (work in progress)

Exemple of what you can do with Cascade:

const C = require("cascade");

C("button")
  .align("center") // will center (horizontally the element for you
  .background("#292929") // will set the background color to #292929
  .hover(b => b.text.underline(true)) // on hover, the text will appear underlined
  .appendCSS(`
    border-radius: 5px;
  `) // if you want to add native CSS to the element, you can
  
C.save("path/to/file.css")

Keywords