Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style. Installing Stylus is very easy once you have Node.js. So get the binaries for your platform and make sure that they also include npm, Node’s package manager. Stylus features powerful in-language function definitions. Function definitions appear identical to mixins; however, functions may return a value. Optional arguments may default to a given expression. With Stylus we may even default arguments to earlier arguments! Stylus is an innovative stylesheet language that compiles down to CSS. Inspired by SASS, Stylus is built with node.js and capable of running in the browser. Stylus is “pythonic” (i.e. indentation-based). Whitespace is significant, so we substitute { and } with an indent, and an outdent. Stylus, just like CSS, allows you to define properties for several selectors at once through comma separation.

Features

  • Optional colons, optional semi-colons, and optional commas
  • Optional braces, variables, and interpolation
  • Mixins, arithmetic, type coercion, and dynamic importing
  • Conditionals, iteration, nested selectors, and parent referencing
  • Variable function calls, lexical scoping, and built-in functions (over 60)
  • In-language functions, optional compression, and optional image inlining

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow stylus

stylus Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of stylus!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Programming Languages

Registered

2021-05-28