{"_id":"antd-token-previewer@3.0.1","bugs":{"url":"https://github.com/ant-design/antd-token-previewer/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"68a8b3c7fdbfe6029381b38148403132e6d0e7c0","tarball":"http://registry-npm.ywwl.com/antd-token-previewer/download/antd-token-previewer-3.0.1.tgz","fileCount":1203,"integrity":"sha512-d2mngjAO/TcoEMws3TDbMtfsIeTCPhbjzy8gLNaZFo/qcf6sJCtIzy+siX0ozhC7uEwRyuL2bkMLMSGQu+J4AA==","signatures":[{"sig":"MEYCIQCDQPe5TsX5HIzNLZmSaaw0XbYkiFt6GfavomGBGtghLgIhANsebdliUvCZ5pxUytqzN+h8EoXj5Q2hewl6W1/YpiTi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBKlgriS/Ntlb2eSO8u174/fbChLhfNz09Z5dd9Svc85AiEAtapADhV5DJczG4Kt35dyyaDpv2ZcHABULVC1VHHvBOM="}],"unpackedSize":1150555,"size":180522,"noattachment":false,"key":"/antd-token-previewer/-/antd-token-previewer-3.0.1.tgz"},"main":"./lib/index","name":"antd-token-previewer","types":"./lib/index.d.ts","module":"./es/index","gitHead":"2e192e5e24ff9d059c35813f8ae77aa1acf70767","license":"MIT","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"umi-test","start":"dumi dev","compile":"father build","prepare":"husky || true","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"},"version":"3.0.1","_npmUser":{"name":"madccc","email":"1075746765@qq.com"},"homepage":"https://ant-design.github.io/antd-token-previewer/previewer","keywords":["react","antd","ant-design"],"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"]},"maintainers":[{"name":"madccc","email":"1075746765@qq.com"}],"sideEffects":["*.css"],"_nodeVersion":"22.13.1","dependencies":{"clsx":"^2.1.1","@xyflow/react":"^12.8.6","@babel/runtime":"^7.28.4","react-colorful":"^5.6.1","@ctrl/tinycolor":"^3.6.1","@ant-design/icons":"^6.1.0","@ant-design/colors":"^7.2.1","@rc-component/util":"^1.3.0","vanilla-jsoneditor":"^0.16.1","@ant-design/cssinjs":"^2.0.0","@arvinxu/layout-kit":"^1.4.0"},"_hasShrinkwrap":false,"devDependencies":{"np":"^7.7.0","antd":"6.0.0-alpha.3","dumi":"^2.4.21","jest":"^30.2.0","husky":"^9.1.7","react":"^19.2.0","eslint":"^7.32.0","father":"^4.6.6","gh-pages":"^5.0.0","prettier":"^2.8.8","umi-test":"^1.9.7","coveralls":"^3.1.1","cross-env":"^10.1.0","react-dom":"^19.2.0","typescript":"^5.9.3","@types/jest":"^30.0.0","@types/node":"^24.7.2","lint-staged":"^13.3.0","@types/react":"^19.2.2","pretty-quick":"^3.3.1","@umijs/fabric":"^3.0.0","@types/react-dom":"^19.2.1","@types/tinycolor2":"^1.4.6","react-test-renderer":"^19.2.0","@testing-library/react":"^16.3.0","@rc-component/father-plugin":"^1.1.0"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/antd-token-previewer_3.0.1_1789550209396_0.18542966052973564"},"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":1789550209484,"_cnpm_publish_time":1789550209484,"dist-tags":{"latest":"3.0.1","next":"3.0.0-alpha.1"}}