So I'm currently using .Less and want to create a get command to read the .less attributes and push them to an object so that I can then use this data in an angularJS directive. But I'm having trouble figuring out the best way to approach this.
Example .less file contains this:
@lightBg: #f5f8f9;
@lightText: #f5f8f9;
@semiLightText: #e7e7e7;
@semiLightBg: #e7e7e7;
The idea is to get the data from this file and push the data into an object like so:
{name:"@lightBg", hex:"#f5f8f9"};
Example get command in angular so far:
$scope.hexcss = {};
$http.get('mixins.less').then((response) => {
});
Any guidance on the best way to achieve this would be greatly appreciated!