Skip to content

Commit 1f21491

Browse files
liujupingJackLian
authored andcommitted
style: add css themes vars
1 parent 3786b3a commit 1f21491

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

docs/docs/guide/expand/editor/theme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ sidebar_position: 9
3535
#### Icon 相关颜色
3636

3737
- `--color-icon-normal`: 默认状态
38+
- `--color-icon-light`: icon light 状态
3839
- `--color-icon-hover`: 鼠标悬停状态
3940
- `--color-icon-active`: 激活状态
4041
- `--color-icon-reverse`: 反色状态
@@ -82,16 +83,21 @@ sidebar_position: 9
8283
#### 区块背景色
8384

8485
- `--color-block-background-normal`: 区块背景色
85-
- `--color-block-background-light`: 区块背景色(light), 作用于画布组件 hover 时遮罩背景色
86+
- `--color-block-background-light`: 区块背景色(light)。
8687
- `--color-block-background-shallow`: 区块背景色 shallow
8788
- `--color-block-background-dark`: 区块背景色(dark)
8889
- `--color-block-background-disabled`: 区块背景色(disabled)
8990
- `--color-block-background-active`: 区块背景色(active)
91+
- `--color-block-background-active-light`: 区块背景色(active light)
9092
- `--color-block-background-warning`: 区块背景色(warning)
9193
- `--color-block-background-error`: 区块背景色(error)
9294
- `--color-block-background-success`: 区块背景色(success)
9395
- `--color-block-background-deep-dark`: 区块背景色(deep-dark),作用于多个组件同时拖拽的背景色。
9496

97+
#### 引擎相关颜色
98+
99+
- `--color-canvas-detecting-background`: 画布组件 hover 时遮罩背景色。
100+
95101
#### 其他区域背景色
96102

97103
- `--color-layer-mask-background`: 拖拽元素时,元素原来位置的遮罩背景色

packages/designer/src/builtin-simulator/bem-tools/borders.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
&&-detecting {
101101
z-index: 1;
102102
border-style: dashed;
103-
background: var(--color-block-background-light, rgba(0,121,242,.04));
103+
background: var(--color-canvas-detecting-background, rgba(0,121,242,.04));
104104
}
105105

106106
&&-selecting {

packages/editor-skeleton/src/layouts/theme.less

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
--color-icon-normal: @normal-alpha-4;
1616
--color-icon-hover: @normal-alpha-3;
17+
--color-icon-light: @normal-alpha-5;
1718
--color-icon-active: @brand-color-1;
1819
--color-icon-reverse: @white-alpha-1;
1920
--color-icon-disabled: @normal-alpha-6;
@@ -55,10 +56,11 @@
5556
--color-pane-background: @white-alpha-1;
5657
--color-block-background-normal: @white-alpha-1;
5758
--color-block-background-light: @normal-alpha-9;
58-
--color-block-background-shallow: @normal-alpha-8;
5959
--color-block-background-dark: @normal-alpha-7;
60+
--color-block-background-shallow: @normal-alpha-8;
6061
--color-block-background-disabled: @normal-alpha-6;
61-
--color-block-background-active: @brand-color-1-7;
62+
--color-block-background-active: @brand-color-1;
63+
--color-block-background-active-light: @brand-color-1-7;
6264
--color-block-background-warning: @brand-warning-alpha-7;
6365
--color-block-background-error: @brand-danger-alpha-7;
6466
--color-block-background-success: @brand-success-alpha-7;
@@ -67,6 +69,8 @@
6769
--color-layer-tooltip-background: rgba(44,47,51,0.8);
6870
--color-background: #edeff3;
6971

72+
--color-canvas-detecting-background: rgba(0,121,242,.04);
73+
7074
--pane-title-bg-color: rgba(31,56,88,.04);
7175
}
7276

0 commit comments

Comments
 (0)