lightningcss

Module css_modules

Source
Expand description

CSS module exports.

CSS modules are a way of locally scoping names in a CSS file. This includes class names, ids, keyframe animation names, and any other places where the CustomIdent type is used.

CSS modules can be enabled using the css_modules option when parsing a style sheet. When the style sheet is printed, hashes will be added to any declared names, and references to those names will be updated accordingly. A map of the original names to compiled (hashed) names will be returned.

Structs§

Enums§

  • A referenced name within a CSS module, e.g. via the composes property.
  • An error that occurred while parsing a CSS modules name pattern.
  • A segment in a CSS modules class name pattern.

Type Aliases§