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

Hacks to change ant.design theme #30

Merged
merged 3 commits into from
Sep 4, 2021
Merged

Conversation

miguelbrandao
Copy link
Member

Well.... Pretty much the only way I think it can be done without messing with deprecated plugins and disabling Next's built-in CSS support...

This solution is not very maintainable, but with a very obvious warning in the README I guess it could work for a while: it also has less chances of breaking current stuff and future stuff than messing around with Webpack in next.config.js

Let me know if it's worth it to pull this. If it is I'll add the warning to the README before merging

@vercel
Copy link

vercel bot commented Sep 2, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/cesiuminho/shuriken/QKszQoV4Uf7B7YYqVqokgSupTpYf
✅ Preview: https://shuriken-git-mb-change-antd-theme-cesiuminho.vercel.app

styles/globals.css Outdated Show resolved Hide resolved
@nelsonmestevao
Copy link
Member

nelsonmestevao commented Sep 2, 2021

It requires so few changes that I think it's worth it. We can revert if we change our minds in the future. Maybe it will be even cleaner if Next.js gets LESS support again like this PR is proposing.

@miguelbrandao
Copy link
Member Author

I fixed the things you pointed out @nelsonmestevao.

I also added the warning to the README and customized the border radius of Ant, in order to be a bit more in harmony with the Tailwind styling.

I think its ready for merging.

Copy link
Member

@nelsonmestevao nelsonmestevao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! 💪 Really liked the readme warning 😅

@miguelbrandao miguelbrandao deleted the mb/change-antd-theme branch September 4, 2021 17:51
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

Successfully merging this pull request may close these issues.

2 participants