{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1094","repository_url":"https://api.github.com/repos/ant-design/ant-design-pro","labels_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1094/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1094/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/1094","id":305046939,"number":1094,"title":"关于网站皮肤切换，如何实现？","user":{"login":"remotesc2","id":9023036,"avatar_url":"https://avatars1.githubusercontent.com/u/9023036?v=4","gravatar_id":"","url":"https://api.github.com/users/remotesc2","html_url":"https://github.com/remotesc2","followers_url":"https://api.github.com/users/remotesc2/followers","following_url":"https://api.github.com/users/remotesc2/following{/other_user}","gists_url":"https://api.github.com/users/remotesc2/gists{/gist_id}","starred_url":"https://api.github.com/users/remotesc2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotesc2/subscriptions","organizations_url":"https://api.github.com/users/remotesc2/orgs","repos_url":"https://api.github.com/users/remotesc2/repos","events_url":"https://api.github.com/users/remotesc2/events{/privacy}","received_events_url":"https://api.github.com/users/remotesc2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-14T07:17:51Z","updated_at":"2018-03-14T11:38:15Z","closed_at":null,"author_association":"NONE","body":"基于 antd-pro 的项目样式都是引自 default.less，这样在开发期间可以很方便的通过 theme.js 进行颜色修改。\r\n但是上线项目的皮肤切换要怎么做？\r\n\r\n我自己设想的：\r\n1、在一套 css 中编写两套 class，然后网站通过动态切换 className，实现效果修改\r\n2、参考 default.less，编写多套样式（比如 red.less、green.less），然后生成多套 css，网站再动态引用不同的 css 文件\r\n\r\n方式2 感觉从代码层级上会更加成体系，但是还不清楚该如何操作\r\n\r\n大家还有什么好的思路吗？"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/comments/372991670","html_url":"https://github.com/ant-design/ant-design-pro/issues/1094#issuecomment-372991670","issue_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1094","id":372991670,"user":{"login":"CrewS","id":5671380,"avatar_url":"https://avatars1.githubusercontent.com/u/5671380?v=4","gravatar_id":"","url":"https://api.github.com/users/CrewS","html_url":"https://github.com/CrewS","followers_url":"https://api.github.com/users/CrewS/followers","following_url":"https://api.github.com/users/CrewS/following{/other_user}","gists_url":"https://api.github.com/users/CrewS/gists{/gist_id}","starred_url":"https://api.github.com/users/CrewS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrewS/subscriptions","organizations_url":"https://api.github.com/users/CrewS/orgs","repos_url":"https://api.github.com/users/CrewS/repos","events_url":"https://api.github.com/users/CrewS/events{/privacy}","received_events_url":"https://api.github.com/users/CrewS/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T11:38:15Z","updated_at":"2018-03-14T11:38:15Z","author_association":"NONE","body":"@chenshuai2144 是指antd官网那个主题颜色切换吗？请问这个有源码可以查阅吗"}}
{"actor":{"display_login":"CrewS"}}