Less
A CSS preprocessor that adds variables, nesting and mixins
What it is
Less is short for Leaner Style Sheets. It is a backwards-compatible extension of CSS, so an existing stylesheet can simply be renamed and used. Less.js converts it to a normal stylesheet, running in Node.js or directly in a browser. Set beside Sass it has less syntax, with simpler logic and module handling.
Key features
- Variables: Names starting with @ hold brand colours and spacing in one place
- Mixins: Treat a group of styles as a small tool and call it in other rules
- Functions and maths: Work out a darker shade or half a width on the spot
- Online playground: See the compiled CSS appear while you type
Who it's for
Frontend developers who maintain Bootstrap 3, an older Ant Design theme or a codebase already full of .less files have the best reason to read it. New projects have fewer, since native CSS now includes variables and nesting and Sass goes further. Compiling in the browser slows loading, so convert files before launch. Less is free to use.
Front-end & Site Building
- Stylus — A CSS preprocessor where braces and semicolons are optional
- Shape Divider App — Create responsive SVG shape dividers in the browser, adjust the form and layout, then export them to a web project.
- Recharts — Compose charts from React components, one JSX tag at a time
- Astro — A web framework that ships HTML first and JavaScript only where needed
- Flutter — Write once in Dart, ship to iOS, Android, web and desktop
- Framer Motion — Declarative React animations through props, now renamed Motion