Skip to content

Support for styled-components? #972

Open
@kevmo314

Description

@kevmo314

What problem does this feature solve?

Is there a way to add css loaders that are dependent on the generated Vue.component() in *.vue files? For example, styled-components is one of such frameworks. At the moment, it seems not feasible due to the underlying component not being exposed. The integration could be pretty slick too, I think, if the pass to vue-styled-components is handled by the loader.

What does the proposed API look like?

<style lang="styled-components">
  font-size: ${props.fontSize}em;
  ...

  &:hover {
    box-shadow: ...;
  }
  & .child {
    ...
  }
</style>

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