Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme): modify variable names and add reset styles #2185

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/theme/src/base/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
[class*=~'@{css-prefix}'] {
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: var(--tv-font-family);

*:after,
*:before {
Expand Down
5 changes: 3 additions & 2 deletions packages/theme/src/base/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,17 @@

/** 2.5 图标色 **/
--tv-color-icon: var(--tv-base-color-common-8); // #808080 默认图标色
--tv-color-icon-stable: var(--tv-base-color-brand); // #191919 稳定态图标色, hover时不用变化
--tv-color-icon-hover: var(--tv-base-color-common-11); // #191919 图标悬浮色
--tv-color-icon-active: var(--tv-base-color-common-11); // #191919 图标激活色
--tv-color-icon-disabled: var(--tv-base-color-common-7); // #c2c2c2 图标禁用色
--tv-color-icon-control: var(--tv-base-color-brand); // #191919 图标按钮 / 图标+文本按钮图标色,主要在按钮场景(稳定态图标色, hover时不用变化)
--tv-color-icon-control-active: var(--tv-base-color-brand-6); // #1476ff 控件图标激活色,主要在checkbox、radio图标激活场景
--tv-color-icon-control-disabled: var(--tv-base-color-common-6); // #1476ff 控件图标禁用色,主要在checkbox、radio图标激活场景
--tv-color-icon-disabled: var(--tv-base-color-common-7); // #c2c2c2 图标禁用色
--tv-color-icon-white: var(--tv-base-color-common-1); // #fff 深色背景白色图标
--tv-color-icon-link: var(--tv-base-color-brand-6); // #1476ff 链接图标色
--tv-color-icon-warn-secondary: var(--tv-base-color-warn-secondary-1); // #ffb700 次要警告图标色 / 评分组件rate-图标色/状态图标-异常


/** 2.6 背景色 **/

/* 2.6.1 常态 */
Expand Down
Loading