tdesign-react
Version:
TDesign Component for React
55 lines (43 loc) • 1.95 kB
text/less
// 组件变量
// 名称可按如下规则定义:
// <component>-[type]-[attrtype]-<attr>-[status]
// component:组件名,如button,
// type: 组件类型,如 button 的次要按钮(line)
// attrtype: 属性的具体应用场景。如颜色,用于背景(bg)、文本(text)、边框(border)等
// attr: 属性名称,如color、height、radius等
// status: 表示组件状态或尺寸,如 hover、disabled、s、l 等
// 如:@button-line-bg-color-hover
// 如:@button-line-height-s
@import "../../_variables.less";
// 颜色
@textarea-placeholder-color: @text-color-placeholder;
@textarea-text-color: @text-color-primary;
@textarea-limit-color: @text-color-placeholder;
@textarea-bg-color-default: @bg-color-specialcomponent;
@textarea-bg-color-disabled: @bg-color-component-disabled;
@textarea-color-text-disabled: @text-color-disabled;
@textarea-border-color-success: @success-color;
@textarea-border-color-warning: @warning-color;
@textarea-border-color-error: @error-color;
@textarea-text-color-success: @success-color;
@textarea-text-color-warning: @warning-color;
@textarea-text-color-error: @error-color;
@textarea-text-color-tips: @text-color-placeholder;
// 尺寸
@textarea-height: @comp-size-xxxl;
@textarea-tips-min-height: @comp-size-xs;
// 字体
@textarea-font: @font-body-medium;
@textarea-tips-font: @font-body-small;
// 间距
@textarea-padding: calc(calc(@comp-size-m - @text-line-height-base) / 2) @comp-paddingLR-s;
@textarea-tips-gap: @comp-margin-s;
// 边框
@textarea-border-color: @border-level-2-color;
@textarea-border-color-hover: @brand-color;
@textarea-border-color-focus: @brand-color;
@textarea-box-shadow-color-focus: @brand-color-focus;
@textarea-box-shadow-color-success-focus: @success-color-focus;
@textarea-box-shadow-color-warning-focus: @warning-color-focus;
@textarea-box-shadow-color-error-focus: @error-color-focus;
@textarea-border-radius: @border-radius-default;