tj / styl

Flexible and fast modular CSS preprocessor built on top of Rework
530 stars 21 forks source link

Will there be user-defined mixins? #10

Open jescalan opened 11 years ago

jescalan commented 11 years ago

Just a quick question - I really like the direction with this project and with rework, but I need to have the ability for users to define custom mixins within their stylesheets (rather than by writing them into the source with javascript as is the case with rework). Is this something you are planning on making a feature of styl?

tj commented 11 years ago

maybe but not any time soon, that's one thing i prefer about rework/styl, just simple and fast and much closer to vanilla css

jescalan commented 11 years ago

Ah, this makes me sad, but ok good to know! While I'm personally happy to write mixins directly in js, I can't expect people to go in and mod the source for a compiler like roots, as much as I would love to upgrade stylus to something cleaner, quicker, and actively developed.

If there's anything you need help with or I could contribute to would be happy to as well :monkey:

vendethiel commented 11 years ago

maybe you can write a plugin that does that

tj commented 11 years ago

cool! thanks man. Roots could always maybe be done in a similar way to Styl where it just delegates the rework methods so you can extend it in the same way. where it'll get tricky is with variables since vars really have to be one pretty large plugin that handles math etc, script-defined mixins would be coupled to that as well, along with any control structures, which is why I'm staying away from that one for now