earthnut 0.2.3-alpha.2 → 0.2.3-alpha.3
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.
- package/README.md +9 -9
- package/client.mjs +2 -2
- package/client.mjs.map +1 -0
- package/layoutUtil.mjs +2 -2
- package/layoutUtil.mjs.map +1 -1
- package/package.json +13 -21
- package/server.mjs +2 -2
- package/server.mjs.map +1 -1
- package/styles/common.css +1 -1012
- package/styles/common.scss +10 -1
- package/styles/mixin-color-dark.scss +150 -0
- package/styles/mixin-color-light.scss +148 -0
- package/styles/root.scss +65 -191
- package/styles/vars-color.scss +166 -124
- package/styles/vars-size.scss +2 -0
- package/{components → type/components}/ThemeContext/index.d.ts +2 -2
- package/{components → type/components}/ThemeContext/types.d.ts +1 -1
- package/{components → type/components}/button/button.d.ts +1 -1
- package/{components → type/components}/button/index.d.ts +1 -1
- package/{components → type/components}/image/index.d.ts +1 -1
- package/{components → type/components}/image/types.d.ts +1 -1
- package/{components → type/components}/image/useSrcChange.d.ts +1 -1
- package/{components → type/components}/layout/content.d.ts +1 -1
- package/{components → type/components}/layout/footer.d.ts +1 -1
- package/{components → type/components}/layout/get-value.d.ts +1 -1
- package/{components → type/components}/layout/header.d.ts +1 -1
- package/{components → type/components}/layout/index.d.ts +1 -1
- package/{components → type/components}/layout/is-fragment.d.ts +1 -1
- package/{components → type/components}/layout/layout.d.ts +1 -1
- package/{components → type/components}/layout/sidebar.d.ts +1 -1
- package/{components → type/components}/layout/types.d.ts +2 -2
- package/{components → type/components}/marquee/MarqueeEle.d.ts +1 -1
- package/{components → type/components}/marquee/index.d.ts +1 -1
- package/{components → type/components}/marquee/type.d.ts +1 -1
- package/{components → type/components}/menu/index.d.ts +1 -1
- package/{components → type/components}/menu/menu.d.ts +1 -1
- package/{components → type/components}/ripples/Content.d.ts +1 -1
- package/{components → type/components}/ripples/LazyRippleEle.d.ts +1 -1
- package/{components → type/components}/ripples/RipplesEle.d.ts +1 -1
- package/{components → type/components}/ripples/index.d.ts +1 -1
- package/{components → type/components}/ripples/types.d.ts +1 -1
- package/{components → type/components}/ripples/useOptionUpdate.d.ts +1 -1
- package/{components → type/components}/shared/EnLayoutContent/index.d.ts +1 -1
- package/{components → type/components}/shared/EnLayoutContent/types.d.ts +1 -1
- package/{components → type/components}/switch/SwitchContainer.d.ts +1 -1
- package/{components → type/components}/switch/SwitchContent.d.ts +1 -1
- package/{components → type/components}/switch/SwitchLabel.d.ts +1 -1
- package/{components → type/components}/switch/index.d.ts +1 -1
- package/type/customHooks/use-xcn/index.d.ts +14 -0
- package/{customHooks → type/customHooks}/useAnimationFrame.d.ts +1 -1
- package/{customHooks → type/customHooks}/useInputIsComposing.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/create-background-color.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/create-linear-gradient.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/_createImageData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/circleDataList.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/createDefault.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/default-background/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/load-image.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/run-side.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/type.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/bind-image.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-canvas-element.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/create-image-by-src.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/get-background-style.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/hide-css-background.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/buildBackground/utils/restore-css-background.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/can-side.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/destroy.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/drop.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/extract-url.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/fade.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/get-new-image.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/reload-background.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/callback/scale.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/initEvent.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/initShaders.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/init/initTexture.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/computeTextureBoundaries.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/draw.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/drawQuad.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/dropAtPointer.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/swapBufferIndices.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/render/update.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/defaultData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/fadeData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/index.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/loadConfig.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/renderData.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/useOptions.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/rippersData/vertexSource.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/ripple.html.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/ripplesClass.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/tools.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/types.d.ts +1 -1
- package/{customHooks → type/customHooks}/useRipples/use-lazy-ripple.d.ts +1 -1
- package/{customHooks → type/customHooks}/useTimeId.d.ts +1 -1
- package/type/dog.d.ts +8 -0
- package/{index.client.d.ts → type/index.client.d.ts} +1 -1
- package/{index.d.ts → type/index.d.ts} +1 -1
- package/{index.server.d.ts → type/index.server.d.ts} +1 -1
- package/{storage → type/storage}/main-logic .d.ts +1 -1
- package/{storage → type/storage}/storage-store.d.ts +1 -1
- package/{utilities → type/utilities}/cookie.d.ts +1 -9
- package/{utilities → type/utilities}/sys.d.ts +1 -1
- package/209.mjs +0 -10
- package/209.mjs.map +0 -1
- package/customHooks/use-xcn/index.d.ts +0 -14
package/styles/vars-color.scss
CHANGED
|
@@ -1,247 +1,289 @@
|
|
|
1
|
-
|
|
2
|
-
$en-color-neutral-light-70: #f9f9fb;
|
|
3
|
-
$en-color-neutral-light-80: #f2f1f1;
|
|
4
|
-
$en-color-neutral-light-90: #ebeaea;
|
|
1
|
+
// 亮度值
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
$en-color-neutral-30: #b3b3b3;
|
|
9
|
-
$en-color-neutral-40: #9e9e9e;
|
|
10
|
-
$en-color-neutral-50: #858585;
|
|
11
|
-
$en-color-neutral-60: #696969;
|
|
12
|
-
$en-color-neutral-70: #4e4e4e;
|
|
13
|
-
$en-color-neutral-75: #313131;
|
|
14
|
-
$en-color-neutral-80: #343434;
|
|
15
|
-
$en-color-neutral-90: #1b1b1b;
|
|
3
|
+
// function a(str,...other) {
|
|
4
|
+
// str =str[0];
|
|
16
5
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
// return str.split(';').map(e=> e.trim()).filter(e=> e.length > 5).reduce((v,e)=> {
|
|
7
|
+
// const [tag, item] = e.split(':').map(e=> e.trim());
|
|
8
|
+
// const r = Number('0x' + item.slice(1,3));
|
|
9
|
+
// const g = Number('0x' + item.slice(3,5));
|
|
10
|
+
// const b = Number('0x' + item.slice(5));
|
|
11
|
+
// return v + e + ';' + tag + '-rgb' + ':' + r + ',' + g + ',' + b + ';'
|
|
12
|
+
// },'');
|
|
13
|
+
// }
|
|
23
14
|
|
|
24
|
-
$en-color-
|
|
25
|
-
$en-color-
|
|
26
|
-
$en-color-
|
|
27
|
-
$en-color-
|
|
28
|
-
$en-color-
|
|
29
|
-
$en-color-
|
|
15
|
+
$en-color-brightness-10: #f9f9fb;
|
|
16
|
+
$en-color-brightness-10-rgb: 249, 249, 251;
|
|
17
|
+
$en-color-brightness-15: #f2f1f1;
|
|
18
|
+
$en-color-brightness-15-rgb: 242, 241, 241;
|
|
19
|
+
$en-color-brightness-20: #ebeaea;
|
|
20
|
+
$en-color-brightness-20-rgb: 235, 234, 234;
|
|
21
|
+
$en-color-brightness-25: #e2e2e2;
|
|
22
|
+
$en-color-brightness-25-rgb: 226, 226, 226;
|
|
23
|
+
$en-color-brightness-30: #cdcdcd;
|
|
24
|
+
$en-color-brightness-30-rgb: 205, 205, 205;
|
|
25
|
+
$en-color-brightness-40: #b3b3b3;
|
|
26
|
+
$en-color-brightness-40-rgb: 179, 179, 179;
|
|
27
|
+
$en-color-brightness-50: #9e9e9e;
|
|
28
|
+
$en-color-brightness-50-rgb: 158, 158, 158;
|
|
29
|
+
$en-color-brightness-60: #858585;
|
|
30
|
+
$en-color-brightness-60-rgb: 133, 133, 133;
|
|
31
|
+
$en-color-brightness-65: #696969;
|
|
32
|
+
$en-color-brightness-65-rgb: 105, 105, 105;
|
|
33
|
+
$en-color-brightness-70: #4e4e4e;
|
|
34
|
+
$en-color-brightness-70-rgb: 78, 78, 78;
|
|
35
|
+
$en-color-brightness-75: #313131;
|
|
36
|
+
$en-color-brightness-75-rgb: 49, 49, 49;
|
|
37
|
+
$en-color-brightness-80: #343434;
|
|
38
|
+
$en-color-brightness-80-rgb: 52, 52, 52;
|
|
39
|
+
$en-color-brightness-95: #1b1b1b;
|
|
40
|
+
$en-color-brightness-95-rgb: 27, 27, 27;
|
|
41
|
+
$en-color-brightness-90: #030303;
|
|
42
|
+
$en-color-brightness-90-rgb: 3, 3, 3;
|
|
43
|
+
// 纯色
|
|
44
|
+
$en-color-blue: #0085f2;
|
|
45
|
+
$en-color-blue-rgb: 0, 133, 242;
|
|
46
|
+
$en-color-green: #009a46;
|
|
47
|
+
$en-color-green-rgb: 0, 154, 70;
|
|
48
|
+
$en-color-yellow: #928700;
|
|
49
|
+
$en-color-yellow-rgb: 146, 135, 0;
|
|
50
|
+
$en-color-red: #d30038;
|
|
51
|
+
$en-color-red-rgb: 211, 0, 56;
|
|
52
|
+
$en-color-violet: #9b65ff;
|
|
53
|
+
$en-color-violet-rgb: 155, 101, 255;
|
|
54
|
+
$en-color-pink: #d00058;
|
|
55
|
+
$en-color-pink-rgb: 208, 0, 88;
|
|
56
|
+
$en-color-beige: #f0f2e6;
|
|
57
|
+
$en-color-beige-rgb: 240, 242, 230;
|
|
58
|
+
$en-color-black: #000000;
|
|
59
|
+
$en-color-black-rgb: 0, 0, 0;
|
|
60
|
+
$en-color-white: #ffffff;
|
|
61
|
+
$en-color-white-rgb: 255, 255, 255;
|
|
30
62
|
|
|
31
|
-
$en-color-black: #000;
|
|
32
|
-
$en-color-white: #fff;
|
|
33
|
-
$en-color-ads: #00d0aa;
|
|
34
63
|
$en-color-light-blue-10: #dce2f2;
|
|
64
|
+
$en-color-light-blue-10-rgb: 220, 226, 242;
|
|
35
65
|
$en-color-light-blue-20: #c1cff1;
|
|
66
|
+
$en-color-light-blue-20-rgb: 193, 207, 241;
|
|
36
67
|
$en-color-light-blue-30: #8cb4ff;
|
|
68
|
+
$en-color-light-blue-30-rgb: 140, 180, 255;
|
|
37
69
|
$en-color-light-blue-40: #5e9eff;
|
|
70
|
+
$en-color-light-blue-40-rgb: 94, 158, 255;
|
|
38
71
|
$en-color-light-blue-50: #0085f2;
|
|
72
|
+
$en-color-light-blue-50-rgb: 0, 133, 242;
|
|
39
73
|
$en-color-light-blue-60: #0069c2;
|
|
74
|
+
$en-color-light-blue-60-rgb: 0, 105, 194;
|
|
40
75
|
$en-color-light-blue-70: #004d92;
|
|
76
|
+
$en-color-light-blue-70-rgb: 0, 77, 146;
|
|
41
77
|
$en-color-light-blue-80: #003465;
|
|
78
|
+
$en-color-light-blue-80-rgb: 0, 52, 101;
|
|
42
79
|
$en-color-light-blue-90: #001b3a;
|
|
80
|
+
$en-color-light-blue-90-rgb: 0, 27, 58;
|
|
43
81
|
|
|
44
82
|
$en-color-dark-blue-10: $en-color-light-blue-10;
|
|
83
|
+
$en-color-dark-blue-10-rgb: $en-color-light-blue-10-rgb;
|
|
45
84
|
$en-color-dark-blue-20: $en-color-light-blue-20;
|
|
85
|
+
$en-color-dark-blue-20-rgb: $en-color-light-blue-20-rgb;
|
|
46
86
|
$en-color-dark-blue-30: $en-color-light-blue-30;
|
|
87
|
+
$en-color-dark-blue-30-rgb: $en-color-light-blue-30-rgb;
|
|
47
88
|
$en-color-dark-blue-40: $en-color-light-blue-40;
|
|
89
|
+
$en-color-dark-blue-40-rgb: $en-color-light-blue-40-rgb;
|
|
48
90
|
$en-color-dark-blue-50: $en-color-light-blue-50;
|
|
91
|
+
$en-color-dark-blue-50-rgb: $en-color-light-blue-50-rgb;
|
|
49
92
|
$en-color-dark-blue-60: $en-color-light-blue-60;
|
|
93
|
+
$en-color-dark-blue-60-rgb: $en-color-light-blue-60-rgb;
|
|
50
94
|
$en-color-dark-blue-70: $en-color-light-blue-70;
|
|
95
|
+
$en-color-dark-blue-70-rgb: $en-color-light-blue-70-rgb;
|
|
51
96
|
$en-color-dark-blue-80: $en-color-light-blue-80;
|
|
97
|
+
$en-color-dark-blue-80-rgb: $en-color-light-blue-80-rgb;
|
|
52
98
|
$en-color-dark-blue-90: $en-color-light-blue-90;
|
|
99
|
+
$en-color-dark-blue-90-rgb: $en-color-light-blue-90-rgb;
|
|
53
100
|
|
|
54
101
|
$en-color-light-green-10: #a9f3ba;
|
|
102
|
+
$en-color-light-green-10-rgb: 169, 243, 186;
|
|
55
103
|
$en-color-light-green-20: #73e693;
|
|
104
|
+
$en-color-light-green-20-rgb: 115, 230, 147;
|
|
56
105
|
$en-color-light-green-30: #00d061;
|
|
106
|
+
$en-color-light-green-30-rgb: 0, 208, 97;
|
|
57
107
|
$en-color-light-green-40: #00b755;
|
|
108
|
+
$en-color-light-green-40-rgb: 0, 183, 85;
|
|
58
109
|
$en-color-light-green-50: #009a46;
|
|
110
|
+
$en-color-light-green-50-rgb: 0, 154, 70;
|
|
59
111
|
$en-color-light-green-60: #007936;
|
|
112
|
+
$en-color-light-green-60-rgb: 0, 121, 54;
|
|
60
113
|
$en-color-light-green-70: #005a26;
|
|
114
|
+
$en-color-light-green-70-rgb: 0, 90, 38;
|
|
61
115
|
$en-color-light-green-80: #003d18;
|
|
116
|
+
$en-color-light-green-80-rgb: 0, 61, 24;
|
|
62
117
|
$en-color-light-green-90: #00210a;
|
|
118
|
+
$en-color-light-green-90-rgb: 0, 33, 10;
|
|
63
119
|
|
|
64
120
|
$en-color-dark-green-10: $en-color-light-green-10;
|
|
121
|
+
$en-color-dark-green-10-rgb: $en-color-light-green-10-rgb;
|
|
65
122
|
$en-color-dark-green-20: $en-color-light-green-20;
|
|
123
|
+
$en-color-dark-green-20-rgb: $en-color-light-green-20-rgb;
|
|
66
124
|
$en-color-dark-green-30: $en-color-light-green-30;
|
|
125
|
+
$en-color-dark-green-30-rgb: $en-color-light-green-30-rgb;
|
|
67
126
|
$en-color-dark-green-40: $en-color-light-green-40;
|
|
127
|
+
$en-color-dark-green-40-rgb: $en-color-light-green-40-rgb;
|
|
68
128
|
$en-color-dark-green-50: $en-color-light-green-50;
|
|
129
|
+
$en-color-dark-green-50-rgb: $en-color-light-green-50-rgb;
|
|
69
130
|
$en-color-dark-green-60: $en-color-light-green-60;
|
|
131
|
+
$en-color-dark-green-60-rgb: $en-color-light-green-60-rgb;
|
|
70
132
|
$en-color-dark-green-70: $en-color-light-green-70;
|
|
133
|
+
$en-color-dark-green-70-rgb: $en-color-light-green-70-rgb;
|
|
71
134
|
$en-color-dark-green-80: $en-color-light-green-80;
|
|
135
|
+
$en-color-dark-green-80-rgb: $en-color-light-green-80-rgb;
|
|
72
136
|
$en-color-dark-green-90: $en-color-light-green-90;
|
|
137
|
+
$en-color-dark-green-90-rgb: $en-color-light-green-90-rgb;
|
|
73
138
|
|
|
74
139
|
$en-color-light-yellow-10: #f0e498;
|
|
140
|
+
$en-color-light-yellow-10-rgb: 240, 228, 152;
|
|
75
141
|
$en-color-light-yellow-20: #dfd172;
|
|
142
|
+
$en-color-light-yellow-20-rgb: 223, 209, 114;
|
|
76
143
|
$en-color-light-yellow-30: #c7b700;
|
|
144
|
+
$en-color-light-yellow-30-rgb: 199, 183, 0;
|
|
77
145
|
$en-color-light-yellow-40: #afa100;
|
|
146
|
+
$en-color-light-yellow-40-rgb: 175, 161, 0;
|
|
78
147
|
$en-color-light-yellow-50: #938700;
|
|
148
|
+
$en-color-light-yellow-50-rgb: 147, 135, 0;
|
|
79
149
|
$en-color-light-yellow-60: #746a00;
|
|
150
|
+
$en-color-light-yellow-60-rgb: 116, 106, 0;
|
|
80
151
|
$en-color-light-yellow-70: #564e00;
|
|
152
|
+
$en-color-light-yellow-70-rgb: 86, 78, 0;
|
|
81
153
|
$en-color-light-yellow-80: #3a3500;
|
|
154
|
+
$en-color-light-yellow-80-rgb: 58, 53, 0;
|
|
82
155
|
$en-color-light-yellow-90: #1f1c00;
|
|
156
|
+
$en-color-light-yellow-90-rgb: 31, 28, 0;
|
|
83
157
|
|
|
84
158
|
$en-color-dark-yellow-10: $en-color-light-yellow-10;
|
|
159
|
+
$en-color-dark-yellow-10-rgb: $en-color-light-yellow-10-rgb;
|
|
85
160
|
$en-color-dark-yellow-20: $en-color-light-yellow-20;
|
|
161
|
+
$en-color-dark-yellow-20-rgb: $en-color-light-yellow-20-rgb;
|
|
86
162
|
$en-color-dark-yellow-30: $en-color-light-yellow-30;
|
|
163
|
+
$en-color-dark-yellow-30-rgb: $en-color-light-yellow-30-rgb;
|
|
87
164
|
$en-color-dark-yellow-40: $en-color-light-yellow-40;
|
|
165
|
+
$en-color-dark-yellow-40-rgb: $en-color-light-yellow-40-rgb;
|
|
88
166
|
$en-color-dark-yellow-50: $en-color-light-yellow-50;
|
|
167
|
+
$en-color-dark-yellow-50-rgb: $en-color-light-yellow-50-rgb;
|
|
89
168
|
$en-color-dark-yellow-60: $en-color-light-yellow-60;
|
|
169
|
+
$en-color-dark-yellow-60-rgb: $en-color-light-yellow-60-rgb;
|
|
90
170
|
$en-color-dark-yellow-70: $en-color-light-yellow-70;
|
|
171
|
+
$en-color-dark-yellow-70-rgb: $en-color-light-yellow-70-rgb;
|
|
91
172
|
$en-color-dark-yellow-80: $en-color-light-yellow-80;
|
|
173
|
+
$en-color-dark-yellow-80-rgb: $en-color-light-yellow-80-rgb;
|
|
92
174
|
$en-color-dark-yellow-90: $en-color-light-yellow-90;
|
|
175
|
+
$en-color-dark-yellow-90-rgb: $en-color-light-yellow-90-rgb;
|
|
93
176
|
|
|
94
177
|
$en-color-light-red-10: #ffd9dc;
|
|
178
|
+
$en-color-light-red-10-rgb: 255, 217, 220;
|
|
95
179
|
$en-color-light-red-20: #ffc0c4;
|
|
180
|
+
$en-color-light-red-20-rgb: 255, 192, 196;
|
|
96
181
|
$en-color-light-red-30: #ff97a0;
|
|
182
|
+
$en-color-light-red-30-rgb: 255, 151, 160;
|
|
97
183
|
$en-color-light-red-40: #ff707f;
|
|
184
|
+
$en-color-light-red-40-rgb: 255, 112, 127;
|
|
98
185
|
$en-color-light-red-50: #ff2a51;
|
|
186
|
+
$en-color-light-red-50-rgb: 255, 42, 81;
|
|
99
187
|
$en-color-light-red-60: #d30038;
|
|
188
|
+
$en-color-light-red-60-rgb: 211, 0, 56;
|
|
100
189
|
$en-color-light-red-70: #9e0027;
|
|
190
|
+
$en-color-light-red-70-rgb: 158, 0, 39;
|
|
101
191
|
$en-color-light-red-80: #6f0019;
|
|
192
|
+
$en-color-light-red-80-rgb: 111, 0, 25;
|
|
102
193
|
$en-color-light-red-90: #40000a;
|
|
194
|
+
$en-color-light-red-90-rgb: 64, 0, 10;
|
|
103
195
|
|
|
104
196
|
$en-color-dark-red-10: $en-color-light-red-10;
|
|
197
|
+
$en-color-dark-red-10-rgb: $en-color-light-red-10-rgb;
|
|
105
198
|
$en-color-dark-red-20: $en-color-light-red-20;
|
|
199
|
+
$en-color-dark-red-20-rgb: $en-color-light-red-20-rgb;
|
|
106
200
|
$en-color-dark-red-30: $en-color-light-red-30;
|
|
201
|
+
$en-color-dark-red-30-rgb: $en-color-light-red-30-rgb;
|
|
107
202
|
$en-color-dark-red-40: $en-color-light-red-40;
|
|
203
|
+
$en-color-dark-red-40-rgb: $en-color-light-red-40-rgb;
|
|
108
204
|
$en-color-dark-red-50: $en-color-light-red-50;
|
|
205
|
+
$en-color-dark-red-50-rgb: $en-color-light-red-50-rgb;
|
|
109
206
|
$en-color-dark-red-60: $en-color-light-red-60;
|
|
207
|
+
$en-color-dark-red-60-rgb: $en-color-light-red-60-rgb;
|
|
110
208
|
$en-color-dark-red-70: $en-color-light-red-70;
|
|
209
|
+
$en-color-dark-red-70-rgb: $en-color-light-red-70-rgb;
|
|
111
210
|
$en-color-dark-red-80: $en-color-light-red-80;
|
|
211
|
+
$en-color-dark-red-80-rgb: $en-color-light-red-80-rgb;
|
|
112
212
|
$en-color-dark-red-90: $en-color-light-red-90;
|
|
213
|
+
$en-color-dark-red-90-rgb: $en-color-light-red-90-rgb;
|
|
113
214
|
|
|
114
215
|
$en-color-light-violet-10: #e6deff;
|
|
216
|
+
$en-color-light-violet-10-rgb: 230, 222, 255;
|
|
115
217
|
$en-color-light-violet-20: #d4c5ff;
|
|
218
|
+
$en-color-light-violet-20-rgb: 212, 197, 255;
|
|
116
219
|
$en-color-light-violet-30: #bea5ff;
|
|
220
|
+
$en-color-light-violet-30-rgb: 190, 165, 255;
|
|
117
221
|
$en-color-light-violet-40: #ae8aff;
|
|
222
|
+
$en-color-light-violet-40-rgb: 174, 138, 255;
|
|
118
223
|
$en-color-light-violet-50: #9b65ff;
|
|
224
|
+
$en-color-light-violet-50-rgb: 155, 101, 255;
|
|
119
225
|
$en-color-light-violet-60: #872bff;
|
|
226
|
+
$en-color-light-violet-60-rgb: 135, 43, 255;
|
|
120
227
|
$en-color-light-violet-70: #6800cf;
|
|
228
|
+
$en-color-light-violet-70-rgb: 104, 0, 207;
|
|
121
229
|
$en-color-light-violet-80: #480091;
|
|
230
|
+
$en-color-light-violet-80-rgb: 72, 0, 145;
|
|
122
231
|
$en-color-light-violet-90: #280056;
|
|
232
|
+
$en-color-light-violet-90-rgb: 40, 0, 86;
|
|
123
233
|
|
|
124
234
|
$en-color-dark-violet-10: $en-color-light-violet-10;
|
|
235
|
+
$en-color-dark-violet-10-rgb: $en-color-light-violet-10-rgb;
|
|
125
236
|
$en-color-dark-violet-20: $en-color-light-violet-20;
|
|
237
|
+
$en-color-dark-violet-20-rgb: $en-color-light-violet-20-rgb;
|
|
126
238
|
$en-color-dark-violet-30: $en-color-light-violet-30;
|
|
239
|
+
$en-color-dark-violet-30-rgb: $en-color-light-violet-30-rgb;
|
|
127
240
|
$en-color-dark-violet-40: $en-color-light-violet-40;
|
|
241
|
+
$en-color-dark-violet-40-rgb: $en-color-light-violet-40-rgb;
|
|
128
242
|
$en-color-dark-violet-50: $en-color-light-violet-50;
|
|
243
|
+
$en-color-dark-violet-50-rgb: $en-color-light-violet-50-rgb;
|
|
129
244
|
$en-color-dark-violet-60: $en-color-light-violet-60;
|
|
245
|
+
$en-color-dark-violet-60-rgb: $en-color-light-violet-60-rgb;
|
|
130
246
|
$en-color-dark-violet-70: $en-color-light-violet-70;
|
|
247
|
+
$en-color-dark-violet-70-rgb: $en-color-light-violet-70-rgb;
|
|
131
248
|
$en-color-dark-violet-80: $en-color-light-violet-80;
|
|
249
|
+
$en-color-dark-violet-80-rgb: $en-color-light-violet-80-rgb;
|
|
132
250
|
$en-color-dark-violet-90: $en-color-light-violet-90;
|
|
251
|
+
$en-color-dark-violet-90-rgb: $en-color-light-violet-90-rgb;
|
|
133
252
|
|
|
134
253
|
$en-color-light-pink-10: #ffd9df;
|
|
254
|
+
$en-color-light-pink-10-rgb: 255, 217, 223;
|
|
135
255
|
$en-color-light-pink-20: #ffbbc8;
|
|
256
|
+
$en-color-light-pink-20-rgb: 255, 187, 200;
|
|
136
257
|
$en-color-light-pink-30: #ff93aa;
|
|
258
|
+
$en-color-light-pink-30-rgb: 255, 147, 170;
|
|
137
259
|
$en-color-light-pink-40: #ff6d91;
|
|
260
|
+
$en-color-light-pink-40-rgb: 255, 109, 145;
|
|
138
261
|
$en-color-light-pink-50: #ff1f72;
|
|
262
|
+
$en-color-light-pink-50-rgb: 255, 31, 114;
|
|
139
263
|
$en-color-light-pink-60: #d00058;
|
|
264
|
+
$en-color-light-pink-60-rgb: 208, 0, 88;
|
|
140
265
|
$en-color-light-pink-70: #9e0041;
|
|
266
|
+
$en-color-light-pink-70-rgb: 158, 0, 65;
|
|
141
267
|
$en-color-light-pink-80: #6d002b;
|
|
268
|
+
$en-color-light-pink-80-rgb: 109, 0, 43;
|
|
142
269
|
$en-color-light-pink-90: #3f0015;
|
|
270
|
+
$en-color-light-pink-90-rgb: 63, 0, 21;
|
|
143
271
|
|
|
144
272
|
$en-color-dark-pink-10: $en-color-light-pink-10;
|
|
273
|
+
$en-color-dark-pink-10-rgb: $en-color-light-pink-10-rgb;
|
|
145
274
|
$en-color-dark-pink-20: $en-color-light-pink-20;
|
|
275
|
+
$en-color-dark-pink-20-rgb: $en-color-light-pink-20-rgb;
|
|
146
276
|
$en-color-dark-pink-30: $en-color-light-pink-30;
|
|
277
|
+
$en-color-dark-pink-30-rgb: $en-color-light-pink-30-rgb;
|
|
147
278
|
$en-color-dark-pink-40: $en-color-light-pink-40;
|
|
279
|
+
$en-color-dark-pink-40-rgb: $en-color-light-pink-40-rgb;
|
|
148
280
|
$en-color-dark-pink-50: $en-color-light-pink-50;
|
|
281
|
+
$en-color-dark-pink-50-rgb: $en-color-light-pink-50-rgb;
|
|
149
282
|
$en-color-dark-pink-60: $en-color-light-pink-60;
|
|
283
|
+
$en-color-dark-pink-60-rgb: $en-color-light-pink-60-rgb;
|
|
150
284
|
$en-color-dark-pink-70: $en-color-light-pink-70;
|
|
285
|
+
$en-color-dark-pink-70-rgb: $en-color-light-pink-70-rgb;
|
|
151
286
|
$en-color-dark-pink-80: $en-color-light-pink-80;
|
|
287
|
+
$en-color-dark-pink-80-rgb: $en-color-light-pink-80-rgb;
|
|
152
288
|
$en-color-dark-pink-90: $en-color-light-pink-90;
|
|
153
|
-
$en-
|
|
154
|
-
$en-light-text-secondary: $en-color-neutral-70;
|
|
155
|
-
$en-light-text-active: #{$en-color-neutral-50};
|
|
156
|
-
$en-light-text-inactive: #{$en-color-neutral-40}a6;
|
|
157
|
-
$en-light-text-link: $en-color-light-blue-60;
|
|
158
|
-
$en-light-text-invert: $en-color-white;
|
|
159
|
-
$en-light-text-muted: #6f6f6f;
|
|
160
|
-
$en-light-background-primary: $en-color-white;
|
|
161
|
-
$en-light-background-secondary: $en-color-neutral-light-70;
|
|
162
|
-
$en-light-background-tertiary: #ebeaea;
|
|
163
|
-
$en-light-background-toc-active: $en-color-neutral-light-90;
|
|
164
|
-
$en-light-border-primary: $en-color-neutral-20;
|
|
165
|
-
$en-light-border-secondary: $en-color-neutral-20;
|
|
166
|
-
$en-light-border-success: $en-color-light-green-20;
|
|
167
|
-
$en-light-button-primary-default: $en-color-neutral-90;
|
|
168
|
-
$en-light-button-primary-hover: $en-color-neutral-60;
|
|
169
|
-
$en-light-button-primary-active: $en-color-neutral-40;
|
|
170
|
-
$en-light-button-primary-inactive: $en-color-neutral-90;
|
|
171
|
-
$en-light-button-secondary-default: $en-color-white;
|
|
172
|
-
$en-light-button-secondary-hover: $en-color-neutral-20;
|
|
173
|
-
$en-light-button-secondary-active: $en-color-neutral-20;
|
|
174
|
-
$en-light-button-secondary-inactive: $en-color-neutral-light-70;
|
|
175
|
-
$en-light-button-secondary-border-focus: $en-color-light-blue-50;
|
|
176
|
-
$en-light-button-secondary-border-red: $en-color-light-red-30;
|
|
177
|
-
$en-light-button-secondary-border-red-focus: $en-color-light-red-10;
|
|
178
|
-
$en-light-icon-primary: $en-color-neutral-60;
|
|
179
|
-
$en-light-icon-secondary: $en-color-neutral-30;
|
|
180
|
-
$en-light-icon-information: $en-color-light-blue-50;
|
|
181
|
-
$en-light-icon-warning: $en-color-light-red-50;
|
|
182
|
-
$en-light-icon-critical: $en-color-light-red-60;
|
|
183
|
-
$en-light-icon-success: $en-color-light-green-60;
|
|
184
|
-
$en-light-accent-primary: $en-color-light-blue-50;
|
|
185
|
-
$en-light-accent-secondary: $en-color-light-blue-50;
|
|
186
|
-
$en-light-field-focus-border: $en-color-light-blue-50;
|
|
187
|
-
$en-light-focus-01: 0 0 0 3px rgba(0, 144, 237, 0.4);
|
|
188
|
-
$en-light-shadow-01: 0 1px 2px rgba(43, 42, 51, 0.05);
|
|
189
|
-
$en-light-shadow-02: 0 1px 6px rgba(43, 42, 51, 0.1);
|
|
190
|
-
|
|
191
|
-
$en-light-code-token-tag: $en-color-light-blue-60;
|
|
192
|
-
$en-light-code-token-punctuation: $en-color-neutral-50;
|
|
193
|
-
$en-light-code-token-attribute-name: $en-color-light-red-60;
|
|
194
|
-
$en-light-code-token-attribute-value: $en-color-light-green-60;
|
|
195
|
-
$en-light-code-token-comment: $en-color-neutral-50;
|
|
196
|
-
$en-light-code-token-default: $en-color-neutral-90;
|
|
197
|
-
$en-light-code-token-selector: $en-color-light-violet-60;
|
|
198
|
-
$en-light-code-background-inline: $en-color-neutral-light-80;
|
|
199
|
-
$en-light-code-background-block: $en-color-neutral-light-80;
|
|
200
|
-
|
|
201
|
-
$en-dark-text-primary: $en-color-white;
|
|
202
|
-
$en-dark-text-secondary: $en-color-neutral-20;
|
|
203
|
-
$en-dark-text-active: #{$en-color-neutral-50};
|
|
204
|
-
$en-dark-text-inactive: #{$en-color-neutral-20}a6;
|
|
205
|
-
$en-dark-text-link: $en-color-dark-blue-30;
|
|
206
|
-
$en-dark-text-invert: $en-color-neutral-90;
|
|
207
|
-
$en-dark-text-muted: #858585;
|
|
208
|
-
$en-dark-background-primary: $en-color-neutral-90;
|
|
209
|
-
$en-dark-background-secondary: $en-color-neutral-75;
|
|
210
|
-
$en-dark-background-tertiary: #858585;
|
|
211
|
-
$en-dark-background-toc-active: $en-color-neutral-80;
|
|
212
|
-
$en-dark-border-primary: $en-color-neutral-50;
|
|
213
|
-
$en-dark-border-secondary: $en-color-neutral-60;
|
|
214
|
-
$en-dark-border-success: $en-color-dark-green-20;
|
|
215
|
-
$en-dark-button-primary-default: $en-color-white;
|
|
216
|
-
$en-dark-button-primary-hover: $en-color-neutral-20;
|
|
217
|
-
$en-dark-button-primary-active: $en-color-neutral-40;
|
|
218
|
-
$en-dark-button-primary-inactive: $en-color-white;
|
|
219
|
-
$en-dark-button-secondary-default: $en-color-neutral-70;
|
|
220
|
-
$en-dark-button-secondary-hover: $en-color-neutral-50;
|
|
221
|
-
$en-dark-button-secondary-active: $en-color-neutral-40;
|
|
222
|
-
$en-dark-button-secondary-inactive: $en-color-neutral-70;
|
|
223
|
-
$en-dark-shadow-01: 0 1px 2px rgba(251, 251, 254, 0.2);
|
|
224
|
-
$en-dark-shadow-02: 0 1px 6px rgba(251, 251, 254, 0.2);
|
|
225
|
-
$en-dark-icon-primary: $en-color-white;
|
|
226
|
-
$en-dark-icon-secondary: $en-color-neutral-30;
|
|
227
|
-
$en-dark-icon-information: $en-color-dark-blue-40;
|
|
228
|
-
$en-dark-icon-warning: $en-color-dark-yellow-40;
|
|
229
|
-
$en-dark-icon-critical: $en-color-dark-red-40;
|
|
230
|
-
$en-dark-icon-success: $en-color-dark-green-40;
|
|
231
|
-
$en-dark-accent-primary: $en-color-dark-blue-40;
|
|
232
|
-
$en-dark-accent-secondary: $en-color-dark-blue-40;
|
|
233
|
-
$en-dark-field-focus-border: $en-color-white;
|
|
234
|
-
$en-dark-focus-01: 0 0 0 3px rgba(251, 251, 254, 0.5);
|
|
235
|
-
|
|
236
|
-
$en-dark-code-token-tag: $en-color-dark-blue-20;
|
|
237
|
-
$en-dark-code-token-punctuation: $en-color-neutral-30;
|
|
238
|
-
$en-dark-code-token-attribute-name: $en-color-dark-red-30;
|
|
239
|
-
$en-dark-code-token-attribute-value: $en-color-dark-green-30;
|
|
240
|
-
$en-dark-code-token-comment: $en-color-neutral-30;
|
|
241
|
-
$en-dark-code-token-default: $en-color-white;
|
|
242
|
-
$en-dark-code-token-selector: $en-color-dark-violet-30;
|
|
243
|
-
$en-dark-code-background-inline: $en-color-neutral-80;
|
|
244
|
-
$en-dark-code-background-block: $en-color-neutral-80;
|
|
245
|
-
|
|
246
|
-
// screen is to small for sticky placement
|
|
247
|
-
$screen-height-place-limit: 44rem;
|
|
289
|
+
$en-color-dark-pink-90-rgb: $en-color-light-pink-90-rgb;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
|
-
*
|
|
3
|
+
* enr@type/components/ThemeContext/index.d.ts
|
|
4
4
|
* Copyright (c) 2025 earthnut.dev
|
|
5
5
|
* 请在项目根参看详细许可证明
|
|
6
6
|
*/
|
|
@@ -8,4 +8,4 @@ import { ThemeColorModeProviderProps, ThemeContextType } from './types';
|
|
|
8
8
|
/** 使用主题颜色模式 */
|
|
9
9
|
export declare function useColorMode(): ThemeContextType;
|
|
10
10
|
/** */
|
|
11
|
-
export declare function ThemeColorModeProvider({ children, initialTheme
|
|
11
|
+
export declare function ThemeColorModeProvider({ children, initialTheme }: ThemeColorModeProviderProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
|
-
*
|
|
3
|
+
* enr@type/components/layout/types.d.ts
|
|
4
4
|
* Copyright (c) 2025 earthnut.dev
|
|
5
5
|
* 请在项目根参看详细许可证明
|
|
6
6
|
*/
|
|
@@ -96,4 +96,4 @@ export interface LayoutTheme {
|
|
|
96
96
|
footerHeight: string | number;
|
|
97
97
|
}
|
|
98
98
|
/** 可使用的样式类型 */
|
|
99
|
-
export type EnLayoutContentType = 'simple' | 'only-footer' | 'only-header' | 'no-sidebar' | '
|
|
99
|
+
export type EnLayoutContentType = 'simple' | 'only-footer' | 'only-header' | 'no-sidebar' | 'simple-all' | 'side-full-all' | 'side-right-all' | 'side-right-full-all' | 'simple-no-footer' | 'side-full-no-footer' | 'side-right-no-footer' | 'side-right-full-no-footer' | 'simple-no-header' | 'side-full-no-header' | 'side-right-no-header' | 'side-right-full-no-header' | 'simple-only-side' | 'side-full-only-side' | 'side-right-only-side' | 'side-right-full-only-side';
|