FunCSS is an extension of the CSS language where you can define custom functions in JavaScript that run in the browser. So, unlike CSS preprocessor, it compiles CSS-like code to JavaScript.
FunCSS is in the alpha phase and the language is subject to change. Do NOT use it in production.
For some function definition examples, head on to the standard library in stdlib/.
For an introduction about the project, see the slides of my thesis presenatation about FunCSS.
- Styles depending on run-time data (e.g. current time)
- Some event handling
- Polyfill
vw
,vh
,vmin
,vmax
FunCSS is based on Meteor.js's Tracker library for handling reactive updating of styles.
- Reimplement the compiler as a PostCSS plugin pack
- Add support for custom selectors, properties, media queries etc., all of which evaluated in the browser
- Add better event handling support