Loupely Lens
How it works What it captures Compare Pricing Blog
Join the waitlist
How it works What it captures Compare Pricing Blog Join the waitlist
Skip to content
The image features a circular purple logo with a camera lens icon and the text "LoupeLy Lens" in a modern font. The logo is centered and includes a small dot representing the camera lens.

Loupely Lens

  • About
  • Acceptable Use Policy
  • Auth-Callback
  • Blog
  • Changelog
The image features a circular purple logo with a camera lens icon and the text "LoupeLy Lens" in a modern font. The logo is centered and includes a small dot representing the camera lens.
Loupely Lens
Popular Search chrome
  • All
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I
  • J
  • K
  • L
  • M
  • N
  • O
  • P
  • Q
  • R
  • S
  • T
  • U
  • V
  • W
  • X
  • Y
  • Z
  • Home
  • Encyclopedia
  • C
  • CSS Layer

CSS Layer

< 1 min read

A CSS layer (written as @layer) is a way to group CSS rules into explicitly ordered priority tiers. Layers were introduced to give developers a structured way to manage the cascade without relying on specificity tricks or !important.

Rules inside a lower-priority layer lose to rules inside a higher-priority layer, regardless of their individual specificity scores. This means a very specific rule in a low-priority layer can be overridden by a less specific rule in a high-priority layer. It inverts the normal specificity logic for rules in different layers.

In practice, you're most likely to encounter layers on sites using modern CSS frameworks or design systems that use them to separate base styles, component styles, and utility styles into distinct priority tiers. If Loupely Lens identifies that a rule is inside a @layer, it flags it with a badge in Fight View so you can see that layer priority, not just specificity, is part of why that rule won or lost.

© 2026 Loupely Lens - WordPress Theme by Kadence WP

Loupely Lens The only CSS tool that tells you why your change didn't work. Every other tool copies styles. Lens diagnoses them.
Loupely Lens
How it works What it captures How Lens compares Pricing
Resources
Knowledge base Roadmap Changelog
Company
About Blog Indie Hackers
© 2026 Loupely LLC. Built by Joyce Akiko.
Privacy Terms
  • About
  • Acceptable Use Policy
  • Auth-Callback
  • Blog
  • Changelog