Steps to reproduce:
stack new myapp yesodweb/simple
- Add
@import "https://unpkg.com/open-props"; to the top of templates/default-layout.lucius
- In the same file, change the
background-color for .masthead from rgb(27, 28, 29) to var(--red-5)
- Start the development server
- Observe that the background color is not red
Background:
If we open the dev tools, we see that --red-5 is not set:
The problem seems to be that in the generated CSS file, the @import rule is not at the top of the file and thus gets ignored:
While I haven't tested it, I presume this affects other at-rules, too.