# Less: 5.1 out of 10

Reasonable, with limits. 9th of 10 in [CSS and styling tools](https://elestia.ai/opensource/styling/index.md).

Less is a CSS preprocessor that adds variables, mixins, guards and functions to CSS. It is still maintained, and a Less 5 rewrite is in alpha. Today it is mostly kept alive by older codebases such as Ant Design v4, Bootstrap 3 and enterprise themes. For new work, Sass or native CSS with PostCSS or Lightning CSS is the better pick.

**Best for:** Teams that maintain an existing Less codebase or theme, such as Ant Design v4 or Bootstrap 3.

## Scores

- **Overall: 5.1** (likely 4.1 to 6.2)
  - Claude Opus 5.5 (4.0): Less works, is safe and is still maintained, so keep it where it already runs. For a new project, Sass is the stronger preprocessor, and native CSS with PostCSS or Lightning CSS, or Tailwind, fits most modern stacks better. Its slow growth and the coming breaking 5.0 rewrite add to the case against starting with it.
  - GPT-6.2 Sol (6.2): Less 4.9.1 is a capable choice when a new project needs to share existing Less styles or customize UIkit. For a new stylesheet system, Sass offers namespaced modules and a larger active user base. Less is still maintained, but slower relative adoption and uncertainty about the Less 5 upgrade lower its standing for new projects.
- **Needed by many: 4.3** (likely 3.2 to 5.3)
  - Claude Opus 5.5 (4.0): Styling is a near-universal need, but a preprocessor is now optional for most projects, and Less is the second choice among preprocessors. The developers who need Less in particular are mostly those on existing Less codebases. Survey data is direct, which keeps the range fairly narrow.
  - GPT-6.2 Sol (4.5): Less works across web frameworks and is useful for teams that share mixins or customize themes at build time. Native CSS already covers nesting and custom properties, which reduces the need for a preprocessor in simpler projects. About 8% of respondents to the 2026 State of CSS preprocessor question selected Less, though that survey samples CSS practitioners.
- **Helps a lot: 6.0** (likely 5.0 to 7.1)
  - Claude Opus 5.5 (5.0): Less 4.x is a mature, correct compiler with a full feature set: mixins, guards, maps, functions and imports. Sass does the same job with a richer module system, better tooling and more learning material, so Less is clearly second. The Less 5 alpha modernises its output but is not finished. AI agents write Less well because the syntax is old and stable.
  - GPT-6.2 Sol (7.0): Less 4.9.1 offers well-documented mixins, flexible imports and source maps. Sass has better support for organizing large shared stylesheets through namespaced modules, and Less users need separate declarations for the TypeScript API. An older benchmark favored Less over Dart Sass on one workload, so current performance across projects remains uncertain. Evidence on how reliably coding agents generate Less is sparse.
- **Holds up over time: 5.6** (likely 4.5 to 7.2)
  - Claude Opus 5.5 (5.0): The project is active: 84 commits, 30 releases and 14 npm versions in the last year, with releases published from CI. Much of the work rests on one lead maintainer with no visible funding, and the coming 5.0 rewrite will break code. The ecosystem is moving away from preprocessors, and Ant Design v5 dropped Less.
  - GPT-6.2 Sol (6.2): Less recorded 84 commits in the past year, and several contributors shipped fixes on the stable line. Its stable release is older than Sass's, and the move to ES modules required compatibility fixes for webpack users. The active Less 5 rewrite changes selector output and makes upgrade effort uncertain. npm lists five collaborators, with limited public evidence about release approvals or ongoing funding.
- **Used widely: 6.1** (likely 5.0 to 7.2)
  - Claude Opus 5.5 (5.0): 58M downloads in 4 weeks and about 951k dependent repositories show a large installed base, but much of it is old. The download ratio of about 1.78 is far below the 4.1 median, so Less is losing share. Survey use is about a sixth of Sass, and there are no Hacker News or Bluesky mentions.
  - GPT-6.2 Sol (7.2): ecosyste.ms found about 951,000 dependent repositories and 38,900 packages, with the repository count close to Sass and Tailwind. Four-week downloads rose from 32.7 million to 58.1 million, a 1.78× increase that trails both peers and the 4.1× catalog median. Less has 17,000 GitHub stars and the collector found no recent Bluesky posts linking to the repository. The installed base is large, but repeat installs and older projects make new adoption hard to measure.
- **Vouched for: 5.3** (likely 4.2 to 6.9)
  - Claude Opus 5.5 (4.0): Less was long backed by Bootstrap 3 and Ant Design, but both have moved on, so those endorsements are old. Current independent write-ups treat it as a legacy alternative to Sass, and the surveys show low and falling use. Bundler support (Vite, less-loader) is still first-class.
  - GPT-6.2 Sol (6.6): UIkit uses Less.js to build its styles, XWiki updated its Less.js dependency to 4.9.1, and Vite and webpack maintain integrations. Ant Design dropped Less from its React package in v5 when it changed its theming system. The older benchmark and current integrations tell us more about build compatibility than recent developer satisfaction.
- **Safe: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.0): No advisories in OSV, only 2 runtime dependencies and a permissive Apache-2.0 licence. Releases are published by GitHub Actions with signed commits. The Scorecard is a middling 5.2, with zero on token permissions, pinned dependencies, SAST and fuzzing. Inline JavaScript evaluation is off by default since 3.0.
  - GPT-6.2 Sol (7.3): OSV lists zero advisories, the licence is permissive Apache-2.0, and Less has two required dependencies plus seven optional ones. The project uses npm trusted publishing and removed a postinstall script that users reported could hang installation in 4.5.1. OpenSSF Scorecard gives it 5.2, with zero marks for token permissions and dependency pinning. Limited visibility into branch protection and release approval keeps the range wide.

## Good

- Syntax close to CSS, with variables, mixins, guards and operations that are easy to learn.
- Still actively maintained: 4.x releases in 2026 and a Less 5 compiler rewrite in public alpha.
- Small install with only 2 dependencies, an Apache-2.0 licence and no known advisories.
- Works out of the box in Vite, webpack (less-loader) and most other bundlers.

## Bad

- Native CSS nesting, custom properties and Sass now cover its job, and survey use is far below Sass.
- The package ships no bundled TypeScript types for its JS API and needs @types/less.
- Less 5 is not a drop-in replacement for 4.x, so an upgrade with breaking changes is coming.
- Downloads grow far slower than the category median, so it is losing ground to Sass, utility CSS and CSS-in-JS.

## The numbers

- Downloads, 4 weeks: 58M
- In a year: +78%
- GitHub stars: 17k
- Commits, 12 months: 84
- Last npm release: Sept 2026
- Advisories, 24 months: 0
- Licence: Apache-2.0
- GitHub: https://github.com/less/less.js
- npm: https://www.npmjs.com/package/less

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
