Re:JSON stylesheets - screw CSS frameworks, use JavaScript -...
by JimBastard on Monday December 21, 2009 @07:17PM
(#1008996)
you could implement a parser that used .addClass() and .removeClass() instead of .css()
if i release an official parser i think it would use those methods.
the whole point is to store your CSS in JSON and parse it with JS, the libraries used to do the parsing / assigning are kinda arbitrary.
Why not just have the dynamic style in a separate class next to the base class it's applied to and then use jQuery.addClass?