4 ms·
Should be possible via PostCSS and something like https://www.npmjs.com/package/postcss-stylus-parser https://www.npmjs.com/package/postcss-stylus-parser. Haven
by helb 8y ago
Should be possible via PostCSS and something like https://www.npmjs.com/package/postcss-stylus-parser https://www.npmjs.com/package/postcss-stylus-parser. Haven't tried it though, i've moved away from Stylus some time ago as it seemed to be pretty much dead.
- h1d 8y agoI think it's more like 'complete'. What do you miss from Stylus? I prefer it from SCSS when it doesn't require you to type colons, semicolons and brackets for quite less typing and everything you'd expect as a CSS preprocessor is just there. It's TJ's work after all.
- spiralx 8y agoThe only thing lacking about Stylus is the documentation really - the built-in functions page seems to list functions in random order (could be in order of addition to the language I guess!), there's no master index of the various syntax features, its usefulness varies a lot between different features - some are barely mentioned at all - and stuff like arrays, lists and hashes could do with more clarification. Actually, looking at some of my standard Stylus includes, you can't have a block mixin that modifies the individual rules in a block, to be able to create something like important() for $prop, $value in block {$prop}: $value !important I recently discovered a new user style Chrome extension called Stylus after Stylish was removed from the Extension Store for privacy violations, and not only does it allow you to use Stylelint and CSSlint to check your user styles, but it supports an extended type of user style called UserCSS that allows you to use Stylus for writing styles :) It does need you to use colons to prevent the editor and Stylelint complaining, but everything else works: https://gist.github.com/spiralx/8c547d48cfaa0628ee720a16caaaa6bc https://gist.github.com/spiralx/8c547d48cfaa0628ee720a16caaa...