JCSS (Javascript enabled CSS)


Ever wished you had power of scripting in CSS? JCSS is your answer. Include JCss.js file in your html page. (It's only 4 kb)

<script type="text/javascript" src="JCss.js"></script>

Then import your CSS using following call:

<script type="text/javascript">
    CssRuntime.Import("MyCssFile.css");
</script>

See following examples:

...loading document

What do you think? Email me on ksamir@gmail.com. (Samir Khobragade.)

There are some good css precompilers available. Take a look at them:


HSS compiler by Nicolas Cannasse
Sass(Syntactically Awesome StyleSheets)
CleverCSS