scoped_css provides automatic CSS scoping for Rails templates and ViewComponents. It ensures styles are isolated to specific components or templates, preventing CSS conflicts and enabling modular styling. The gem works by automatically adding unique scope identifiers to CSS rules and corresponding HTML elements, making it easy to maintain clean, conflict-free stylesheets in large applications. No CSS preprocessors or postprocessors are required.

Required Ruby Version

>= 0

Authors

Ewan McDougall

Versions

  1. 0.1.3 June 28, 2025 (7 KB)
  2. 0.1.2 June 28, 2025 (7 KB)
  3. 0.1.1 June 17, 2025 (7 KB)
  4. 0.1.0 June 17, 2025 (7 KB)

Pushed by

SHA 256 checksum