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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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