microsoft-adaptivecards-json-to-scss
v1.0.0
Published
Convert AdaptiveCards HostConfig from JSON to an SCSS map
Downloads
4
Readme
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)