import type { GlobalToken as GlobalTokenTypeUtil, OverrideTokenMap as OverrideTokenTypeUtil, FullToken as FullTokenTypeUtil, TokenMapKey } from '@ant-design/cssinjs-utils'; import type { AliasToken as AntAliasToken, ComponentTokenMap } from 'antd/es/theme/interface'; export * from 'antd/es/theme/interface'; export interface AliasToken extends AntAliasToken { /** * @nameZH 正文的字体粗细 * @nameEN Font weight for body text * @desc 控制正文的字体粗细。 * @descEN Control the font weight of body text. */ fontWeight: number; /** * @nameZH 辅助描述的字体粗细,一般弱于正文 * @nameEN Font weight for auxiliary description, usually weaker than body text * @desc 控制辅助描述的字体粗细,一般弱于正文。 * @descEN Control the font weight of auxiliary description, usually weaker than body text. */ fontWeightWeak: number; /** * @nameZH 等于 fontSize * lineHeight 的值 * @nameEN Round of fontSize * lineHeight * @desc 等于 fontSize * lineHeight 的值。 * @descEN Round of fontSize * lineHeight. */ fontHeight: number; /** * @nameZH 小号字体的高度 * @nameEN Font height for small size * @desc 小号字体的高度,用于组件中的一些小号字体,如 Pill Tag 等一些组件样式。 * @descEN The height of the small font, used in some small font components, such as Pill Tag etc. */ fontHeightSM: number; /** * @nameZH MD号圆角 * @nameEN MD Border Radius * @desc MD号圆角,用于组件中的一些中圆角,如嵌套 Card、Alert、Tooltip、Dropdown 等一些组件样式。 * @descEN MD size border radius, used in some medium border radius components, such as nested Card, Alert, Tooltip, Dropdown etc. * @default 6 */ borderRadiusMD: number; /** * @nameZH 严重错误色 * @nameEN Critical Error Color * @desc 用于表示操作严重失败的 Token 序列,如严重错误告警等。 * @descEN Used to represent the visual elements of the operation serious failure, such as critical error alert etc. */ colorFuchsia: string; /** * @nameZH 严重错误色的描边色 * @nameEN Critical error border color * @desc 严重错误色的描边色 * @descEN The border color of the critical error state. */ colorFuchsiaBorder: string; /** * @nameZH 严重错误色背景 * @nameEN Critical error background color * @desc 严重错误色背景 * @descEN The background color of the critical error state. */ colorFuchsiaBg: string; /** * @nameZH 严重错误色背景悬停色 * @nameEN Critical error background hover color * @desc 严重错误色背景悬停色 * @descEN The hover color of the critical error background state. */ colorFuchsiaBgHover: string; /** * @nameZH 严重错误色悬停色 * @nameEN Critical error hover color * @desc 严重错误色悬停色 * @descEN The hover color of the critical error state. */ colorFuchsiaHover: string; /** * @nameZH 严重错误色激活色 * @nameEN Critical error active color * @desc 严重错误色激活色 * @descEN The active color of the critical error state. */ colorFuchsiaActive: string; /** * @nameZH 严重错误色文本 * @nameEN Critical error text color * @desc 严重错误色文本 * @descEN The text color of the critical error state. */ colorFuchsiaText: string; white: string; black: string; gray1: string; gray2: string; gray3: string; gray4: string; gray5: string; gray6: string; gray7: string; gray8: string; gray9: string; blue1: string; blue2: string; blue3: string; blue4: string; blue5: string; blue6: string; green1: string; green2: string; green3: string; green4: string; green5: string; green6: string; orange1: string; orange2: string; orange3: string; orange4: string; orange5: string; orange6: string; red1: string; red2: string; red3: string; red4: string; red5: string; red6: string; fuchsia1: string; fuchsia2: string; fuchsia3: string; fuchsia4: string; fuchsia5: string; fuchsia6: string; colorNaviBg: string; colorNaviBgHover: string; } /** Final token which contains the components level override */ export type GlobalToken = GlobalTokenTypeUtil; export type OverrideToken = OverrideTokenTypeUtil; export type OverrideComponent = TokenMapKey; export type FullToken> = FullTokenTypeUtil; declare module 'antd/es/table/style' { interface ComponentToken { /** * 英文界面下启用表格内嵌 Button(genSmallBtnStyle)与分页条(含 page size Select)的整套对齐样式。 * @descEN Enables full embedded Button and pagination (incl. page-size Select) alignment styles for English UI. * @internal */ localeEnEmbeddedControls?: boolean; } } declare module 'antd/es/notification/style' { interface ComponentToken { /** * 提醒框内容区域的最大高度,超出后内部滚动。 * @descEN Max height of the Notification content area; scrolls inside when exceeded. */ maxHeight?: number | string; } }