windicss/windicss

preflight takes precedence

gaultierq opened this issue · 0 comments

My config has preflight: true enabled, and I try to customize my headings styles with:

@layer base {
  h1 {
      @apply font-semibold text-4xl;
  }
}

The generated css, the preflight styles comes after my custom styles, and as a result, my customization is ignored :

h1 {
  font-weight: 600;
  font-size: 2.25rem;
}
...
h1 {
  font-size: inherit;
  font-weight: inherit;
}