You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2019. It is now read-only.
We use Ant Design by Ali financial as our UI kit. This was chosen because of the high quality, consistent APIs, wide array of data-driven components, theme centric styles and decent documentation. Using babel-plugin-import, I can bring in components with styles overriden by app/css/theme.less to be compliant with UW branding.
However, normalize.css is included in there, and after webpack processes that, it ends up overriding styles on a lot of miscelaneous components such as articles, sections and divs. This wouldn't be a problem, except it often wins in specificity wars. See app/css/main.css, where I have to boost my specificity to apply global typography.
Solution? Find a way to exclude normalize.css (as much as I'd hate to, forking antd is an option) or see how other people have married these technologies.
We use Ant Design by Ali financial as our UI kit. This was chosen because of the high quality, consistent APIs, wide array of data-driven components, theme centric styles and decent documentation. Using babel-plugin-import, I can bring in components with styles overriden by
app/css/theme.lessto be compliant with UW branding.However,
normalize.cssis included in there, and after webpack processes that, it ends up overriding styles on a lot of miscelaneous components such as articles, sections and divs. This wouldn't be a problem, except it often wins in specificity wars. Seeapp/css/main.css, where I have to boost my specificity to apply global typography.Solution? Find a way to exclude normalize.css (as much as I'd hate to, forking antd is an option) or see how other people have married these technologies.