I load my global styles as a main.css in histoire.setup.ts like import './assets/css/main.css';. However, these global styles get overwritten by Histoire's Tailwind reset styles because the style tag (search for data-vite-dev-id) is loaded after the main.css and not before it:
Resulting in my global heading styles being overwritten by Histoire's Tailwind reset styles:
Describe the bug
I load my global styles as a main.css in histoire.setup.ts like
import './assets/css/main.css';
. However, these global styles get overwritten by Histoire's Tailwind reset styles because the style tag (search fordata-vite-dev-id
) is loaded after the main.css and not before it:Resulting in my global heading styles being overwritten by Histoire's Tailwind reset styles:
Let me know if this issue belongs in https://github.com/nuxt-modules/tailwindcss/issues
Reproduction
https://stackblitz.com/edit/histoire-nuxt3-starter-qfowrz?file=histoire.setup.ts
Choose
BaseButton
and then inspect the h5.This is not the case in a vue3 setup without Nuxt or @histoire/plugin-nuxt: https://stackblitz.com/edit/histoire-vue3-starter-jcvvhd?file=histoire.setup.ts
System Info
Used Package Manager
npm
Validations