News for hackers. Stuff that matters.
Re:JSON stylesheets - screw CSS frameworks, use JavaScript -... by dasil003 on Monday December 21, 2009 @06:48PM (#1008922)
in my rich internet applications i will use traditional CSS for the initial "base" state of the application and then JSSS for all further states which are generated via JS (no page-reload)

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?

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.