arguiot / Cascade

[WIP] An innovative CSS preprocessor made of JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cascade

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

Example of what you can do with Cascade:

const C = require("cascade");

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

C.save("path/to/file.css", "path/to/file.js")

About

[WIP] An innovative CSS preprocessor made of JavaScript

License:MIT License


Languages

Language:JavaScript 100.0%