{"name":"antd-token-previewer","version":"3.0.0","keywords":["react","antd","ant-design"],"license":"MIT","_id":"antd-token-previewer@3.0.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":"4f43b7fcb534b6733269b737dfeaf311b5c709ae","tarball":"http://registry-npm.ywwl.com/antd-token-previewer/download/antd-token-previewer-3.0.0.tgz","fileCount":1203,"integrity":"sha512-0Sy/cZrMsLzHWQEIKA9U3/dedPwI2hCRdlKH9/D6BFzNZP/6eVBOYV6p5SN6Fk69YGe9JJZ3VBxpO5XwZfpwfw==","signatures":[{"sig":"MEUCIC3KPaKfF8+oPjIFxmJ1GnLIwkiFNxAJzu8rxu3omQ96AiEA3e3hnOSSua56MllTdcLh1NSBmFVB0ysUgWt77BXyyW8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1148567,"size":180123,"noattachment":false,"key":"/antd-token-previewer/-/antd-token-previewer-3.0.0.tgz"},"main":"./lib/index","types":"./lib/index.d.ts","module":"./es/index","gitHead":"af91edbf4bee4384588719de41759c26ff944a51","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"},"_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":{"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":{"tmp":"tmp/antd-token-previewer_3.0.0_1763374906984_0.169552577307863","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":1763374907200,"_cnpm_publish_time":1763374907200,"dist-tags":{"latest":"3.0.1","next":"3.0.0-alpha.1"}}