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
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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