Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

haha, thats a funny thought. I like CSS. I would love for it to have variables so I could consolidate changes and edit them via JS. Sorta like all the CSS-libraries.

o.o am i doing it??



CSS does have variables: http://www.w3.org/TR/css-variables/

Of course, this being the web you’re somewhat limited in browser support: http://caniuse.com/#feat=css-variables


I highly recommend checking out LESS -- even if you ignore all of it's features, being able to define variables alone is worth it :)


Yes i have been meaning too




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: