{"name":"antd-token-previewer","version":"3.0.0-alpha.0","keywords":["react","antd","ant-design"],"license":"MIT","_id":"antd-token-previewer@3.0.0-alpha.0","maintainers":[{"name":"madccc","email":"1075746765@qq.com"}],"homepage":"https://ant-design.github.io/antd-token-previewer/previewer","bugs":{"url":"https://github.com/ant-design/antd-token-previewer/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"265298d9e2a0655894816dcd00f39237f8599e71","tarball":"http://registry-npm.ywwl.com/antd-token-previewer/download/antd-token-previewer-3.0.0-alpha.0.tgz","fileCount":1195,"integrity":"sha512-tMn/OHaqjbBsBEYUIXAS33BLDDWtnXlho9gJpm8cFf2iCogQoqy6MTK0ntYg6eiD5pr9wTERCxWb8UVubI+yQA==","signatures":[{"sig":"MEUCIB6+5xEHJNAxN7vy2Kwp8StcvE9PB7KP5GAhGY7Jam8tAiEAjYJeptqR5isrSG4V618sB3jv83i2pswWM1UmCODFtdY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1211678,"size":188365,"noattachment":false,"key":"/antd-token-previewer/-/antd-token-previewer-3.0.0-alpha.0.tgz"},"main":"./lib/index","types":"./lib/index.d.ts","module":"./es/index","gitHead":"e8068e12dd6e90569c9e9e0ad63b126e68463298","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"umi-test","start":"dumi dev","compile":"father build","prepare":"husky install","coverage":"umi-test --coverage","gh-pages":"gh-pages -d .doc","docs:build":"dumi build","docs:deploy":"npm run docs:build && npm run gh-pages","docs:preview":"PREVIEW=1 dumi build","prepublishOnly":"npm run compile && np --yolo --no-publish && npm run docs:deploy"},"_npmUser":{"name":"madccc","email":"1075746765@qq.com"},"repository":{"url":"git+ssh://git@github.com/ant-design/antd-token-previewer.git","type":"git"},"_npmVersion":"10.9.2","description":"Ant Design token previewer","directories":{},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write","git add"]},"sideEffects":["*.css"],"_nodeVersion":"22.13.1","dependencies":{"rc-util":"^5.21.5","reactflow":"^11.8.1","classnames":"^2.3.1","use-debouncy":"~4.3.0","@babel/runtime":"^7","react-colorful":"^5.5.1","@ctrl/tinycolor":"^3.6.0","@ant-design/icons":"^5.2.5","@ant-design/colors":"^6","vanilla-jsoneditor":"^0.16.1","@ant-design/cssinjs":"^2.0.0-alpha.3","@arvinxu/layout-kit":"^1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"np":"^7.0.0","antd":"^5.10.1","dumi":"^2.0.9","jest":"^28.1.0","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4","gh-pages":"^5.0.0","prettier":"^2.0.5","umi-test":"^1.9.7","coveralls":"^3.0.6","cross-env":"^7.0.2","react-dom":"^18.0.0","typescript":"^5.0.2","@types/jest":"^27.5.1","lint-staged":"^13.0.3","@types/react":"^18.0.0","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@types/react-dom":"^18.0.0","@types/classnames":"^2.2.9","@types/tinycolor2":"^1.4.3","react-test-renderer":"^16.0.0","@ant-design/compatible":"^5.1.2","@testing-library/react":"^13","@rc-component/father-plugin":"^1.0.2"},"peerDependencies":{"antd":"^5.5.0","react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/antd-token-previewer_3.0.0-alpha.0_1740130301637_0.676721812435993","host":"s3://npm-registry-packages-npm-production"},"readme":"# antd-token-previewer 🖥\n\nHelp you customize theme in Ant Design.\n\n![image](https://user-images.githubusercontent.com/27722486/235037764-54068c36-13de-4c06-9c7d-78b9a5475c28.png)\n\n## Live Demo\n\nhttps://ant-design.github.io/antd-token-previewer/\n\n## Install\n\n```\nnpm i antd-token-previewer\n```\n\n## Usage\n\nRef: https://ant-design.github.io/antd-token-previewer/editor\n\n## API\n\n### ThemeEditor\n\n| Property         | Description                              | Type                           | Default |\n| ---------------- | ---------------------------------------- | ------------------------------ | ------- |\n| theme            | Controlled Theme object                  | `Theme`                        | -       |\n| onThemeChange    | Callback when `theme` changed            | `(theme: Theme) => void`       | -       |\n| locale           | Language used in ThemeEditor             | `Locale`                       | `zhCN`  |\n| actions          | Actions displayed on the right of header | `React.ReactNode`              | -       |\n| advanced         | Advance mode                             | `boolean`                      | -       |\n| onAdvancedChange | Callback when `advanced` change          | `(advanced: booleaen) => void` | -       |\n| children         | Preview area.                            | `ReactNode`                    | -       |\n\n### Theme\n\n| Property | Description                    | Type          |\n| -------- | ------------------------------ | ------------- |\n| name     | Name of Theme                  | `string`      |\n| key      | Used as `key` for ReactElement | `string`      |\n| config   | Theme config of antd           | `ThemeConfig` |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## License\n\nantd-token-previewer is released under the MIT license.\n","publish_time":1740130301967,"_cnpm_publish_time":1740130301967,"dist-tags":{"latest":"3.0.1","next":"3.0.0-alpha.1"}}