Skip to content

Commit 6eadae5

Browse files
committed
fix(theme): fix
1 parent 14c72bc commit 6eadae5

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

packages/theme/src/base/vars.less

+11-10
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
--tv-base-color-warn-11: #9e6d3f;
7979
--tv-base-color-warn-12: #d6a981;
8080
--tv-base-color-warn-13: #f2d8c2;
81-
--tv-base-color-warn-secondary-1: #ffb700;
82-
/* 次要告警色 黄色系 */
81+
--tv-base-color-warn-secondary-1: #ffb700; // 次要告警色 黄色系
8382

8483
--tv-base-color-info-1: #f0f7ff;
8584
--tv-base-color-info-2: #deecff; // 提示-背景色 / 边框色
@@ -296,9 +295,6 @@
296295
--tv-color-icon-link: var(--tv-base-color-brand-6); // #1476ff 链接图标色
297296
--tv-color-icon-warn-secondary: var(--tv-base-color-warn-secondary-1); // #ffb700 次要警告图标色 / 评分组件rate-图标色/状态图标-异常
298297

299-
/** 2.5.1 图标大小 **/
300-
--tv-icon-size: 16px;
301-
302298
/** 2.6 背景色 **/
303299

304300
/* 2.6.1 常态 */
@@ -371,13 +367,13 @@
371367
/* 3.4 字重 */
372368
--tv-font-weight-thin: 200;
373369
--tv-font-weight-regular: 400;
374-
--tv-font-weight-medium: 600;
370+
--tv-font-weight-bold: 600;
375371

376372
/** 4. 圆角变量 **/
377373
--tv-border-radius-sm: 4px;
378374
--tv-border-radius-md: 6px;
379375
--tv-border-radius-lg: 8px;
380-
--tv-border-radius-round: 50%;
376+
--tv-border-radius-round: 999px; // 50% 会造成椭圆,避免使用。 999px是 tiny3的做法。
381377

382378
/** 5. 边框 **/
383379
--tv-border-width: 1px;
@@ -390,17 +386,22 @@
390386
--tv-space-lg: calc(var(--tv-space-base) * 3);
391387
--tv-space-xl: calc(var(--tv-space-base) * 4);
392388

393-
/** 7. 尺寸变量 size ---- width、 height **/
389+
/** 7. 尺寸变量 size **/
390+
391+
/** 尺寸系数 calc */
394392
--tv-size-base: 4px;
395393

396-
/** 以下变量仅用于表单类组件的 height */
394+
/** 7.1 表单类组件的 height */
397395
--tv-size-height-xs: 24px; // mini 尺寸
398396
--tv-size-height-sm: 28px; // small 尺寸
399397
--tv-size-height-md: 32px; // medium 尺寸 - 默认
400398
--tv-size-height-lg: 40px; // large 尺寸
401399
--tv-size-height-xl: 48px; // xLarge 尺寸
402400

403-
/** 8. 阴影变量 **/
401+
/** 7.2 图标大小 width, height **/
402+
--tv-icon-size: 16px;
403+
404+
/** 8. 阴影变量 box-shadow **/
404405
--tv-shadow-0: 0 4px 16px 0 rgba(0, 0, 0, 0.08); // 页面布局容器组件(layout-section)阴影
405406
--tv-shadow-1: 0 0 0 0 rgba(0, 0, 0, 0); // 页面布局容器组件(layout-section)阴影
406407

0 commit comments

Comments
 (0)