I'm searching a css parser for javascript that works like jquery, example:
var style = {
'.test': {
paddingTop: 20,
height: 100,
width: 100,
borderRadius: 5
},
'.test2': {
color: '#888'
}
}
this json must be convert in:
.test{
padding-top: 20px;
height: 100px;
width: 100px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.test2 {
color: #888;
}
thanks!
<style>tag, for instance?paddingTop: '20em', at which point you just have CSS in an awkward format.