• dohpaz42@lemmy.world
    cake
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Learn CSS layers, use CSS layers.

    What are CSS layers? I’m legitimately curious.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      They change the precedence rules so that you can import large frameworks at will and not have them disrupt your rules or each other.

      Basically, anything you apply in one layer has less precedence than what is applied on the next layers.