What version of astro are you using?
1.1.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe the Bug
Tailwind CSS files in build are being added last (or second last), causing tailwind reset file to override scoped (in file) CSS.
To replicate...
- install the Blog template
- Run
astro add tailwind
- Run
astro build
- Go to any page other than Home and check the order of the CSS files. Tailwind is last or second last which breaks the styles
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-vymz2e?file=tsconfig.json,astro.config.mjs,tailwind.config.cjs,package.json,src%2Fconfig.ts,src%2Fenv.d.ts,src%2Fpages%2Fblog.astro,src%2Flayouts%2FBlogPost.astro,dist%2Findex.html&on=stackblitz
Participation
What version of
astroare you using?1.1.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe the Bug
Tailwind CSS files in build are being added last (or second last), causing tailwind reset file to override scoped (in file) CSS.
To replicate...
astro add tailwindastro buildLink to Minimal Reproducible Example
https://stackblitz.com/edit/github-vymz2e?file=tsconfig.json,astro.config.mjs,tailwind.config.cjs,package.json,src%2Fconfig.ts,src%2Fenv.d.ts,src%2Fpages%2Fblog.astro,src%2Flayouts%2FBlogPost.astro,dist%2Findex.html&on=stackblitz
Participation