Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 1.12 KB

File metadata and controls

18 lines (12 loc) · 1.12 KB

Reliable Ant-Design (antd 3.x, 4.x) CSS with all rules prefixed ("namespaced")

Click here to see an example with problems caused by not overwriting CSS rules.
And after, click here to see an example with fixed bugs.

Note: The Twitter Bootstrap, in these examples, can affect items of Ant.Design, but in reverse case, not. It's good when we want to use Ant.design in another project already in production.

Example image


Thanks to @sbusch for start this method, and to @dbtedman for making this possible with his fine PostCSS postcss-prefixwrap plugin.


This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).