@canvacord/stylesheetdeprecated

Stylesheet builder for canvacord.

Usage no npm install needed!

<script type="module">
  import canvacordStylesheet from 'https://cdn.skypack.dev/@canvacord/stylesheet';
</script>

README

@canvacord/stylesheet

Stylesheet builder for canvacord.

Installation

$ npm i @canvacord/stylesheet

Example

const Stylesheet = require("@canvacord/stylesheet");
const stylesheet = new Stylesheet.Rank({ overwrite: true });

stylesheet.create({
    avatar: {
        rounded: true
    }
});

console.log(stylesheet.toJSON());

/*
{ name: 'RANK', styles: { avatar: { rounded: true } } }
*/