{"_id":"@umijs/ui-theme","_rev":"3440814","name":"@umijs/ui-theme","description":"Umi UI theme for antd","dist-tags":{"latest":"1.0.1-beta.1"},"maintainers":[{"name":"chenshuai2144","email":""},{"name":"kuitos","email":""},{"name":"peachscript","email":""},{"name":"sorrycc","email":""},{"name":"stormslowly","email":""},{"name":"xiaohuoni","email":""},{"name":"xiefengnian","email":""},{"name":"xierenyuan","email":""},{"name":"xusd320","email":""},{"name":"yifankakaxi","email":""}],"time":{"modified":"2024-08-27T19:25:06.000Z","created":"2020-01-24T05:51:26.293Z","1.0.1-beta.1":"2020-03-02T12:36:51.498Z","1.0.0":"2020-01-30T08:52:20.620Z","0.0.2":"2020-01-27T14:03:12.296Z","0.0.1":"2020-01-24T05:51:26.293Z"},"users":{},"author":{"name":"ycjcl868"},"repository":{"type":"git","url":"git+ssh://git@github.com/umijs/ui.git","directory":"packages/theme"},"versions":{"1.0.1-beta.1":{"name":"@umijs/ui-theme","version":"1.0.1-beta.1","description":"Umi UI theme for antd","main":"lib/index.js","dependencies":{"less-vars-to-js":"1.3.0"},"devDependencies":{"@types/less":"^3.0.0","less":"^3.10.3","less-plugin-clean-css":"^1.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/umijs/ui.git","directory":"packages/theme"},"author":{"name":"ycjcl868"},"license":"MIT","gitHead":"855d38a11e7accac2fc6e2002d2eb938cf6c33be","bugs":{"url":"https://github.com/umijs/ui/issues"},"homepage":"https://github.com/umijs/ui#readme","_id":"@umijs/ui-theme@1.0.1-beta.1","_nodeVersion":"10.18.1","_npmVersion":"lerna/3.6.0/node@v10.18.1+x64 (darwin)","dist":{"shasum":"85b80c2c6b344983c5131e5cad63ee8c259cd9ea","size":3144,"noattachment":false,"key":"/@umijs/ui-theme/-/@umijs/ui-theme-1.0.1-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@umijs/ui-theme/download/@umijs/ui-theme-1.0.1-beta.1.tgz"},"maintainers":[{"name":"chenshuai2144","email":""},{"name":"kuitos","email":""},{"name":"peachscript","email":""},{"name":"sorrycc","email":""},{"name":"stormslowly","email":""},{"name":"xiaohuoni","email":""},{"name":"xiefengnian","email":""},{"name":"xierenyuan","email":""},{"name":"xusd320","email":""},{"name":"yifankakaxi","email":""}],"_npmUser":{"name":"ycjcl868","email":"45808948@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui-theme_1.0.1-beta.1_1583152611388_0.5628876671879197"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T02:13:56.962Z","publish_time":1583152611498,"_cnpm_publish_time":1583152611498},"1.0.0":{"name":"@umijs/ui-theme","version":"1.0.0","description":"Umi UI theme for antd","main":"lib/index.js","dependencies":{"less-vars-to-js":"1.3.0"},"devDependencies":{"@types/less":"^3.0.0","less":"^3.10.3","less-plugin-clean-css":"^1.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/umijs/ui.git","directory":"packages/theme"},"author":{"name":"ycjcl868"},"license":"MIT","gitHead":"b2ab69cdb69a05345fbe7f16ac86314a7fbe33d6","bugs":{"url":"https://github.com/umijs/ui/issues"},"homepage":"https://github.com/umijs/ui#readme","_id":"@umijs/ui-theme@1.0.0","_nodeVersion":"10.18.1","_npmVersion":"lerna/3.6.0/node@v10.18.1+x64 (darwin)","dist":{"shasum":"95c2738ddec020a968172ca33ea1591645aad34d","size":3072,"noattachment":false,"key":"/@umijs/ui-theme/-/@umijs/ui-theme-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@umijs/ui-theme/download/@umijs/ui-theme-1.0.0.tgz"},"maintainers":[{"name":"chenshuai2144","email":""},{"name":"kuitos","email":""},{"name":"peachscript","email":""},{"name":"sorrycc","email":""},{"name":"stormslowly","email":""},{"name":"xiaohuoni","email":""},{"name":"xiefengnian","email":""},{"name":"xierenyuan","email":""},{"name":"xusd320","email":""},{"name":"yifankakaxi","email":""}],"_npmUser":{"name":"ycjcl868","email":"45808948@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui-theme_1.0.0_1580374340454_0.7391206790814069"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T02:13:55.326Z","publish_time":1580374340620,"_cnpm_publish_time":1580374340620},"0.0.2":{"name":"@umijs/ui-theme","version":"0.0.2","description":"Umi UI theme for antd","main":"lib/index.js","dependencies":{"less-vars-to-js":"1.3.0"},"devDependencies":{"@types/less":"^3.0.0","less":"^3.10.3","less-plugin-clean-css":"^1.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/umijs/ui.git","directory":"packages/ui-theme"},"author":{"name":"ycjcl868"},"license":"MIT","gitHead":"8d7d196f5a155824646eaa8cfcc42f1dc37002e0","bugs":{"url":"https://github.com/umijs/ui/issues"},"homepage":"https://github.com/umijs/ui#readme","_id":"@umijs/ui-theme@0.0.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.6.0/node@v10.16.0+x64 (darwin)","dist":{"shasum":"2a3bbedfad38f52db64d7037dd643eb21b1d1a3f","size":3073,"noattachment":false,"key":"/@umijs/ui-theme/-/@umijs/ui-theme-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@umijs/ui-theme/download/@umijs/ui-theme-0.0.2.tgz"},"maintainers":[{"name":"chenshuai2144","email":""},{"name":"kuitos","email":""},{"name":"peachscript","email":""},{"name":"sorrycc","email":""},{"name":"stormslowly","email":""},{"name":"xiaohuoni","email":""},{"name":"xiefengnian","email":""},{"name":"xierenyuan","email":""},{"name":"xusd320","email":""},{"name":"yifankakaxi","email":""}],"_npmUser":{"name":"ycjcl868","email":"45808948@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui-theme_0.0.2_1580133792134_0.1085303890735716"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T02:13:53.595Z","publish_time":1580133792296,"_cnpm_publish_time":1580133792296},"0.0.1":{"name":"@umijs/ui-theme","version":"0.0.1","description":"Umi UI theme for antd","main":"lib/index.js","dependencies":{"less-vars-to-js":"1.3.0"},"devDependencies":{"@types/less":"^3.0.0","less":"^3.10.3","less-plugin-clean-css":"^1.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/umijs/ui.git","directory":"packages/ui-theme"},"author":{"name":"ycjcl868"},"license":"MIT","bugs":{"url":"https://github.com/umijs/ui/issues"},"homepage":"https://github.com/umijs/ui#readme","_id":"@umijs/ui-theme@0.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.13.1","dist":{"shasum":"092010d1998365e2400853baadf8d56d6331df3f","size":3030,"noattachment":false,"key":"/@umijs/ui-theme/-/@umijs/ui-theme-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@umijs/ui-theme/download/@umijs/ui-theme-0.0.1.tgz"},"maintainers":[{"name":"chenshuai2144","email":""},{"name":"kuitos","email":""},{"name":"peachscript","email":""},{"name":"sorrycc","email":""},{"name":"stormslowly","email":""},{"name":"xiaohuoni","email":""},{"name":"xiefengnian","email":""},{"name":"xierenyuan","email":""},{"name":"xusd320","email":""},{"name":"yifankakaxi","email":""}],"_npmUser":{"name":"ycjcl868","email":"45808948@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ui-theme_0.0.1_1579845086138_0.6425502807026977"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T02:13:51.949Z","publish_time":1579845086293,"_cnpm_publish_time":1579845086293}},"readme":"# @umijs/ui-theme\n\n## Usage\ntheme config:\n\n```js\n// .umirc.js\nimport { dark, light } from '@umijs/ui-theme';\n\n{\n  theme: dark\n}\n```\n\nless vars:\n\n```less\n// dark\n@import \"~@@umijs/ui-theme/dark.less\";\n\n// light\n@import \"~@@umijs/ui-theme/light.less\";\n```\n\ndark theme might use global style, because of the lack of vars in antd theme.\n\n```less\n\n@btn-disable-bg: transparent;\n@btn-disable-color: fade(@light, 25);\n@btn-disable-border: fade(@light, 10);\n@btn-default-hover-bg: #4c4c61;\n@btn-default-active-bg: #272733;\n@btn-primary-color: @light;\n@btn-primary-hover-bg: #40a9ff;\n@btn-primary-active-bg: #096dd9;\n@btn-ghost-hover-border: fade(@light, 65);\n@select-background: #3b3b4d;\n@select-dropdown-bg: #3b3b4d;\n@select-dropdown-hover-bg: #4c4c61;\n@select-dropdown-active-bg: #4c4c61;\n@select-item-selected-bg: #272733;\n@checkbox-check-inner-color: @light;\n@anchor-border-color: fade(@light, 15);\n@modal-footer-border-color-split: #17171f;\n@card-bg-color: #30303d;\n@radio-button-border-color: #86868c;\n@message-background: #2d2d3b;\n@notification-background: #2d2d3b;\n\nbody {\n  .ant-select-selection {\n    // TODO: antd less\n    background-color: @select-background;\n  }\n  .ant-message-notice-content {\n    background-color: @message-background;\n  }\n  .ant-notification-notice {\n    background-color: @notification-background;\n  }\n  .ant-radio-button-wrapper:first-child {\n    border-left-color: @radio-button-border-color;\n  }\n  .ant-radio-button-wrapper {\n    border-color: @radio-button-border-color;\n  }\n  .anticon {\n    transition: color 0.3s;\n  }\n  a {\n    .anticon {\n      &:hover {\n        color: @icon-color-hover;\n      }\n    }\n  }\n\n  .ant-card {\n    background-color: @card-bg-color;\n  }\n  .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title::after {\n    background-color: @process-tail-color;\n  }\n  .ant-tooltip-placement-top .ant-tooltip-arrow {\n    border-right-color: @tooltip-arrow-color;\n    border-bottom-color: @tooltip-arrow-color;\n  }\n  .ant-card-head {\n    border-bottom: none;\n  }\n  .ant-modal-footer {\n    border-color: @modal-footer-border-color-split;\n  }\n  .ant-checkbox-checked .ant-checkbox-inner::after {\n    border-color: @checkbox-check-inner-color;\n  }\n  .ant-switch-loading-icon,\n  .ant-switch::after {\n    background-color: @light;\n  }\n  .ant-anchor-ink {\n    &::before {\n      background-color: @anchor-border-color;\n    }\n    .ant-anchor-ink-ball {\n      display: none;\n    }\n  }\n  .ant-select-dropdown {\n    background-color: @select-dropdown-bg;\n  }\n  .ant-select-dropdown-menu-item-selected {\n    background-color: @select-item-selected-bg;\n  }\n  .ant-dropdown-menu-dark {\n    .ant-dropdown-menu-item:hover {\n      background-color: @ui-sidebar-menu-hover-bg;\n      color: @text-color;\n    }\n  }\n\n  .ant-select-dropdown-menu-item {\n    transition: all @duration-fast @ease-base-out;\n  }\n  .ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) {\n    background-color: @select-dropdown-hover-bg;\n  }\n  .ant-select-dropdown-menu-item-active:hover:not(.ant-select-dropdown-menu-item-disabled) {\n    background-color: @select-dropdown-active-bg;\n  }\n\n  .ant-btn {\n    &:hover,\n    &:focus {\n      color: @heading-color;\n      background-color: @btn-default-hover-bg;\n      border-color: @btn-default-hover-bg;\n    }\n    &:active,\n    &.active {\n      color: @heading-color;\n      background-color: @btn-default-active-bg;\n      border-color: @btn-default-active-bg;\n    }\n  }\n  .ant-btn-dashed {\n    &:hover,\n    &:focus {\n      border-color: @btn-ghost-hover-border;\n    }\n  }\n  .ant-btn-background-ghost {\n    color: @btn-ghost-color;\n    border-color: @btn-ghost-border;\n  }\n  .ant-btn-primary {\n    &:hover,\n    &:focus {\n      color: @btn-primary-color;\n      background-color: @btn-primary-hover-bg;\n      border-color: @btn-primary-hover-bg;\n    }\n    &:active,\n    &.active {\n      color: @btn-primary-color;\n      background-color: @btn-primary-active-bg;\n      border-color: @btn-primary-active-bg;\n    }\n  }\n}\n```\n","_attachments":{},"homepage":"https://github.com/umijs/ui#readme","bugs":{"url":"https://github.com/umijs/ui/issues"},"license":"MIT"}