DEV Community

Cover image for Change Ant Design Theme dynamically in React Create-React-App
Anna Coding
Anna Coding

Posted on

3 2

Change Ant Design Theme dynamically in React Create-React-App

Recently I had a project where I needed to change Ant Design theme dynamically to support different business brands. In this article, I will show you how to do it generally step by step and save your time.

Based on I search, there are two mature libraries can be used to build this function:

antd-theme-generator
antd-theme-webpack-plugin

I have tried both libraries and have many problems during the implementation. In this article, I will show you how to use antd-theme-generator to implement this function.

Check more:

https://annacoding.com/article/gVcF6qCZkfnM3JOnPxBqx/Change-Ant-Design-Theme-dynamically-in-React-Create-React-App

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay