@layer

noun

say it: “at LAY-er” /æt ˈleɪər/

A CSS at-rule that names cascade layers and sets their order, as in @layer reset, base, components;, or puts a block of rules into one layer.

What does @layer do?

@layer declares cascade layers and their order, or puts rules into one.

@layer base {
  body { font-family: system-ui, sans-serif; }
}

In a sentence

  • “One line at the top of the file, @layer reset, base, components;, set which group of rules wins.”

Level: Freelancer · More CSS terms at this level

Updated