STYLUS(1)

πŸ“¦
version 0.59.0+~0.48.38 Β· 4 versions
, in debian bookworm, ubuntu noble

πŸ’… STYLUS(1) β€” like, the manual, but make it make sense ✨

okay bestie, listen up β€” this is the man page for stylus, and it's filed under User Commands in the manual. It's the compiler for that expressive, robust, feature-rich CSS language you keep hearing about. πŸŽ€


🌸 NAME 🌸

stylus β€” expressive, robust, feature-rich CSS language compiler πŸ’–


✨ DESCRIPTION ✨

πŸ¦‹ How you actually run it

Usage: stylus [options] [command] [< in [> out]]

[file|dir ...]

No cap, that's the whole vibe: options, then optionally a command, then either pipe stuff in with < and out with >, or just hand it a pile of files and dirs. Easy. 🌈


πŸŽ€ Commands

help [<type>:]<prop>

Opens help info at MDN for <prop> in your default browser. Optionally searches other resources of <type>, and the valid types are:

  • safari
  • opera
  • w3c
  • ms
  • caniuse
  • quirksmode

So you literally just ask and it yeets you straight to the docs. Main character research energy. πŸ”₯


πŸ‘‘ Options

Every single one, bestie. Not skipping a thing. Periodt.

  • -i, --interactive β€” Start interactive REPL 🫢
  • -u, --use <path> β€” Utilize the Stylus plugin at <path> πŸ”Œ
  • -U, --inline β€” Utilize image inlining via data URI support πŸ–ΌοΈ
  • -w, --watch β€” Watch file(s) for changes and re-compile πŸ‘€
  • -o, --out <dir> β€” Output to <dir> when passing files πŸ“
  • -C, --css <src> [dest] β€” Convert CSS input to Stylus πŸ”„
  • -I, --include <path> β€” Add <path> to lookup paths πŸ—ΊοΈ
  • -c, --compress β€” Compress CSS output πŸ—œοΈ
  • -d, --compare β€” Display input along with output πŸ‘―
  • -f, --firebug β€” Emits debug infos in the generated CSS that can be used by the FireStylus Firebug plugin πŸ›
  • -l, --line-numbers β€” Emits comments in the generated CSS indicating the corresponding Stylus line πŸ”’
  • -m, --sourcemap β€” Generates a sourcemap in sourcemaps v3 format πŸ—ΊοΈ
  • -q, --quiet β€” Less noisy output 🀫
  • --sourcemap-inline β€” Inlines sourcemap with full source text in base64 format πŸ“¦
  • --sourcemap-root <url> β€” "sourceRoot" property of the generated sourcemap 🌳
  • --sourcemap-base <path> β€” Base <path> from which sourcemap and all sources are relative πŸ“
  • -P, --prefix [prefix] β€” prefix all css classes 🏷️
  • -p, --print β€” Print out the compiled CSS πŸ–¨οΈ
  • --import <file> β€” Import stylus <file> πŸ“₯
  • --include-css β€” Include regular CSS on @import πŸ’Œ
  • --ext β€” Specify custom file extension for compiled file, default .css πŸ“Ž
  • -D, --deps β€” Display dependencies of the compiled file πŸ•ΈοΈ
  • --disable-cache β€” Disable caching 🚫
  • --hoist-atrules β€” Move @import and @charset to the top ⬆️
  • -r, --resolve-url β€” Resolve relative urls inside imports πŸ”—
  • --resolve-url-nocheck β€” Like --resolve-url but without file existence check πŸ™ˆ
  • -V, --version β€” Display the version of Stylus 🏷️
  • -h, --help β€” Display help information πŸ†˜

tiny heads-up, bestie: --ext takes its value but the original doesn't wrap it in angle brackets the way the others do β€” so that's exactly how it's written here too. Fidelity, queen. πŸ’…

And that's the whole page!! You now know every flag, every command, every path placeholder, and you didn't even have to read boring manpage prose. Iconic behaviour, honestly. πŸ¦‹βœ¨

Kisses, and go compile something cute. πŸ’œπŸŽ€


This has been stylus version 0.59.0, from December 2022 β€” that's the source and date, bestie, logged for the archives. 🌸 Byeee! πŸ‘‘

πŸ“¦ where this page comes from