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

How to add !important automatically #1157

Open
MICAHFANG opened this issue Jul 10, 2023 · 1 comment
Open

How to add !important automatically #1157

MICAHFANG opened this issue Jul 10, 2023 · 1 comment

Comments

@MICAHFANG
Copy link

MICAHFANG commented Jul 10, 2023

Hi, 👋

I'm using @stitches/react in my project, in some cases I need to use cleanslate(a hightest order css reset tool). But this tool needs to add !important to overwrite it's own style.

Rightnow, I can only add !important to every properties' end manually.

Is there any way to add !important after each line automatically?

like some other tools like postcss has plugins can do these things. But I cannot find any way in stitches.

@MICAHFANG
Copy link
Author

Or, is there any way to use the methods like getCssText in SPA projects.

I found an example that is using postcss and nextjs #409

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