Skip to content

Support for styled-jsx #330

Closed
Closed
@brc-dd

Description

@brc-dd

This is a feature request.

Currently, intellisense does not work when using @apply directive inside styled-jsx. It works fine if I use it on a CSS file, or inside a style tag in HTML. And since, the syntax of styled-jsx is not much different from style element, I think this feature can be implemented.

Sample code:

const Hero: React.FC = () => (
  <section>
    Hey There

    <style jsx>{`
      section {
        @apply w-screen h-screen bg-black;
      }
    `}</style>
  </section>
);

export default Hero;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions