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

Add possibility to not use pagefind's CSS file #52

Open
bramsmulders opened this issue Oct 16, 2023 · 1 comment
Open

Add possibility to not use pagefind's CSS file #52

bramsmulders opened this issue Oct 16, 2023 · 1 comment

Comments

@bramsmulders
Copy link

Hi!

thanks for this awesome integration of pagefind and Astro! Setting this up is really easy 🎉
I find myself constantly overriding pagefind's CSS selectors when adjusting the styling to my own needs.
In the docs of pagefind there is a section called "Styling pagefind ui yourself" which basically says: "don't use the CSS file": https://pagefind.app/docs/ui-usage/#styling-pagefind-ui-yourself

Is it a possibility for you to make an unstyled version of your integration?

@shishkin
Copy link
Owner

Thanks for the feedback!

Omitting default styles makes sense. I currently import the CSS unconditionally, but would need to check if it's possible to do upon a config option. It should be doable, just need to ensure the solution doesn't introduce redundant imports. PRs are always welcome!

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

2 participants