Documents
README
README
Type
External
Status
Published
Created
Jun 12, 2026
Updated
Jun 12, 2026
Source
View

antd-token-previewer 🖥#

Help you customize theme in Ant Design.

image

Live Demo#

https://ant-design.github.io/antd-token-previewer/

Install#

npm i antd-token-previewer

Usage#

Ref: https://ant-design.github.io/antd-token-previewer/editor

API#

ThemeEditor#

PropertyDescriptionTypeDefault
themeControlled Theme objectTheme-
onThemeChangeCallback when theme changed(theme: Theme) => void-
localeLanguage used in ThemeEditorLocalezhCN
actionsActions displayed on the right of headerReact.ReactNode-
advancedAdvance modeboolean-
onAdvancedChangeCallback when advanced change(advanced: booleaen) => void-
childrenPreview area.ReactNode-

Theme#

PropertyDescriptionType
nameName of Themestring
keyUsed as key for ReactElementstring
configTheme config of antdThemeConfig

Development#

npm install
npm start

License#

antd-token-previewer is released under the MIT license.