@bifrostui/styles 1.5.3 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,51 @@
1
+ // 无法用css variables实现的先锋版高亮主题色
2
+ @import '../mixins/variables.less';
3
+
4
+ @{theme-selector-pioneer-light} {
5
+ .bui-btn {
6
+ &.bui-btn-contained {
7
+ &.bui-btn-primary {
8
+ &.bui-btn-large {
9
+ background-image:
10
+ radial-gradient(
11
+ 35px 25px ellipse at 2% 110%,
12
+ #fffe1e 0%,
13
+ rgba(251, 134, 35, 0) 99%
14
+ ),
15
+ radial-gradient(
16
+ 35px 25px ellipse at 110% 120%,
17
+ #ff3018 0%,
18
+ rgba(0, 48, 24, 0) 92%
19
+ ),
20
+ linear-gradient(90deg, #fc8622 0%, #ff5000 100%);
21
+ }
22
+
23
+ &.bui-btn-full {
24
+ background-image:
25
+ radial-gradient(
26
+ 93px 50px ellipse at 2% 110%,
27
+ #fffe1e 0%,
28
+ rgba(251, 134, 35, 0) 100%
29
+ ),
30
+ radial-gradient(
31
+ 93px 50px ellipse at 98% 110%,
32
+ #ff3018 0%,
33
+ rgba(0, 48, 24, 0) 92%
34
+ ),
35
+ linear-gradient(90deg, #fc8622 0%, #ff5000 100%);
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ .bui-tabs {
42
+ .bui-tabs-indicator {
43
+ background-image: linear-gradient(
44
+ 90deg,
45
+ #ff9b00 0%,
46
+ #ffa700 21%,
47
+ #ff8300 100%
48
+ );
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,70 @@
1
+ /** 此文件由脚本自动生成,请勿直接修改,若有变更请维护bui-styles/registry/*.mjs,再执行`pnpm theme:js2less`更新主题 */
2
+ .pioneer-light() {
3
+ --bui-font-family-accent:
4
+ 'AlibabaPuHuiTi-Heavy', 'PingFang SC', 'Chinese Quote', 'Segoe UI', roboto,
5
+ 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', helvetica, arial,
6
+ sans-serif;
7
+ --bui-color-red: #ff471a;
8
+ --bui-color-red-light: #ffefe6;
9
+ --bui-color-red-dark: #b31800;
10
+ --bui-color-orange: #ff5000;
11
+ --bui-color-orange-light: #ffede5;
12
+ --bui-color-orange-dark: #d93d00;
13
+ --bui-color-yellow: #ffa608;
14
+ --bui-color-yellow-light: #fffae6;
15
+ --bui-color-yellow-dark: #b36500;
16
+ --bui-color-lemonyellow: #fff36f;
17
+ --bui-color-lemonyellow-light: #ffffeb;
18
+ --bui-color-lemonyellow-dark: #b3a13d;
19
+ --bui-color-green: #40bf00;
20
+ --bui-color-green-light: #f2ffe6;
21
+ --bui-color-green-dark: #1f7300;
22
+ --bui-color-purple: #754dff;
23
+ --bui-color-purple-light: #f6f0ff;
24
+ --bui-color-purple-dark: #3924b3;
25
+ --bui-color-blue: #229af0;
26
+ --bui-color-blue-light: #f0fbff;
27
+ --bui-color-blue-dark: #0757a3;
28
+ --bui-color-aiblue: #5cfffa;
29
+ --bui-color-aiblue-light: #f0fffc;
30
+ --bui-color-aiblue-dark: #1d858c;
31
+ --bui-color-primary: var(--bui-color-orange);
32
+ --bui-color-primary-light: var(--bui-color-orange-light);
33
+ --bui-color-primary-dark: var(--bui-color-orange-dark);
34
+ --bui-title-size-4: var(--bui-font-size-md1);
35
+ --bui-color-fg-disabled: rgba(3, 11, 26, 0.5);
36
+ --bui-color-border-primary: rgba(255, 80, 0, 0.4);
37
+ --bui-color-border-info: rgba(34, 154, 240, 0.4);
38
+ --bui-color-border-success: rgba(64, 191, 0, 0.4);
39
+ --bui-color-border-warning: rgba(255, 80, 0, 0.4);
40
+ --bui-color-border-danger: rgba(255, 71, 26, 0.4);
41
+ --bui-color-primary-start: #ffb300;
42
+ --bui-color-primary-end: var(--bui-color-primary);
43
+ --bui-color-info-start: #5bc8ff;
44
+ --bui-color-info-end: var(--bui-color-info);
45
+ --bui-color-warning-start: #fc3;
46
+ --bui-color-warning-end: var(--bui-color-warning);
47
+ --bui-color-success-start: #66d933;
48
+ --bui-color-success-end: var(--bui-color-success);
49
+ --bui-color-danger-start: #ff7633;
50
+ --bui-color-danger-end: var(--bui-color-danger);
51
+ --bui-shape-radius-drawer: var(--bui-radius-6);
52
+ --bui-shape-radius-card: var(--bui-radius-5);
53
+ --bui-shape-radius-default: var(--bui-radius-4);
54
+ --bui-btn-full-height: 45px;
55
+ --bui-btn-large-height: 30px;
56
+ --bui-btn-full-font-size: 18px;
57
+ --bui-btn-full-font-family: var(--bui-font-family-accent);
58
+ --bui-btn-small-border-radius: 6px;
59
+ --bui-btn-border-radius: 6px;
60
+ --bui-btn-large-border-radius: 7px;
61
+ --bui-btn-full-border-radius: 14px;
62
+ --bui-card-header-title-font-size: var(--bui-title-size-3);
63
+ --bui-tab-font-size: var(--bui-title-size-4);
64
+ --bui-tab-color: var(--bui-color-fg-muted);
65
+
66
+ /* prettier-ignore */
67
+ --bui-tabs-indicator-height: 4PX;
68
+ --bui-tabs-indicator-border-radius: 2px;
69
+ --bui-tabs-indicator-box-shadow: 0 2px 4px 0 rgba(255, 98, 0, 0.2);
70
+ }
@@ -1,29 +0,0 @@
1
- .dark() {
2
- // default是最通用的色彩,比如标题和一级信息
3
- --bui-color-fg-default: #f0f6fc;
4
- // 柔和色,通常用于次级及补充说明信息
5
- --bui-color-fg-muted: #8b949e;
6
- // 淡色,很细微的色彩,用于辅助和需要弱化的信息
7
- --bui-color-fg-subtle: #484f58;
8
- // 用于失效、不可用等状态
9
- --bui-color-fg-disabled: #484f58;
10
-
11
- // 默认背景色
12
- --bui-color-bg-default: #010409;
13
- // 视图背景色
14
- --bui-color-bg-view: #161b22;
15
- --bui-color-bg-popover: fade(#484f58, 70%);
16
- --bui-color-bg-alpha-light-9: fade(#161b22, 90%);
17
- --bui-color-bg-alpha-light-7: fade(#161b22, 70%);
18
- --bui-color-bg-alpha-light-5: fade(#161b22, 50%);
19
- --bui-color-bg-alpha-light-3: fade(#161b22, 30%);
20
- --bui-color-bg-alpha-light-1: fade(#161b22, 10%);
21
- --bui-color-bg-alpha-dark-9: fade(#484f58, 90%);
22
- --bui-color-bg-alpha-dark-7: fade(#484f58, 70%);
23
- --bui-color-bg-alpha-dark-5: fade(#484f58, 50%);
24
- --bui-color-bg-alpha-dark-3: fade(#484f58, 30%);
25
- --bui-color-bg-alpha-dark-1: fade(#484f58, 10%);
26
-
27
- // 分割线、边框
28
- --bui-color-border-default: #30363d;
29
- }
@@ -1,154 +0,0 @@
1
- .light() {
2
- /** 品牌红 */
3
- --bui-color-red: #ff335c;
4
- --bui-color-red-light: #ffebef;
5
-
6
- /** 明亮粉 */
7
- --bui-color-pink: #dd10f2;
8
- --bui-color-pink-light: #fce7fe;
9
-
10
- /** 活力橙 */
11
- --bui-color-orange: #ff8533;
12
- --bui-color-orange-light: #fff0e5;
13
-
14
- /** 亲和绿 */
15
- --bui-color-green: #00d68f;
16
- --bui-color-green-light: #dcf9f0;
17
-
18
- /** 神秘紫 */
19
- --bui-color-purple: #8b52ff;
20
- --bui-color-purple-light: #f2ebff;
21
-
22
- /** 宁静蓝 */
23
- --bui-color-blue: #148aff;
24
- --bui-color-blue-light: #e1f0ff;
25
-
26
- /** 中性灰 */
27
- --bui-color-gray: #8896b1;
28
- --bui-color-gray-light: #f3f5f8;
29
- --bui-color-black: #000;
30
- --bui-color-white: #fff;
31
- --bui-color-vip: #ff866e;
32
-
33
- /** 中性色 */
34
- --bui-color-neutral-0: var(--bui-color-black);
35
- --bui-color-neutral-1: #2e333e;
36
- --bui-color-neutral-2: #5f6672;
37
- --bui-color-neutral-3: #959aa5;
38
- --bui-color-neutral-4: #ced1d6;
39
- --bui-color-neutral-5: #e9ebef;
40
- --bui-color-neutral-6: #f5f6f8;
41
- --bui-color-neutral-7: var(--bui-color-white);
42
-
43
- /** 字重 */
44
- --bui-font-weight-normal: 400;
45
- --bui-font-weight-medium: 500;
46
- --bui-font-weight-bold: 600;
47
-
48
- /** 主题 */
49
- --bui-color-primary: var(--bui-color-red);
50
- --bui-color-primary-light: var(--bui-color-red-light);
51
- --bui-color-info: var(--bui-color-blue);
52
- --bui-color-info-light: var(--bui-color-blue-light);
53
- --bui-color-success: var(--bui-color-green);
54
- --bui-color-success-light: var(--bui-color-green-light);
55
- --bui-color-warning: var(--bui-color-orange);
56
- --bui-color-warning-light: var(--bui-color-orange-light);
57
- --bui-color-danger: var(--bui-color-red);
58
- --bui-color-danger-light: var(--bui-color-red-light);
59
-
60
- /** 语义化字体 */
61
- --bui-title-size-1: 21px;
62
- --bui-title-size-2: 18px;
63
- --bui-title-size-3: 16px;
64
- --bui-title-size-4: 15px;
65
- --bui-text-size-1: 14px;
66
- --bui-text-size-2: 13px;
67
- --bui-text-size-3: 12px;
68
- --bui-text-size-4: 11px;
69
- --bui-text-size-5: 10px;
70
-
71
- // 前景色,通常用于文字
72
- // default是最通用的色彩,比如标题和一级信息
73
- --bui-color-fg-default: var(--bui-color-neutral-1);
74
- // 柔和色,通常用于次级及补充说明信息
75
- --bui-color-fg-muted: var(--bui-color-neutral-2);
76
- // 淡色,很细微的色彩,用于辅助和需要弱化的信息
77
- --bui-color-fg-subtle: var(--bui-color-neutral-3);
78
- // 用于失效、不可用等状态
79
- --bui-color-fg-disabled: var(--bui-color-neutral-4);
80
-
81
- // 默认背景色
82
- --bui-color-bg-default: var(--bui-color-neutral-6);
83
- // 视图背景色
84
- --bui-color-bg-view: var(--bui-color-neutral-7);
85
- --bui-color-bg-popover: var(--bui-color-neutral-7);
86
- --bui-color-bg-alpha-light-9: fade(#fff, 90%);
87
- --bui-color-bg-alpha-light-7: fade(#fff, 70%);
88
- --bui-color-bg-alpha-light-5: fade(#fff, 50%);
89
- --bui-color-bg-alpha-light-3: fade(#fff, 30%);
90
- --bui-color-bg-alpha-light-1: fade(#fff, 10%);
91
- --bui-color-bg-alpha-dark-9: fade(#000, 90%);
92
- --bui-color-bg-alpha-dark-7: fade(#000, 70%);
93
- --bui-color-bg-alpha-dark-5: fade(#000, 50%);
94
- --bui-color-bg-alpha-dark-3: fade(#000, 30%);
95
- --bui-color-bg-alpha-dark-1: fade(#000, 10%);
96
-
97
- // 分割线、边框
98
- --bui-color-border-default: var(--bui-color-neutral-5);
99
- --bui-color-border-primary: fade(#ff335c, 40%);
100
- --bui-color-border-info: fade(#148aff, 40%);
101
- --bui-color-border-success: fade(#00d68f, 40%);
102
- --bui-color-border-warning: fade(#ff8533, 40%);
103
- --bui-color-border-danger: fade(#ff335c, 40%);
104
- --bui-color-border-gray: fade(#8896b1, 40%);
105
-
106
- // 主题色渐变
107
- --bui-color-primary-start: #ef16b9;
108
- --bui-color-primary-end: var(--bui-color-red);
109
- --bui-color-secondary-start: #f32adf;
110
- --bui-color-secondary-end: var(--bui-color-pink);
111
- --bui-color-info-start: #33a7ff;
112
- --bui-color-info-end: var(--bui-color-blue);
113
- --bui-color-warning-start: #ffad33;
114
- --bui-color-warning-end: var(--bui-color-orange);
115
- --bui-color-success-start: #00ebac;
116
- --bui-color-success-end: var(--bui-color-green);
117
- --bui-color-danger-start: #ef16b9;
118
- --bui-color-danger-end: var(--bui-color-red);
119
- --bui-color-vip-start: #ffd4a6;
120
- --bui-color-vip-end: #ffbeae;
121
-
122
- // 形状定义
123
- // 页面级浮层
124
- --bui-shape-radius-popover: 18px;
125
- --bui-shape-radius-drawer: 12px;
126
- // 卡片、普通视图、抽屉、action sheet,常用于信息密度较低的视图
127
- --bui-shape-radius-card: 9px;
128
- // 独立海报、卡片,常用于信息密度较高的视图
129
- --bui-shape-radius-default: 6px;
130
- // 容器内海报
131
- --bui-shape-radius-poster: 4px;
132
- // 标签
133
- --bui-shape-radius-label: 3px;
134
-
135
- // 空间定义
136
- --bui-spacing-xl: 15px;
137
- --bui-spacing-lg: 12px;
138
- --bui-spacing-md: 9px;
139
- --bui-spacing-sm: 6px;
140
- --bui-spacing-xs: 4px;
141
- --bui-line-height: 1.5;
142
- --bui-z-index-dropdown: 1000; // dropdown 、cascader、DatePicker、select、TimePicker、treeSelect
143
- --bui-z-index-affix: 1100; // 吸顶元素、固定元素fixed
144
- --bui-z-index-modal-backdrop: 1200;
145
- --bui-z-index-modal: 1200; // drawer、 model
146
- --bui-z-index-popover: 1300;
147
- --bui-z-index-tooltip: 1400;
148
- --bui-z-index-toast: 1500; // 反馈提示,高于所有元素
149
-
150
- // 字体
151
- --bui-font-family: 'PingFang SC', 'Chinese Quote', 'Segoe UI', roboto,
152
- 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', helvetica, arial,
153
- sans-serif;
154
- }
@@ -1,33 +0,0 @@
1
- .dm-dark() {
2
- --bui-color-neutral-5: #e5e5e5;
3
- --bui-color-powder-start: #ff4886;
4
- --bui-color-powder-end: #ffa662;
5
-
6
- // default是最通用的色彩,比如标题和一级信息
7
- --bui-color-fg-default: #f0f6fc;
8
- // 柔和色,通常用于次级及补充说明信息
9
- --bui-color-fg-muted: #8b949e;
10
- // 淡色,很细微的色彩,用于辅助和需要弱化的信息
11
- --bui-color-fg-subtle: #484f58;
12
- // 用于失效、不可用等状态
13
- --bui-color-fg-disabled: #484f58;
14
-
15
- // 默认背景色
16
- --bui-color-bg-default: #010409;
17
- // 视图背景色
18
- --bui-color-bg-view: #161b22;
19
- --bui-color-bg-popover: fade(#484f58, 70%);
20
- --bui-color-bg-alpha-light-9: fade(#161b22, 90%);
21
- --bui-color-bg-alpha-light-7: fade(#161b22, 70%);
22
- --bui-color-bg-alpha-light-5: fade(#161b22, 50%);
23
- --bui-color-bg-alpha-light-3: fade(#161b22, 30%);
24
- --bui-color-bg-alpha-light-1: fade(#161b22, 10%);
25
- --bui-color-bg-alpha-dark-9: fade(#484f58, 90%);
26
- --bui-color-bg-alpha-dark-7: fade(#484f58, 70%);
27
- --bui-color-bg-alpha-dark-5: fade(#484f58, 50%);
28
- --bui-color-bg-alpha-dark-3: fade(#484f58, 30%);
29
- --bui-color-bg-alpha-dark-1: fade(#484f58, 10%);
30
-
31
- // 分割线、边框
32
- --bui-color-border-default: #30363d;
33
- }
@@ -1,19 +0,0 @@
1
- .dm-light() {
2
- /** 颜色 */
3
- --bui-color-blue: #48b1f1;
4
- --bui-color-orange: #ff8f3f;
5
- --bui-color-gray: #f5f5f5;
6
- --bui-color-pink: #ff8e92;
7
- --bui-color-neutral-2: #4d4d56;
8
- --bui-color-neutral-3: #9c9ca5;
9
- --bui-color-neutral-5: #f1f1f1;
10
- --bui-color-bg-default: #f4f5f6;
11
- --bui-color-powder-start: #ff72a2;
12
- --bui-color-powder-end: #ff7070;
13
- --bui-title-size-2: 20px;
14
- --bui-title-size-3: 18px;
15
- --bui-color-red: #ff4886;
16
- --bui-color-fg-default: #2e333e;
17
- --bui-color-fg-muted: #2e333e;
18
- --bui-shape-radius-label: 4px;
19
- }
package/theme/index.less DELETED
@@ -1,4 +0,0 @@
1
- @import './default-light.less';
2
- @import './default-dark.less';
3
- @import './dm-light.less';
4
- @import './dm-dark.less';