package
Leaner CSS
npm install lessGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Latest published Sep 2, 2026
alpha
cloudhead
alexis@cloudhead.io
Estimated unpacked size across 3 packages.
3.1 MB
Includes dependencies.
2 direct · 2 outdated
^3.0.5
4.1.5
^1.0.1
2.0.0

The dynamic stylesheet language. lesscss.org
Less extends CSS with variables, mixins, functions, nesting, and more — then compiles to standard CSS. Write cleaner stylesheets with less code.
@primary: #4a90d9;
.button {
color: @primary;
&:hover {
color: darken(@primary, 10%);
}
}npm install lessimport less from 'less';
const output = await less.render('.class { width: (1 + 1) }');
console.log(output.css);npx lessc styles.less styles.css<link rel="stylesheet/less" type="text/css" href="styles.less" />
<script src="https://cdn.jsdelivr.net/npm/less"></script>Full documentation, usage guides, and configuration options at lesscss.org.
Less.js is open source. Report bugs, submit pull requests, or help improve the documentation.
See CONTRIBUTING.md for development setup.
Copyright (c) 2009-2025 Alexis Sellier & The Core Less Team Licensed under the Apache License.