New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(preset-mini)!: remove default border-styles on border-x utility #1971
Conversation
✅ Deploy Preview for unocss ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
Hi, I'd prefer to keep it as it is and make it more flexible isn't it? :( Too bad my projects are all using |
No, you don't need to. |
I'd argue without the set style is more flexible. As for the default, solid style is set in both unocss/packages/reset/tailwind.css Lines 6 to 11 in cdb4d40
and unocss/packages/reset/antfu.css Lines 1 to 4 in cdb4d40
|
Even if adding CSS resets is a solution, there are use cases where one doesn't want to use a reset. For example, in my use-case, I am using unocss as a complementary tool for Naive-UI. Including resets are breaking pretty much everything. There are only 2 options left:
to global css file or preflights with Now even if the second option is ok, it is probably not very convenient to do when you are using another UI framework. As far as I can see, it is not overlapping with Naive UI, but might be something to consider. |
In v0.48.x, unocss removed the default `border-style` in `b`, refer to unocss/unocss#1971
@onur-caplena I posted an alternative solution on #2285 (comment) |
Aligns with tailwind; close #1967.
Reference: https://tailwindcss.com/docs/border-width