The State of CSS in 2026

CSS has quietly absorbed a huge share of what used to require a preprocessor or a JavaScript library. Most teams haven't fully updated their habits to match.

The State of CSS in 2026 — Troiana insight cover

In short

Native CSS in 2026 now natively handles nesting, variables, container queries, and several layout and selection capabilities that previously required Sass or JavaScript-based workarounds — the practical implication is that many projects can now simplify their tooling stack, though team habits and existing codebases often lag behind what's actually necessary anymore.

How much has genuinely moved into native CSS

Native CSS nesting, custom properties (variables), container queries, and an expanding set of modern selectors have collectively replaced a substantial share of what used to specifically require a preprocessor like Sass or a CSS-in-JS library. This isn't marginal — for many projects, the core reasons a preprocessor was originally adopted (nesting, variables, basic math) are now covered natively.

Where preprocessors still add genuine value

Some preprocessor features — more advanced mixins, certain build-time optimizations, and mature tooling ecosystems built up over years — still aren't fully replicated by native CSS, and a large existing codebase already built around a preprocessor has real switching costs that native support alone doesn't erase. The practical case for keeping an existing preprocessor setup is stronger than the case for starting a brand-new project with one today.

Design tokens and CSS variables

Native CSS custom properties are now a mature, well-supported foundation for implementing design tokens directly, without needing a preprocessor's variable system — this has simplified what used to be a more tooling-dependent part of a styling architecture into something achievable with plain CSS alone.

Container queries changing responsive design

Container queries — styling an element based on its container's size rather than only the viewport's size — represent a genuine architectural shift for component-based design systems, since a component can now be responsive to the space it's actually placed in, rather than only to the overall page width, which JavaScript-based workarounds previously had to approximate imperfectly.

What this means for new projects

A new project starting today can reasonably rely on native CSS for nesting, variables, and container-based responsiveness without reaching for a preprocessor or CSS-in-JS library specifically to get those capabilities — the resulting simpler toolchain has fewer build-step dependencies and less to maintain, consistent with the broader trend of native browser capabilities absorbing what used to need a library.

The gap between capability and habit

A meaningful share of teams continue using tooling that was adopted specifically to solve a problem native CSS now handles, simply because the original decision hasn't been revisited — this is a reasonable, low-priority thing to leave as-is for a stable, working project, but worth reconsidering deliberately for new projects or major rewrites rather than defaulting to the previous generation's tooling out of habit.

Common questions

Do I still need Sass or a CSS-in-JS library in 2026?

For new projects, often not for the core reasons they were originally adopted — native nesting, variables, and container queries now cover much of that ground; existing large codebases may still have legitimate switching-cost reasons to keep their current setup.

What's the biggest architectural shift from container queries?

Components can now be responsive to their actual container's size rather than only the overall page viewport, which is a meaningfully better fit for component-based design systems than viewport-only responsive design.

Should an existing project migrate off a preprocessor because of native CSS improvements?

Not necessarily urgently — the switching cost for an established, working codebase is real, and this is more relevant to decide deliberately for new projects or major rewrites than to retrofit onto stable existing ones.

Have something worth building right?