Skip to content
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

Global border styles are too aggressive #448

Open
bohdanbirdie opened this issue Oct 4, 2024 · 0 comments
Open

Global border styles are too aggressive #448

bohdanbirdie opened this issue Oct 4, 2024 · 0 comments

Comments

@bohdanbirdie
Copy link

Global styles that set border colour are too aggressive:

'*, *::before, *::after': {
.

This may be totally OK for fresh projects. But in my case, where I'm migrating gradually from Tailwind to PandaCSS with ParkUI this style is too aggressive and takes over styling where I'm not expecting it.

There is a similar problem with Preflight, but it can be scoped with a class name. But in this case, I can't scope it with PandaCSS config, so must manually override the preset after it was created with createPreset

Perhaps this global styles config can either respect preflight scoping or it can be overwritten on createPreset function call.
Or, it should not be global in the first place.

wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant