windicss
windicss copied to clipboard
Preflight mismatches between tailwind and windi
for instance:
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
should not be in preflight
This is work in progress, but some guidance is appreciated:
-
Why is this here? Should it not be part of 'base'? I left it in here for now: https://github.com/mrwokkel/windicss/blob/main/src/lib/utilities/preflight.ts#L305
-
Should the process of keeping the file in sync with tailswinds version not be more automated? Would you like me to explore?
-
Will the way of how the preflight css is added change in v4, or will it continue this path?
- Actually I am not really familiar with it, /cc @voorjaar any idea?
- Currently keep syncing with tailwind is indeed one of the things we need to do. Free feel to give it a try.
- Not so sure yet, but I am considering not do preflight scanning but just appending a plain CSS file to it to improve the performance also make the result more stable. That's something we need to explore a bit tho.
also the focus tag will have default margins (on firefox) although tailwind preflight should set them to 0