ant-design/components/theme/interface/alias.ts

305 lines
7.4 KiB
TypeScript
Raw Normal View History

import type * as React from 'react';
import type { MapToken } from './maps';
// ======================================================================
// == Alias Token ==
// ======================================================================
// 🔥🔥🔥🔥🔥🔥🔥 DO NOT MODIFY THIS. PLEASE CONTACT DESIGNER. 🔥🔥🔥🔥🔥🔥🔥
export interface AliasToken extends MapToken {
// Background
colorFillContentHover: string;
colorFillAlter: string;
colorFillContent: string;
/**
* @desc
* @descEN Disabled container background color.
*/
colorBgContainerDisabled: string;
/**
* @desc
* @descEN Hover text background color.
*/
colorBgTextHover: string;
/**
* @desc
* @descEN Active text background color.
*/
colorBgTextActive: string;
// Border
colorBorderBg: string;
/**
* @nameZH 线
* @desc 线 colorBorderSecondary
*/
colorSplit: string;
// Text
colorTextPlaceholder: string;
/**
* @desc
* @descEN Disabled text color
*/
colorTextDisabled: string;
colorTextHeading: string;
colorTextLabel: string;
colorTextDescription: string;
/**
* @desc Primary Button
* @descEN Fixed text highlight color, used for text with background color such as Primary Button components
*/
colorTextLightSolid: string;
/** Weak action. Such as `allowClear` or Alert close button */
colorIcon: string;
/** Weak action hover color. Such as `allowClear` or Alert close button */
colorIconHover: string;
/**
* @desc
* @descEN hyperlink color
*/
colorLink: string;
/**
* @desc
* @descEN hyperlink hover color
*/
colorLinkHover: string;
/**
* @desc
* @descEN hyperlink active color
*/
colorLinkActive: string;
colorHighlight: string;
/**
* @desc Outline
* @descEN Input component outline color
*/
controlOutline: string;
colorWarningOutline: string;
/**
* @desc Outline
* @descEN Input component error outline color
*/
colorErrorOutline: string;
// Font
/** Operation icon in Select, Cascader, etc. icon fontSize. Normal is same as fontSizeSM */
fontSizeIcon: number;
/** For heading like h1, h2, h3 or option selected item */
fontWeightStrong: number;
// Control
/**
* @desc Outline
* @descEN Input component outline size
*/
controlOutlineWidth: number;
controlItemBgHover: string; // Note. It also is a color
controlItemBgActive: string; // Note. It also is a color
controlItemBgActiveHover: string; // Note. It also is a color
controlInteractiveSize: number;
controlItemBgActiveDisabled: string; // Note. It also is a color
// Line
/**
* @desc Outline
* @descEN Outline size when focused
*/
lineWidthFocus: number;
// Padding
/**
* @desc
* @descEN Padding size
*/
paddingXXS: number;
/**
* @desc
* @descEN Padding size
*/
paddingXS: number;
/**
* @desc
* @descEN Padding size
*/
paddingSM: number;
/**
* @desc
* @descEN Padding size
*/
padding: number;
/**
* @desc
* @descEN Padding size
*/
paddingMD: number;
/**
* @desc
* @descEN Padding size
*/
paddingLG: number;
/**
* @desc
* @descEN Padding size
*/
paddingXL: number;
// Padding Content
/**
* @nameZH
* @nameEN Content horizontal padding
* @desc
* @descEN Control the horizontal padding of content element.
*/
paddingContentHorizontalLG: number;
/**
* @nameZH
* @nameEN Content horizontal padding
* @desc
* @descEN Control the horizontal padding of content element.
*/
paddingContentHorizontal: number;
/**
* @nameZH
* @nameEN Content horizontal padding
* @desc
* @descEN Control the horizontal padding of content element.
*/
paddingContentHorizontalSM: number;
/**
* @nameZH
* @nameEN Content vertical padding
* @desc
* @descEN Control the vertical padding of content element.
*/
paddingContentVerticalLG: number;
/**
* @nameZH
* @nameEN Content vertical padding
* @desc
* @descEN Control the vertical padding of content element.
*/
paddingContentVertical: number;
/**
* @nameZH
* @nameEN Content vertical padding
* @desc
* @descEN Control the vertical padding of content element.
*/
paddingContentVerticalSM: number;
// Margin
/**
* @desc
* @descEN Margin size.
*/
marginXXS: number;
/**
* @desc
* @descEN Margin size.
*/
marginXS: number;
/**
* @desc
* @descEN Margin size.
*/
marginSM: number;
/**
* @desc
* @descEN Margin size.
*/
margin: number;
/**
* @desc
* @descEN Margin size.
*/
marginMD: number;
/**
* @desc
* @descEN Margin size.
*/
marginLG: number;
/**
* @desc
* @descEN Margin size.
*/
marginXL: number;
/**
* @desc
* @descEN Margin size.
*/
marginXXL: number;
// =============== Legacy: should be remove ===============
/**
* @desc
* @descEN Loading opacity
*/
opacityLoading: number;
boxShadow: string;
boxShadowSecondary: string;
boxShadowTertiary: string;
linkDecoration: React.CSSProperties['textDecoration'];
linkHoverDecoration: React.CSSProperties['textDecoration'];
linkFocusDecoration: React.CSSProperties['textDecoration'];
controlPaddingHorizontal: number;
controlPaddingHorizontalSM: number;
// Media queries breakpoints
screenXS: number;
screenXSMin: number;
screenXSMax: number;
screenSM: number;
screenSMMin: number;
screenSMMax: number;
screenMD: number;
screenMDMin: number;
screenMDMax: number;
screenLG: number;
screenLGMin: number;
screenLGMax: number;
screenXL: number;
screenXLMin: number;
screenXLMax: number;
screenXXL: number;
screenXXLMin: number;
/**
* Used for DefaultButton, Switch which has default outline
* @desc Outline
* @descEN Default style outline color.
*/
controlTmpOutline: string;
// FIXME: component box-shadow, should be removed
/** @internal */
boxShadowPopoverArrow: string;
/** @internal */
boxShadowCard: string;
/** @internal */
boxShadowDrawerRight: string;
/** @internal */
boxShadowDrawerLeft: string;
/** @internal */
boxShadowDrawerUp: string;
/** @internal */
boxShadowDrawerDown: string;
/** @internal */
boxShadowTabsOverflowLeft: string;
/** @internal */
boxShadowTabsOverflowRight: string;
/** @internal */
boxShadowTabsOverflowTop: string;
/** @internal */
boxShadowTabsOverflowBottom: string;
}