1.0.0 • Published 7 years ago
microsoft-adaptivecards-json-to-scss v1.0.0
microsoft-adaptivecards-json-to-scss
Allows creation of an SCSS map (a structured variable) via JSON
Installation
npm install microsoft-adaptivecards-json-to-scss
Usage
Start with a JSON variable of Adaptive Cards Host Config. See the default for an example.
var json2scss = require('microsoft-adaptivecards-json-to-scss');
var hostConfig = {
supportsInteractivity: true,
strongSeparation: {
spacing: 40,
lineThickness: 1,
lineColor: "#EEEEEE"
},
fontFamily: "Segoe UI",
.
.
.
};
var scss = json2scss(config);
console.log(scss); //now a structured SCSS variable (a map)
1.0.0
7 years ago