最近做了一个需求,后台管理系统添加一个可以动态修改ant-design主题色.查询了大多数的文章,发现基本都是抄来抄去,而且文章记录的也一点也不详细.刚刚把这个功能做完了,顺便记录一下如何去修改主题色.主要使用到的包是antd-theme-generator.使用起来非常方便,而且在热更新时,不会出现 js 内存爆栈现象. 主题思想:主要使用 antd 的 less 变量,修改全局的 less 变量,完成样式的更新.以下是 less 等版本信息. 案例网址: https://azhengpers
“Sometimes it's useful to use one of the selected colors or fonts the user has chosen in theWindows Control Panel Personalization applet (or the older Display Settings in Windows XP),such as Window caption, Desktop color, and Selection color. Further