Skip to content

Support scoped CSS in the same file #5224

Open
@gaearon

Description

@gaearon

This is kinda vague but I'd like to have a built-in option to write CSS that:

  • Exists in the same file as my components
  • Is scoped
  • Has auto generated class names, like CSS Modules
  • Extracted via the same pipeline as CSS Modules
  • Could potentially use Sass (since we already support it)
  • Fully static

Basically I want "CSS Modules" but without the "Modules" part. Just put it in the same file if that's the only place I use it anyway.

https://github.com/4Catalyzer/astroturf looks related. cc @jquense @markdalgleish

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions