CHECKING STATUS
I AM LISTENING TO
|
  • ♩
  • ♪
  • ♫
  • ♬
  • ♩
  • ♪
  • ♫
  • ♬

CSS Library Highlights 2026

LAST MODIFIED: 8. November 2026
10. August 2025
.SHARE
CSS Library Highlights 2026

This page started as a short list of things I actually use — a Sass index, a country flag collection, a loader library, a checkbox styler and a SCSS compiler. Six entries, four of them bare links, under a heading that shouted “CSS RULES THAT ROCK” and then listed exactly one rule.

Two of those entries were worth reading, and both are still here with their explanations intact. The rest needed writing, and the whole thing needed a question answered that did not have an answer in August 2025.

That question is: do you still need a CSS framework, and do you still need a build step? A year ago the answers were roughly yes and yes. Now they are considerably more interesting, because of two developments this page had nothing about. The first is Baseline, which finally gives a definitive answer to “can I use this yet”. The second is Tailwind v4, which moved its configuration into CSS and made the framework look rather less like a framework.

How to Know If You Can Use It: Baseline

Quick Answer: Baseline is a browser-support standard with two stages — newly available and widely available. It replaced the guesswork of reading caniuse tables and hoping, and it is maintained by the WebDX Community Group.

Before anything else on this page makes sense, you need to know which CSS features are safe to use. That used to be a judgement call based on a compatibility table and your appetite for risk. Now it has a name and a definition.

Baseline was originated by the Chrome team and is now defined by the WebDX Community Group. It has three states:

  • Limited availability — not yet supported across the core browser set. Use with a fallback or not at all.
  • Newly available — supported by all core browsers, and therefore interoperable. Safe to use if you accept that it landed recently.
  • Widely available — 30 months have passed since the newly interoperable date. Safe to use without worrying about support at all.

The core browser set is Chrome on desktop and Android, Edge, Firefox on desktop and Android, and Safari on macOS and iOS. If all of those support a feature, it is Baseline.

The Features That Made It

This is the useful part for a CSS article, because several things that used to be “progressive enhancement” are now simply supported. Each of these is Baseline, with the date it became newly available:

FeatureNewly availableWhat it means
Size container queries
February 2023
Style an element based on its container’s size, not the viewport
Subgrid
September 2023
Nest a grid inside a grid and inherit the parent’s tracks
CSS Nesting
August 2023
Write nested rules in plain CSS, no preprocessor required
:has()
December 2023
Style a parent based on what it contains — the long-awaited parent selector
Popover
January 2025
Native popovers without a JavaScript library

Read that table again with 2025 eyes. Nesting, :has() and container queries were the three reasons people gave for keeping a preprocessor and a build step. All three are now standard CSS, and have been for a while.

Where You Actually See It

Baseline is not just a website you visit. It has been integrated into the tools you already use, which is why it is worth knowing about even if you never look it up deliberately:

  • MDN — every CSS property page carries its Baseline status
  • Can I Use — shows Baseline status alongside the compatibility table
  • Chrome DevTools — Baseline information for CSS properties in the Elements panel
  • Lighthouse — a Baseline features audit that tells you which features on a page are not yet Baseline
  • Browserslist — supports Baseline queries, which means your build tooling can target it directly

That last one is the one that changes workflows. If Browserslist understands Baseline, then Lightning CSS and Autoprefixer can both be told “target Baseline widely available” and they will handle the transpilation and prefixing automatically. The compatibility question stops being a research task and becomes a build configuration.

Curated Lists and Resources

Quick Answer: Awesome Sass is the curated index for SCSS work, and it is still actively maintained. If you want the CSS equivalent, the sibling highlights pages cover the rest of the toolchain.

Awesome Sass

Awesome Sass is the curated index for anything Sass or SCSS related — frameworks, libraries, mixins, grid systems, colour tools, and articles. It follows the standard awesome-list format, which means it is a categorised set of links rather than a tutorial, and that is exactly what you want when you are looking for a specific kind of tool.

It has 1,902 stars, it is CC0 licensed, and it was last updated in September 2026. That last date is the important one. A curated list is only worth bookmarking if someone is still curating it, and this one is.

  • Licence: CC0-1.0
  • Scale: 1,902 stars, updated September 2026
  • Best for: finding a Sass tool without reading a blog post about it

One caveat worth stating in 2026: Sass is no longer the default answer for organising CSS that it was when this list started. Nesting is Baseline, custom properties are Baseline, and a lot of what people reached for Sass to do is now just CSS. The list is still useful, but you should be reaching for it deliberately rather than by habit.

Frameworks and Resets

Quick Answer: Tailwind v4 for utility-first work, Pico for semantic HTML with no classes, Bootstrap if you need the ecosystem, and Open Props if you want design tokens without a framework at all.

The framework landscape shifted more than anything else on this page. Tailwind v4 is a ground-up rewrite, Pico continues to be the best answer for “I just want my HTML to look decent”, and the honest truth is that a simple site in 2026 may not need a framework at all.

Tailwind CSS

Tailwind released version 4.0 on 22 January 2025, and it is not an incremental update. It is a ground-up rewrite built on modern CSS — cascade layers, registered custom properties via @property, and color-mix() — rather than on JavaScript doing the work.

The headline change for anyone who has used Tailwind before is that configuration moved into CSS. Instead of a JavaScript config file, you extend the framework in your own stylesheet, and your design tokens become native CSS variables you can use anywhere. That is a meaningful philosophical shift: the framework stops owning your theme.

The performance numbers from their own benchmarks are striking. Full builds went from 378ms to 100ms. Incremental builds with new CSS from 44ms to 5ms. And incremental builds that need no new CSS — the common case, where you are reusing classes you have already used — from 35ms to 192 microseconds, which is a 182x improvement.

Other things that arrived in v4: automatic content detection with no configuration, built-in @import support, a first-party Vite plugin, first-class container queries without plugins, 3D transform utilities, radial and conic gradients, a not-* variant, and a modernised P3 colour palette.

  • Licence: MIT
  • Version: 4.3.4
  • Best for: teams who want utilities and are happy with a build step
  • Key change: CSS-first configuration — no JavaScript config file

Bootstrap

Bootstrap is the framework people love to declare dead and then keep using, and the install numbers do not support the obituary. It is at version 5.3.8, still MIT, still the thing most CMS themes and admin templates are built on.

The honest case for it in 2026 is not the grid or the components — both of which Tailwind and plain CSS have made less essential. It is the ecosystem. Every Bootstrap question has been asked and answered, every third-party widget expects it, and every developer you hire has used it. That is worth something even when the CSS itself is no longer best-in-class.

  • Licence: MIT
  • Version: 5.3.8
  • Best for: admin interfaces, CMS themes, and teams who value familiarity over novelty
  • Honest caveat: you are choosing the ecosystem, not the CSS

Bulma

Bulma is a Flexbox-based CSS framework with no JavaScript at all, and it reached version 1.0 — a milestone it had been promising for years. That matters, because for a long time Bulma’s version number was the main argument against it.

It is class-based rather than semantic, so it will not suit you if the Pico approach appeals, but it sits in a useful middle ground: more opinionated than a reset, less prescriptive than Bootstrap, and it ships nothing you have to write JavaScript to use. Version 1.0.4.

  • Licence: MIT
  • Version: 1.0.4
  • Best for: projects that want a component framework without a JavaScript dependency
  • Notable: reached 1.0 after a long pre-release period

Pico CSS

Pico is a minimal framework built around a specific idea: your HTML should be semantic, and the framework should style it without you adding classes. Write a <form> with proper inputs and it looks like a form. Write a <table> and it looks like a table.

The practical benefit is that your markup stays clean and portable, and you can drop Pico in or out without touching your HTML. It is genuinely tiny, it has a dark mode, and it is the single best answer for documentation sites, prototypes and internal tools where you want something presentable in five minutes. Version 2.1.1.

  • Licence: MIT
  • Version: 2.1.1
  • Best for: semantic HTML with no classes, and prototypes that need to look good immediately
  • Approach: classless — it styles your existing tags

Open Props

Open Props is the one to reach for if you have decided against a framework but still want a design system. It is a set of CSS custom properties — colours, spacing, typography, shadows, easings, gradients — that you can import individually or as a whole and use in your own stylesheets.

There are no classes and no components. It is design tokens, delivered as CSS, with the added benefit that the values are themeable at runtime because they are just custom properties. If Tailwind v4’s CSS-variable approach appealed to you but the utility classes did not, this is the same idea with the framework removed. Version 1.7.23.

  • Licence: MIT
  • Version: 1.7.23
  • Best for: hand-written CSS that still needs a coherent set of tokens
  • Approach: custom properties only — no classes, no components

Preprocessors and Build Tools

Quick Answer: Sass is still the preprocessor, but Lightning CSS has changed the build-step conversation by being roughly 100x faster than the JavaScript alternatives. PostCSS remains the plugin ecosystem.

This is the section where the “do you still need this” question bites hardest. Nesting is Baseline, so you do not need a preprocessor for that any more. Custom properties replaced variables. But mixins, functions, loops and a real module system are still things plain CSS does not have, and a build step is still how you minify and prefix.

Sass

Sass remains the preprocessor, and the modern implementation is sass — the pure JavaScript version formerly known as Dart Sass. Version 1.107.1, MIT licensed.

What still earns it a place: variables that can do arithmetic, mixins that take arguments, functions, loops over maps, and a module system with explicit imports. Plain CSS has none of those. What no longer earns it a place is nesting, because the browser does that now.

One practical thing to know if you maintain older SCSS: the @import rule is deprecated in favour of @use and @forward, and the compiler will warn you about it. Migrating is mechanical but tedious, and it is the most common reason people are still pinned to an older version.

  • Licence: MIT
  • Version: 1.107.1
  • Best for: mixins, functions, loops and a real module system
  • Migration note: @import is deprecated — use @use
  • Related: I wrote about structuring SCSS in organizing your CSS and SCSS code

PostCSS

PostCSS is not really a tool so much as a framework for building tools. It parses CSS into an AST, lets plugins transform it, and writes it back out. Autoprefixer, cssnano and dozens of others are PostCSS plugins rather than standalone programs.

Version 8.5.32, MIT licensed. If you already have a PostCSS pipeline, adding a plugin is trivial. The thing worth knowing in 2026 is that Lightning CSS does several of the same jobs natively and considerably faster, so the honest question is whether your pipeline needs PostCSS’s plugin breadth or just its common cases.

  • Licence: MIT
  • Version: 8.5.32
  • Best for: pipelines that need specific plugins
  • Alternative: Lightning CSS covers the common cases faster

Autoprefixer

Autoprefixer adds vendor prefixes based on your Browserslist targets, so you write standard CSS and it handles the rest. It has been the default answer to prefixing for a decade, and it is still a PostCSS plugin at version 10.6.2.

Worth noting that its job has shrunk over time — modern browser support means far fewer prefixes are needed than when it was written — and that Lightning CSS includes prefixing natively. But if you are on a PostCSS pipeline, this is still what you use, and because Browserslist now understands Baseline you can target that directly.

  • Licence: MIT
  • Version: 10.6.2
  • Best for: prefixing based on your actual browser targets
  • Modern note: Browserslist supports Baseline queries, so you can target Baseline directly

cssnano

cssnano is the modular CSS minifier in the PostCSS ecosystem — it removes whitespace, merges rules, shortens colours, reduces calc() expressions and generally makes your stylesheet smaller. Version 9.9.0, MIT.

It is the plugin you are comparing Lightning CSS against, and the comparison is not flattering. In Lightning CSS’s own benchmark, minifying Bootstrap 4 took cssnano 544ms and Lightning CSS 4.16ms. Output size went from 155.89 KB to 139.74 KB as well. That is not a marginal difference.

  • Licence: MIT
  • Version: 9.9.0
  • Best for: PostCSS pipelines that already exist
  • Benchmark: 544ms on Bootstrap 4, against 4.16ms for Lightning CSS

Lightning CSS

Lightning CSS is the one that changes the build-step argument, and it is the most interesting thing in this section. It is a CSS parser, transformer, bundler and minifier written in Rust, by Devon Govett and the Parcel contributors.

The performance claim is not marketing hedging: Lightning CSS is over 100x faster than comparable JavaScript-based tools, and it can minify over 2.7 million lines of CSS per second on a single thread. Their benchmark against Bootstrap 4 puts it at 4.16ms against cssnano’s 544ms — and it produces smaller output too, 139.74 KB against 155.89 KB.

What makes it more than a fast minifier is that it does the whole job. It converts modern CSS to more compatible syntax based on your browser targets — nesting, custom media queries, high gamut colour spaces, logical properties, new selector features — and adds vendor prefixes automatically. You write modern CSS and it handles the fallbacks.

It also supports CSS modules with proper local scoping and tree-shaking of unused classes, and it uses the cssparser and selectors crates created by Mozilla and used in Firefox. Because it fully parses every rule, property and value the way a browser would, it can do transforms that a text-based minifier cannot.

The licence is worth checking before you adopt it: MPL-2.0, which is file-level copyleft. That is more permissive than GPL and generally fine for application use, but it is not MIT and you should know the difference.

  • Licence: MPL-2.0 — not MIT, worth checking
  • Version: 1.33.0
  • Written in: Rust
  • Best for: replacing a PostCSS + Autoprefixer + cssnano pipeline with one faster tool
  • Also does: CSS modules with scoping and tree-shaking

scssphp

scssphp is an open-source compiler for SCSS written in PHP. It compiles SCSS into standard CSS directly within a PHP environment, with no Node.js or Ruby anywhere in the stack.

That last part is the whole point. If you are running WordPress, a legacy PHP application, or any environment where you cannot add a Node toolchain, scssphp lets you keep organising CSS with SCSS and compile it server-side. The original version of this page described it as being in the toolbox for years, and that has not changed.

Install it through Composer:

And use it directly:

Worth knowing that compiling on every request is a bad idea — cache the output and only recompile when the source changes. The usual approach is to write the compiled CSS to a file and check its modification time against the SCSS source.

  • Licence: MIT
  • Scale: 629 stars, updated September 2026
  • Best for: PHP environments with no Node toolchain — WordPress, legacy apps, shared hosting
  • Performance note: compile and cache, do not compile per request

CSS Assets and Components

Quick Answer: flag-icons for country flags, CSS Loaders for spinners, Animate.css for canned animations, and pretty-checkbox for styled form controls — with a caveat about how long that last one has been quiet.

These are the drop-in pieces: things you add because writing them yourself is a waste of an afternoon. Three of the four are in excellent health. The fourth works perfectly and has not been touched in six years, which is worth knowing before you build a dependency on it.

flag-icons

flag-icons is a curated collection of every country flag in SVG, delivered as CSS classes so you can drop a flag anywhere with a single <span>. It also ships the raw SVG files if you would rather use them directly.

The details are what make it good: the flags are properly proportioned rather than forced into a uniform box, there are square variants for avatars, and the CSS uses a single background-image per class so you are not paying for flags you do not use. It has 12,501 stars and was last updated in November 2026, which makes it the healthiest project on this page.

  • Licence: MIT
  • Scale: 12,501 stars, updated November 2026
  • Best for: language selectors, country pickers and locale switchers
  • Also provides: raw SVG files alongside the CSS classes

CSS Loaders

CSS Loaders is a collection of pure-CSS loading spinners — no JavaScript, no images, no SVG. Each one is a small block of CSS you copy out, and the site shows you what it looks like before you do.

The repository behind it is lukehaas/css-loaders, with 7,048 stars and an MIT licence. It was last updated in February 2025, which makes it stable rather than abandoned — spinners are a solved problem, and there is not much to maintain.

Worth saying that a spinner is a small enough thing that copying one out of here is usually better than adding a dependency. But having a gallery to copy from is genuinely useful when you need something that does not look like every other spinner.

  • Licence: MIT
  • Scale: 7,048 stars, last updated February 2025
  • Best for: copying a spinner rather than installing one
  • Note: pure CSS — no JavaScript, no images

pretty-checkbox

pretty-checkbox styles checkboxes and radio buttons without JavaScript, using pure CSS. It covers the usual shapes and colours, supports switches, and handles the awkward part — keeping the native input accessible while replacing its appearance. There is a live demo if you want to see it first.

Now the caveat. The repository was last updated on 14 October 2020. That is over six years ago. It has 1,801 stars, it is MIT licensed, and the code does exactly what it says — but nothing has been touched in six years, which means no fixes for anything found since, and no work on browser changes.

The honest recommendation: check whether you need it at all. accent-color is Baseline, and it gets you a themed checkbox in one line for most browsers. If you need something more elaborate, pretty-checkbox still works and is still a reasonable choice — just go in knowing it is a finished project rather than a maintained one.

  • Licence: MIT
  • Status: last updated October 2020 — over six years dormant
  • Best for: elaborate custom form controls where accent-color is not enough
  • Consider first: accent-color is Baseline and needs no library

Animate.css

Animate.css is the classic library of ready-made CSS animations — fades, slides, bounces, attention-seekers. You add a class and the animation runs. Version 4.1.1, MIT licensed.

It is unfashionable in the same way Bootstrap is unfashionable: everyone knows it, everyone has used it, and plenty of people have replaced it with a handful of custom keyframes. The case for keeping it is the same as Bootstrap’s — it is a known quantity, the class names are memorable, and you do not have to invent a bounce.

One accessibility note that applies to any animation library: respect prefers-reduced-motion. Animate.css ships a reduced-motion build for exactly this reason, and using the standard build without it is a real accessibility problem rather than a theoretical one.

  • Licence: MIT
  • Version: 4.1.1
  • Best for: quick transitions without writing keyframes
  • Accessibility: use the reduced-motion build, or respect prefers-reduced-motion yourself

Modern CSS Rules That Rock

Quick Answer: Five things now built into CSS that used to need a library, a preprocessor or a JavaScript plugin — text-wrap balance, :has(), nesting, container queries and color-mix().

The original version of this page had one entry in this section, in capitals. There are now five, and together they explain why the rest of this page looks different from a year ago.

text-wrap: balance

A classic typography technique — hand-authoring line breaks so a heading or a short paragraph breaks evenly instead of leaving one word stranded on the last line. Print has done this for headlines for a century; CSS now does it for you.

Use it on headings and short text blocks. Do not use it on body copy — browsers limit balancing to a small number of lines for performance reasons, and on a long paragraph it will simply be ignored. For long text, text-wrap: pretty is the related property that avoids orphan words without trying to balance everything.

  • Status: Baseline
  • Best for: headings, hero text, and any short block where a stranded word looks bad
  • Do not use on: long paragraphs — it will be ignored
  • Reference: Chrome’s documentation on text-wrap

:has() — the parent selector

The selector people asked for for fifteen years. :has() lets you style an element based on what it contains, which means you can finally do “style this card differently if it has an image” without JavaScript or a modifier class.

Became Baseline in December 2023. The practical effect is that a whole category of JavaScript — toggling a class on a parent when a child changes — is no longer necessary. It also handles the form validation case that used to require a script watching every input.

  • Status: Baseline since December 2023
  • Best for: conditional styling based on contents, and form validation states
  • Replaces: a lot of small JavaScript that toggled parent classes
  • Reference: MDN on :has()

Native nesting

Nesting came to CSS in August 2023, and it is the single biggest reason the “do I still need Sass” question has a different answer now. You write nested rules in plain CSS and the browser handles it.

One thing to know: native nesting uses the & for the parent reference in the same way Sass does, but the rules around it are stricter. Selectors starting with an element name need the ampersand; ones starting with a class or pseudo-class do not. Getting that wrong is the most common mistake when migrating.

  • Status: Baseline since August 2023
  • Best for: everything you used Sass nesting for
  • Replaces: the main reason many people kept a preprocessor
  • Reference: MDN on CSS nesting

Container queries

Media queries ask how wide the viewport is. Container queries ask how wide the component’s container is, which is what you usually actually wanted. A card can now respond to being placed in a narrow sidebar rather than to the browser window.

Size container queries became Baseline in February 2023. This is the one that changes component design most, because it makes components genuinely portable — a card that adapts to its container works in a sidebar, a grid and a full-width layout without any of them knowing about the others.

  • Status: Baseline since February 2023
  • Best for: components that need to work in more than one layout context
  • Replaces: a lot of media query guessing and modifier classes
  • Reference: MDN on container queries

color-mix()

Mixing two colours in CSS, without a preprocessor function or a hard-coded hex value. You can blend a brand colour with white for a hover state, or with black for a border, and the relationship holds if the brand colour changes.

The in oklch part matters. Mixing in sRGB — the default — produces muddy results when you blend across hues, because it interpolates in a colour space that does not match how we perceive brightness. oklch gives you the blend you expected. This is also one of the modern features Tailwind v4 is built on.

  • Status: Baseline
  • Best for: deriving hover, border and surface colours from a single brand colour
  • Use in oklch: sRGB mixing produces muddy results across hues
  • Reference: MDN on color-mix()

The Tools Compared

Quick Answer: Two tables — frameworks and build tools. Versions were pulled from npm while writing, and the licence column matters more here than usual because Lightning CSS is MPL-2.0 rather than MIT.

Frameworks and Resets

ToolApproachLicenceVersionBest for
Tailwind CSS
Utility classes, CSS-first config
MIT
4.3.4
Teams who want utilities and a build step
Bootstrap
Components and grid
MIT
5.3.8
Admin UIs, CMS themes, the ecosystem
Bulma
Components, no JavaScript
MIT
1.0.4
A component framework without JS
Pico CSS
Classless, semantic HTML
MIT
2.1.1
Docs, prototypes, internal tools
Open Props
Custom properties only
MIT
1.7.23
Hand-written CSS with real tokens

Build Tools and Preprocessors

ToolJobLicenceVersionNote
Lightning CSS
Parse, transform, minify
MPL-2.0
1.33.0
Rust, ~100x faster than JS tools
Sass
Preprocessor
MIT
1.107.1
Mixins, functions, loops, modules
PostCSS
Plugin framework
MIT
8.5.32
Breadth of plugins
Autoprefixer
Vendor prefixing
MIT
10.6.2
PostCSS plugin; can target Baseline
cssnano
Minifier
MIT
9.9.0
544ms on Bootstrap 4 vs 4.16ms
scssphp
SCSS compiler in PHP
MIT
—
No Node required

That cssnano row is not a fair fight and it is not meant to be — they do different jobs at different levels. But if your only reason for a PostCSS pipeline is minification and prefixing, the benchmark is worth knowing about before you keep maintaining the plugins.

Which Do You Actually Need?

Quick Answer: Start by asking whether you need a framework at all. In 2026, with nesting, :has() and container queries Baseline, a lot of sites do not.

  • You are building a small site or a landing page — you probably do not need a framework. Baseline CSS plus Open Props for tokens will do it, and you ship less.
  • You want semantic HTML that looks decent with no classes — Pico CSS. Drop it in and stop thinking about it.
  • You are building an admin interface — Bootstrap, and take the ecosystem with it. Fighting the familiar choice costs more than the CSS you save.
  • You have a team and want consistent utilities — Tailwind v4. Note the config now lives in CSS, so budget for the migration if you are coming from v3.
  • Your markup has to stay clean and portable — Pico or Open Props, not a utility framework.
  • You maintain SCSS with mixins and functions — keep Sass. Nesting is Baseline now, but loops and mixins are not.
  • You want to drop Sass because nesting is Baseline — check what else you use it for first. Most codebases use more than nesting.
  • You compile SCSS in a PHP environment — scssphp. And cache the output rather than compiling per request.
  • Your build step is slow — Lightning CSS. The difference is not marginal, and it does prefixing and modern-syntax transpilation in the same pass.
  • You need a specific PostCSS plugin — keep PostCSS. Lightning CSS covers the common cases, not every plugin in the ecosystem.
  • You are not sure whether you can use a feature — check Baseline on MDN or Can I Use. If it is Widely available, use it and stop worrying.
  • You need country flags — flag-icons. It is the healthiest project on this page.
  • You need a spinner — copy one from CSS Loaders rather than adding a dependency.
  • You are about to use pretty-checkbox — check whether accent-color covers it first. It probably does.

Glossary

Baseline
A browser-support standard originated by the Chrome team and now defined by the WebDX Community Group. It tells you whether a web platform feature is safe to use, and replaces the guesswork of reading compatibility tables.
Newly available
A Baseline stage meaning the feature is supported by all core browsers and is therefore interoperable. Safe to use, though it landed recently enough that you might want a fallback.
Widely available
A Baseline stage meaning 30 months have passed since the feature became newly interoperable. Use it without worrying about support.
Core browser set
The browsers Baseline measures against: Chrome on desktop and Android, Edge, Firefox on desktop and Android, and Safari on macOS and iOS. All of them supporting a feature is what makes it Baseline.
Classless framework
A CSS framework that styles your existing semantic HTML tags rather than requiring you to add classes. Pico CSS is the clearest example — write a proper <form> and it looks like a form.
Utility-first
An approach where you compose small single-purpose classes in your markup rather than writing semantic component classes in a stylesheet. Tailwind is the best-known example.
Design tokens
Named values for colour, spacing, typography and other design decisions, stored so they can be reused and changed in one place. Open Props is a token set with no framework attached.
Custom properties
Native CSS variables, declared with a -- prefix. Unlike preprocessor variables they exist at runtime, which means they can be changed by media queries, container queries or JavaScript.
Cascade layers
The @layer rule, which lets you define explicit precedence between groups of styles rather than fighting specificity. One of the modern CSS features Tailwind v4 is built on.
Container query
A rule that styles an element based on the size of its container rather than the viewport. Baseline since February 2023, and the feature that makes components genuinely portable between layouts.
:has()
The parent selector — it styles an element based on what it contains. Baseline since December 2023. It replaces a category of JavaScript that used to toggle classes on parents.
CSS nesting
Writing nested rules in plain CSS, without a preprocessor. Baseline since August 2023. Selectors beginning with an element name need the & parent reference; class and pseudo-class selectors do not.
color-mix()
A CSS function that blends two colours. Use in oklch for the interpolation space — the default sRGB mixing produces muddy results when blending across hues.
oklch
A perceptually uniform colour space. Its advantage over sRGB is that equal numeric steps look like equal visual steps, which is why colour mixing and palette generation behave the way you expect in it.
Preprocessor
A tool that compiles a CSS-like language into CSS — Sass being the obvious example. It adds features plain CSS lacks, such as mixins, functions and loops. Nesting is no longer one of those features.
PostCSS plugin
A transformation that runs inside a PostCSS pipeline. Autoprefixer and cssnano are both plugins rather than standalone tools, which is why you rarely install them on their own.
Vendor prefix
A browser-specific property prefix such as -webkit-. Far fewer are needed than when Autoprefixer was written, which is why that tool’s job has shrunk over time.
Minifier
A tool that reduces file size without changing behaviour — removing whitespace, merging rules, shortening values. cssnano and Lightning CSS both do it, at very different speeds.
CSS modules
A system where class names are scoped locally to a file, so two components can both use .header without colliding. Lightning CSS supports them, including tree-shaking of unused classes.
Transpilation
Converting modern syntax into older equivalent syntax for browsers that do not support it. Lightning CSS does this for CSS nesting, custom media queries and modern colour spaces, based on your browser targets.
MPL-2.0
The Mozilla Public License 2.0 — file-level copyleft. More permissive than GPL and generally fine for application use, but not MIT. Lightning CSS uses it, so it is worth knowing the difference.
prefers-reduced-motion
A media query that reports whether the user has asked their system to reduce animation. Any library that ships animations should respect it, and Animate.css ships a reduced-motion build for exactly that reason.
accent-color
A CSS property that themes native form controls — checkboxes, radio buttons, range sliders — in a single declaration. Baseline, and often the reason you do not need a styling library.
Subgrid
A grid nested inside another grid that inherits the parent’s track sizing, so a child can align to rows it does not itself define. Baseline since September 2023.
Specificity
The rule that decides which of two conflicting declarations wins. Cascade layers exist partly to make it manageable, since a layer’s order overrides specificity within it.

FAQ

Do I still need a CSS framework in 2026?

Often not. Nesting, :has() and container queries are all Baseline, so much of what frameworks were reached for is now plain CSS. Use one if you want utilities and consistency across a team, or if you need a component library, rather than by default.

What is Baseline and why does it matter?

Baseline is a browser-support standard from the WebDX Community Group that tells you when a web feature is safe to use. Newly available means all core browsers support it; widely available means 30 months have passed since. It replaced reading compatibility tables and guessing.

Is Tailwind CSS v4 worth upgrading to?

If you are on v3 and happy, not urgently, but the case is strong. Full builds are roughly 3.8x faster and incremental rebuilds that need no new CSS are over 100x faster. The bigger change is that configuration moved into CSS, which makes it a migration rather than a drop-in.

Do I still need Sass now that nesting is in CSS?

Only if you use more than nesting. Mixins, functions, loops and a real module system are still things plain CSS does not have. If nesting was your only reason, you can drop it. Check what else your codebase relies on first.

What is Lightning CSS and should I use it instead of PostCSS?

Lightning CSS is a Rust-based CSS parser, transformer and minifier that is over 100x faster than the JavaScript tools. It handles modern syntax transpilation and vendor prefixing natively. Use it unless you need a specific PostCSS plugin that it does not cover.

What is the difference between media queries and container queries?

Media queries respond to the viewport size. Container queries respond to the size of the element’s own container. Container queries are Baseline since February 2023 and make components genuinely portable between different layout contexts.

What does :has() do and can I use it?

:has() is the parent selector. It styles an element based on what it contains, so you can style a card differently if it has an image. It became Baseline in December 2023, so yes, you can use it. It replaces a lot of small JavaScript.

How do I know if a CSS feature is safe to use?

Check Baseline. MDN shows the status on every property page, Can I Use shows it alongside compatibility tables, and Chrome DevTools shows it for CSS properties. Browserslist supports Baseline queries, so your build tooling can target it directly.

What is the best classless CSS framework?

Pico CSS. It styles your semantic HTML without requiring classes, so your markup stays clean and portable. It is tiny, it has a dark mode, and it is the fastest way to make a documentation site or a prototype look presentable.

Is pretty-checkbox still maintained?

No. The repository was last updated in October 2020, over six years ago. It still works and it is still MIT licensed, but nothing has been touched since. Check whether accent-color covers your needs before you use it.

What is scssphp and when would I use it?

scssphp is a SCSS compiler written in PHP, so you can compile SCSS server-side without a Node.js or Ruby toolchain. Use it in WordPress, legacy PHP applications, or any environment where you cannot add a build step. Cache the output rather than compiling per request.

How do I theme a checkbox without a library?

Use accent-color. It is Baseline and themes native checkboxes, radio buttons and range sliders in a single declaration. If you need custom shapes or switch styles, that is when a library like pretty-checkbox is still worth considering.

Let’s Talk!

Looking for a reliable partner to bring your project to the next level? Whether it’s development, design, security, or ongoing support—I’d love to chat and see how I can help.

Get in touch,
and let’s create something amazing together!

RELATED POSTS

It is 02:40 on a Tuesday. The lights flicker, the fridge compressor stops, and somewhere in the spare room your rack goes dark. Power comes back ninety seconds later. Everything boots except one machine, which sits at a BIOS screen waiting for someone to press F1. You are asleep. At 07:10 you leave for work. […]

Every site that serves images eventually runs into the same wall. Someone uploads a 12 megapixel phone photo, and you need it at 1200 pixels for the hero, 600 for a card, 200 for a thumbnail grid, and 48 for an avatar. The old answer is to pre-generate every size on upload, which means a […]

Alexander

Alex: Home

I am a full-stack developer. My expertise include:

  • Server, Network and Hosting Environments
  • Data Modeling / Import / Export
  • Business Logic
  • API Layer / Action layer / MVC
  • User Interfaces
  • User Experience
  • Understand what the customer and the business needs

I have a deep passion for programming, design, and server architecture—each of these fuels my creativity, and I wouldn’t feel complete without them.

With a broad range of interests, I’m always exploring new technologies and expanding my knowledge wherever needed. The tech world evolves rapidly, and I love staying ahead by embracing the latest innovations.

Beyond technology, I value peace and surround myself with like-minded individuals.

I firmly believe in the principle: Help others, and help will find its way back to you when you need it.