Skip to content

@screen directive is incorrectly generating css #781

@dasZGFz

Description

@dasZGFz

I am currently on 1.0.0-beta.2.

This code:

html {
  @apply bg-gray-200 antialiased;

  @screen lg {
    @apply bg-gray-900;
  }

  @screen md {
    @apply text-white;
  }
}

is generating this:

html {
  background-color: #edf2f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
@media (min-width: 1024px) {
    background-color: #1a202c;
}
@media (min-width: 768px) {
    color: #fff;
}
}

which is incorrect syntax. Am I using @screen wrong or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions