@astryx-vue/themes 0.7.20 → 0.7.22
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/butter/badge.css +8 -8
- package/butter/banner.css +9 -27
- package/butter/base.css +75 -39
- package/butter/button.css +2 -2
- package/butter/chat.css +0 -2
- package/butter/code.css +8 -8
- package/butter/heading.css +1 -4
- package/butter/input.css +3 -3
- package/butter/mobile-type.css +22 -11
- package/butter/own-fill.css +294 -0
- package/butter/selected-text.css +29 -0
- package/butter/text.css +1 -4
- package/butter/token.css +1 -1
- package/butter/top-nav.css +3 -3
- package/butter.css +2 -0
- package/chocolate/badge.css +2 -2
- package/chocolate/banner.css +2 -14
- package/chocolate/base.css +57 -21
- package/chocolate/button.css +2 -2
- package/chocolate/chat.css +0 -2
- package/chocolate/code.css +6 -6
- package/chocolate/input.css +3 -3
- package/chocolate/mobile-type.css +22 -11
- package/chocolate/token.css +1 -1
- package/gothic/banner.css +12 -29
- package/gothic/base.css +61 -25
- package/gothic/chat.css +0 -2
- package/gothic/code.css +6 -6
- package/gothic/heading.css +1 -4
- package/gothic/input.css +3 -3
- package/gothic/own-fill.css +272 -0
- package/gothic/text.css +1 -4
- package/gothic/token.css +1 -1
- package/gothic.css +1 -0
- package/matcha/badge.css +2 -2
- package/matcha/banner.css +2 -14
- package/matcha/base.css +65 -29
- package/matcha/button.css +2 -2
- package/matcha/chat.css +0 -2
- package/matcha/code.css +13 -13
- package/matcha/input.css +3 -3
- package/matcha/token.css +1 -1
- package/neutral/avatar.css +5 -4
- package/neutral/badge.css +6 -7
- package/neutral/banner.css +1 -61
- package/neutral/base.css +55 -18
- package/neutral/button.css +1 -11
- package/neutral/chat.css +0 -2
- package/neutral/code.css +7 -7
- package/neutral/input.css +3 -3
- package/neutral/kbd.css +1 -1
- package/neutral/list.css +2 -2
- package/neutral/local-tokens.css +3 -17
- package/neutral/mobile-type.css +22 -11
- package/neutral/progress-bar.css +4 -4
- package/neutral/segmented-control.css +3 -3
- package/neutral/selected-text.css +27 -0
- package/neutral/slider.css +1 -1
- package/neutral/status-dot.css +5 -4
- package/neutral/token.css +1 -1
- package/neutral.css +1 -0
- package/package.json +1 -1
- package/stone/banner.css +9 -27
- package/stone/base.css +145 -109
- package/stone/chat.css +0 -2
- package/stone/code.css +20 -20
- package/stone/input.css +3 -3
- package/stone/mobile-type.css +22 -11
- package/stone/token.css +1 -1
- package/y2k/banner.css +13 -27
- package/y2k/base.css +113 -77
- package/y2k/chat.css +0 -2
- package/y2k/code.css +19 -19
- package/y2k/heading.css +1 -4
- package/y2k/input.css +3 -3
- package/y2k/own-fill.css +272 -0
- package/y2k/selected-text.css +29 -0
- package/y2k/text.css +1 -4
- package/y2k/token.css +1 -1
- package/y2k.css +2 -0
package/stone/code.css
CHANGED
|
@@ -9,32 +9,32 @@
|
|
|
9
9
|
|
|
10
10
|
/* CodeBlock card: white surface and a hairline border, matching the
|
|
11
11
|
original block. Inline code keeps the muted chip above. */
|
|
12
|
-
--astryx-code-block-background: light-dark(#
|
|
12
|
+
--astryx-code-block-background: light-dark(#f0f0f7, #101018);
|
|
13
13
|
--astryx-code-block-border: var(--astryx-color-border);
|
|
14
14
|
--astryx-code-block-focus: var(--astryx-color-accent);
|
|
15
|
-
--astryx-code-block-highlight-background:
|
|
15
|
+
--astryx-code-block-highlight-background: var(--astryx-color-accent-muted);
|
|
16
16
|
|
|
17
17
|
/* Syntax colors from the original CodeBlock theme: keyword and type share
|
|
18
18
|
the same purple, strings stay green. */
|
|
19
|
-
--astryx-code-syntax-keyword: light-dark(#
|
|
20
|
-
--astryx-code-syntax-string: light-dark(#
|
|
21
|
-
--astryx-code-syntax-comment: light-dark(#
|
|
22
|
-
--astryx-code-syntax-number: light-dark(#
|
|
23
|
-
--astryx-code-syntax-function: light-dark(#
|
|
24
|
-
--astryx-code-syntax-type: light-dark(#
|
|
25
|
-
--astryx-code-syntax-variable: light-dark(#
|
|
26
|
-
--astryx-code-syntax-operator: light-dark(#
|
|
27
|
-
--astryx-code-syntax-constant: light-dark(#
|
|
28
|
-
--astryx-code-syntax-tag: light-dark(#
|
|
29
|
-
--astryx-code-syntax-attribute: light-dark(#
|
|
30
|
-
--astryx-code-syntax-property: light-dark(#
|
|
31
|
-
--astryx-code-syntax-punctuation: light-dark(#
|
|
19
|
+
--astryx-code-syntax-keyword: light-dark(#635a70, #b0a5c0);
|
|
20
|
+
--astryx-code-syntax-string: light-dark(#40675c, #90ba8a);
|
|
21
|
+
--astryx-code-syntax-comment: light-dark(#5f5f64, #ababb3);
|
|
22
|
+
--astryx-code-syntax-number: light-dark(#745752, #c9a382);
|
|
23
|
+
--astryx-code-syntax-function: light-dark(#516074, #9aadc7);
|
|
24
|
+
--astryx-code-syntax-type: light-dark(#635a70, #b0a5c0);
|
|
25
|
+
--astryx-code-syntax-variable: light-dark(#5f5f64, #ababb3);
|
|
26
|
+
--astryx-code-syntax-operator: light-dark(#5f5f64, #ababb3);
|
|
27
|
+
--astryx-code-syntax-constant: light-dark(#745752, #c9a382);
|
|
28
|
+
--astryx-code-syntax-tag: light-dark(#745752, #c6a29c);
|
|
29
|
+
--astryx-code-syntax-attribute: light-dark(#736419, #c2af6e);
|
|
30
|
+
--astryx-code-syntax-property: light-dark(#40675c, #94b3a9);
|
|
31
|
+
--astryx-code-syntax-punctuation: light-dark(#5f5f64, #ababb3);
|
|
32
32
|
|
|
33
33
|
/* 差异行是带透明度的淡绿、淡红;标记色在深色底上用浅色调,浅色底上用深色调。 */
|
|
34
|
-
--astryx-code-syntax-added: light-dark(#
|
|
35
|
-
--astryx-code-syntax-removed: light-dark(#
|
|
36
|
-
--astryx-code-syntax-diff-header:
|
|
37
|
-
--astryx-code-syntax-added-marker: light-dark(#
|
|
38
|
-
--astryx-code-syntax-removed-marker: light-dark(#
|
|
34
|
+
--astryx-code-syntax-added: light-dark(#d2eccf40, #b3d0af33);
|
|
35
|
+
--astryx-code-syntax-removed: light-dark(#fbdad440, #e0bdb833);
|
|
36
|
+
--astryx-code-syntax-diff-header: transparent;
|
|
37
|
+
--astryx-code-syntax-added-marker: light-dark(#354f31, #d5e9d2);
|
|
38
|
+
--astryx-code-syntax-removed-marker: light-dark(#603c37, #f7dbd7);
|
|
39
39
|
}
|
|
40
40
|
}
|
package/stone/input.css
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
--astryx-input-background: var(--astryx-color-background-surface);
|
|
6
6
|
--astryx-input-border: var(--astryx-color-border-emphasized);
|
|
7
7
|
--astryx-input-focus: var(--astryx-color-accent);
|
|
8
|
-
--astryx-input-height-sm:
|
|
9
|
-
--astryx-input-height-md:
|
|
10
|
-
--astryx-input-height-lg:
|
|
8
|
+
--astryx-input-height-sm: var(--astryx-size-element-sm);
|
|
9
|
+
--astryx-input-height-md: var(--astryx-size-element-md);
|
|
10
|
+
--astryx-input-height-lg: var(--astryx-size-element-lg);
|
|
11
11
|
/* 状态描边和状态图标用柔和的 T60/T70,和上方状态提示底色同族。 */
|
|
12
12
|
--astryx-input-error: light-dark(#a58b86, #c0a5a1);
|
|
13
13
|
--astryx-input-error-foreground: var(--astryx-color-text-red);
|
package/stone/mobile-type.css
CHANGED
|
@@ -11,17 +11,28 @@
|
|
|
11
11
|
@layer astryx.tokens {
|
|
12
12
|
@media (width < 1024px) and (pointer: coarse) {
|
|
13
13
|
[data-astryx-theme='stone'] {
|
|
14
|
-
--
|
|
15
|
-
--astryx-font-size-
|
|
16
|
-
--
|
|
17
|
-
--astryx-font-size-
|
|
18
|
-
--
|
|
19
|
-
--astryx-font-size-
|
|
20
|
-
--
|
|
21
|
-
--astryx-font-size-
|
|
22
|
-
--
|
|
23
|
-
--astryx-font-size-
|
|
24
|
-
--
|
|
14
|
+
--_scaled-font-size-4xs: min(calc(0.375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
|
|
15
|
+
--astryx-font-size-4xs: var(--_scaled-font-size-4xs);
|
|
16
|
+
--_scaled-font-size-3xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
|
|
17
|
+
--astryx-font-size-3xs: var(--_scaled-font-size-3xs);
|
|
18
|
+
--_scaled-font-size-2xs: min(calc(0.5625rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
|
|
19
|
+
--astryx-font-size-2xs: var(--_scaled-font-size-2xs);
|
|
20
|
+
--_scaled-font-size-xs: min(calc(0.6875rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
|
|
21
|
+
--astryx-font-size-xs: var(--_scaled-font-size-xs);
|
|
22
|
+
--_scaled-font-size-sm: min(calc(0.8125rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
|
|
23
|
+
--astryx-font-size-sm: var(--_scaled-font-size-sm);
|
|
24
|
+
--_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
|
|
25
|
+
--astryx-font-size-base: var(--_scaled-font-size-base);
|
|
26
|
+
--_scaled-font-size-lg: min(calc(1.25rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
|
|
27
|
+
--astryx-font-size-lg: var(--_scaled-font-size-lg);
|
|
28
|
+
--_scaled-font-size-xl: min(calc(1.5rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
|
|
29
|
+
--astryx-font-size-xl: var(--_scaled-font-size-xl);
|
|
30
|
+
--_scaled-font-size-2xl: min(calc(1.8125rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
|
|
31
|
+
--astryx-font-size-2xl: var(--_scaled-font-size-2xl);
|
|
32
|
+
--_scaled-font-size-3xl: min(calc(2.25rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
|
|
33
|
+
--astryx-font-size-3xl: var(--_scaled-font-size-3xl);
|
|
34
|
+
--_scaled-font-size-4xl: min(calc(2.75rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
|
|
35
|
+
--astryx-font-size-4xl: var(--_scaled-font-size-4xl);
|
|
25
36
|
|
|
26
37
|
--astryx-text-heading-1-size: var(--astryx-font-size-2xl);
|
|
27
38
|
--astryx-text-heading-1-leading: 1.3793;
|
package/stone/token.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@layer astryx.tokens {
|
|
4
4
|
[data-astryx-theme='stone'] {
|
|
5
5
|
--astryx-token-default-background: var(--astryx-badge-neutral-background);
|
|
6
|
-
--astryx-token-default-foreground: var(--astryx-
|
|
6
|
+
--astryx-token-default-foreground: var(--astryx-color-text-primary);
|
|
7
7
|
--astryx-token-gray-background: var(--astryx-badge-neutral-background);
|
|
8
8
|
--astryx-token-gray-foreground: var(--astryx-badge-neutral-foreground);
|
|
9
9
|
--astryx-token-blue-background: var(--astryx-badge-blue-background);
|
package/y2k/banner.css
CHANGED
|
@@ -1,44 +1,30 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
-
@layer astryx.tokens {
|
|
3
|
-
[data-astryx-theme='y2k'] {
|
|
4
|
-
--astryx-banner-info-background: var(--astryx-color-background-blue);
|
|
5
|
-
--astryx-banner-info-foreground: var(--astryx-color-text-blue);
|
|
6
|
-
--astryx-banner-error-background: var(--astryx-color-error-muted);
|
|
7
|
-
--astryx-banner-error-foreground: var(--astryx-color-text-red);
|
|
8
|
-
--astryx-banner-warning-background: var(--astryx-color-warning-muted);
|
|
9
|
-
--astryx-banner-warning-foreground: var(--astryx-color-text-yellow);
|
|
10
|
-
--astryx-banner-success-background: var(--astryx-color-success-muted);
|
|
11
|
-
--astryx-banner-success-foreground: var(--astryx-color-text-green);
|
|
12
|
-
--astryx-banner-content-background: var(--astryx-color-background-surface);
|
|
13
|
-
--astryx-banner-border: var(--astryx-color-border);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
2
|
|
|
17
3
|
/*
|
|
18
|
-
*
|
|
4
|
+
* 状态条在各状态上重指浅底和浅底上的文字,与上游 banner 的 `status:*` 覆盖一致。
|
|
19
5
|
*/
|
|
20
6
|
@layer astryx.overrides {
|
|
7
|
+
[data-astryx-theme='y2k'] {
|
|
8
|
+
--astryx-banner-radius: 0px;
|
|
9
|
+
}
|
|
10
|
+
|
|
21
11
|
[data-astryx-theme='y2k'] .astryx-banner[data-status='info'] {
|
|
22
|
-
--astryx-color-
|
|
23
|
-
--astryx-color-
|
|
24
|
-
--astryx-color-accent: var(--astryx-color-text-blue);
|
|
12
|
+
--astryx-color-info-muted: var(--astryx-color-background-blue);
|
|
13
|
+
--astryx-color-on-info-muted: var(--astryx-color-text-blue);
|
|
25
14
|
}
|
|
26
15
|
|
|
27
16
|
[data-astryx-theme='y2k'] .astryx-banner[data-status='success'] {
|
|
28
|
-
--astryx-color-
|
|
29
|
-
--astryx-color-
|
|
30
|
-
--astryx-color-success: var(--astryx-color-text-green);
|
|
17
|
+
--astryx-color-success-muted: var(--astryx-color-background-green);
|
|
18
|
+
--astryx-color-on-success-muted: var(--astryx-color-text-green);
|
|
31
19
|
}
|
|
32
20
|
|
|
33
21
|
[data-astryx-theme='y2k'] .astryx-banner[data-status='warning'] {
|
|
34
|
-
--astryx-color-
|
|
35
|
-
--astryx-color-
|
|
36
|
-
--astryx-color-warning: var(--astryx-color-text-yellow);
|
|
22
|
+
--astryx-color-warning-muted: var(--astryx-color-background-yellow);
|
|
23
|
+
--astryx-color-on-warning-muted: var(--astryx-color-text-yellow);
|
|
37
24
|
}
|
|
38
25
|
|
|
39
26
|
[data-astryx-theme='y2k'] .astryx-banner[data-status='error'] {
|
|
40
|
-
--astryx-color-
|
|
41
|
-
--astryx-color-
|
|
42
|
-
--astryx-color-error: var(--astryx-color-text-red);
|
|
27
|
+
--astryx-color-error-muted: var(--astryx-color-background-red);
|
|
28
|
+
--astryx-color-on-error-muted: var(--astryx-color-text-red);
|
|
43
29
|
}
|
|
44
30
|
}
|
package/y2k/base.css
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
color: var(--astryx-color-text-primary);
|
|
18
18
|
font-family: var(--astryx-font-family-body);
|
|
19
19
|
font-size: var(--astryx-text-body-size);
|
|
20
|
-
line-height: var(--astryx-text-body-leading);
|
|
21
20
|
|
|
22
21
|
--astryx-color-accent: light-dark(#2d241b, #EDEFFC);
|
|
23
22
|
--astryx-color-accent-muted: light-dark(#2d241b14, #EDEFFC20);
|
|
@@ -25,13 +24,13 @@
|
|
|
25
24
|
--astryx-color-neutral: light-dark(#2d241b10, #EDEFFC1A);
|
|
26
25
|
--astryx-color-background-surface: light-dark(#FFFFFF, #16182b);
|
|
27
26
|
--astryx-color-background-body: light-dark(#CCCFFA, #0e0f1a);
|
|
28
|
-
--astryx-color-overlay: light-dark(#2d241b80, #
|
|
27
|
+
--astryx-color-overlay: light-dark(#2d241b80, #0e0f1aCC);
|
|
29
28
|
--astryx-color-overlay-hover: light-dark(#2d241b0D, #EDEFFC0D);
|
|
30
29
|
--astryx-color-overlay-pressed: light-dark(#2d241b1A, #EDEFFC1A);
|
|
31
|
-
--astryx-color-background-muted: light-dark(#
|
|
30
|
+
--astryx-color-background-muted: light-dark(#f1e6db, #1f2238);
|
|
32
31
|
|
|
33
32
|
--astryx-color-text-primary: light-dark(#2d241b, #EDEFFC);
|
|
34
|
-
--astryx-color-text-secondary: light-dark(#
|
|
33
|
+
--astryx-color-text-secondary: light-dark(#5a5146, #a6acd6);
|
|
35
34
|
--astryx-color-text-disabled: light-dark(#d1c5b8, #4a4f6b);
|
|
36
35
|
--astryx-color-text-accent: light-dark(#2d241b, #EDEFFC);
|
|
37
36
|
--astryx-color-on-dark: #FFFFFF;
|
|
@@ -49,71 +48,92 @@
|
|
|
49
48
|
|
|
50
49
|
--astryx-color-success: light-dark(#C5E17A, #C5E17A);
|
|
51
50
|
--astryx-color-success-muted: light-dark(#C5E17A, #C5E17A);
|
|
52
|
-
--astryx-color-on-success: light-dark(#
|
|
53
|
-
--astryx-color-error: light-dark(#
|
|
54
|
-
--astryx-color-error-muted: light-dark(#
|
|
55
|
-
--astryx-color-on-error: light-dark(#
|
|
56
|
-
--astryx-color-warning: light-dark(#
|
|
57
|
-
--astryx-color-warning-muted: light-dark(#
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
--astryx-color-
|
|
61
|
-
--astryx-color-
|
|
62
|
-
|
|
63
|
-
--astryx-color-
|
|
51
|
+
--astryx-color-on-success: light-dark(#3f4e00, #2a3600);
|
|
52
|
+
--astryx-color-error: light-dark(#ffc3c3, #ffc3c3);
|
|
53
|
+
--astryx-color-error-muted: light-dark(#ffc3c3, #ffc3c3);
|
|
54
|
+
--astryx-color-on-error: light-dark(#880023, #610016);
|
|
55
|
+
--astryx-color-warning: light-dark(#ffe08a, #fde08f);
|
|
56
|
+
--astryx-color-warning-muted: light-dark(#ffe08a, #fde08f);
|
|
57
|
+
|
|
58
|
+
/* Status roles: info 填充、状态文字、图标、边框和浅底上的文字(上游 INV11 / INV17)。 */
|
|
59
|
+
--astryx-color-info: light-dark(#00649b, #70c1ff);
|
|
60
|
+
--astryx-color-info-muted: var(--astryx-color-background-blue);
|
|
61
|
+
--astryx-color-on-info: light-dark(#FFFFFF, #2D241B);
|
|
62
|
+
--astryx-color-text-info: light-dark(#003454, #70c1ff);
|
|
63
|
+
--astryx-color-text-success: light-dark(#3f4e00, #b5d263);
|
|
64
|
+
--astryx-color-text-warning: light-dark(#584400, #f3d172);
|
|
65
|
+
--astryx-color-text-error: light-dark(#880023, #ff969a);
|
|
66
|
+
--astryx-color-icon-info: var(--astryx-color-text-info);
|
|
67
|
+
--astryx-color-icon-success: var(--astryx-color-text-success);
|
|
68
|
+
--astryx-color-icon-warning: var(--astryx-color-text-warning);
|
|
69
|
+
--astryx-color-icon-error: var(--astryx-color-text-error);
|
|
70
|
+
--astryx-color-border-info: var(--astryx-color-text-info);
|
|
71
|
+
--astryx-color-border-success: var(--astryx-color-text-success);
|
|
72
|
+
--astryx-color-border-warning: var(--astryx-color-text-warning);
|
|
73
|
+
--astryx-color-border-error: var(--astryx-color-text-error);
|
|
74
|
+
--astryx-color-on-info-muted: var(--astryx-color-text-blue);
|
|
75
|
+
--astryx-color-on-success-muted: var(--astryx-color-text-green);
|
|
76
|
+
--astryx-color-on-warning-muted: var(--astryx-color-text-yellow);
|
|
77
|
+
--astryx-color-on-error-muted: var(--astryx-color-text-red);
|
|
78
|
+
--astryx-color-on-warning: light-dark(#584400, #3d2e00);
|
|
79
|
+
|
|
80
|
+
--astryx-color-border: light-dark(#382e24, #edeffc1A);
|
|
81
|
+
--astryx-color-border-emphasized: light-dark(#382e24, #636889);
|
|
82
|
+
|
|
83
|
+
--astryx-color-skeleton: light-dark(#c4b8a9, #2c3048);
|
|
64
84
|
--astryx-color-track: light-dark(#ccd3db, #5a5e66);
|
|
65
85
|
--astryx-color-shadow: light-dark(#2d241b1A, #0000004D);
|
|
66
86
|
--astryx-color-tint-hover: light-dark(#2d241b, #EDEFFC);
|
|
67
87
|
|
|
68
|
-
--astryx-color-background-blue: light-dark(#
|
|
69
|
-
--astryx-color-border-blue: light-dark(#
|
|
70
|
-
--astryx-color-icon-blue: light-dark(#
|
|
71
|
-
--astryx-color-text-blue: light-dark(#
|
|
88
|
+
--astryx-color-background-blue: light-dark(#addbff, #addbff);
|
|
89
|
+
--astryx-color-border-blue: light-dark(#70c1ff, #70c1ff);
|
|
90
|
+
--astryx-color-icon-blue: light-dark(#003454, #003454);
|
|
91
|
+
--astryx-color-text-blue: light-dark(#003454, #003454);
|
|
72
92
|
|
|
73
|
-
--astryx-color-background-cyan: light-dark(#
|
|
74
|
-
--astryx-color-border-cyan: light-dark(#
|
|
75
|
-
--astryx-color-icon-cyan: light-dark(#
|
|
76
|
-
--astryx-color-text-cyan: light-dark(#
|
|
93
|
+
--astryx-color-background-cyan: light-dark(#b2f0ed, #baeeec);
|
|
94
|
+
--astryx-color-border-cyan: light-dark(#73dbd7, #84d8d4);
|
|
95
|
+
--astryx-color-icon-cyan: light-dark(#005250, #002d2c);
|
|
96
|
+
--astryx-color-text-cyan: light-dark(#005250, #002d2c);
|
|
77
97
|
|
|
78
|
-
--astryx-color-background-gray: light-dark(#
|
|
79
|
-
--astryx-color-border-gray: light-dark(#
|
|
80
|
-
--astryx-color-icon-gray: light-dark(#4f453b, #
|
|
81
|
-
--astryx-color-text-gray: light-dark(#4f453b, #
|
|
98
|
+
--astryx-color-background-gray: light-dark(#f1e6db, #dfe2f3);
|
|
99
|
+
--astryx-color-border-gray: light-dark(#dfd5c9, #d0d4eb);
|
|
100
|
+
--astryx-color-icon-gray: light-dark(#4f453b, #16182b);
|
|
101
|
+
--astryx-color-text-gray: light-dark(#4f453b, #16182b);
|
|
82
102
|
|
|
83
103
|
--astryx-color-background-green: light-dark(#C5E17A, #C5E17A);
|
|
84
|
-
--astryx-color-border-green: light-dark(#
|
|
85
|
-
--astryx-color-icon-green: light-dark(#
|
|
86
|
-
--astryx-color-text-green: light-dark(#
|
|
87
|
-
|
|
88
|
-
--astryx-color-background-orange: light-dark(#
|
|
89
|
-
--astryx-color-border-orange: light-dark(#
|
|
90
|
-
--astryx-color-icon-orange: light-dark(#
|
|
91
|
-
--astryx-color-text-orange: light-dark(#
|
|
92
|
-
|
|
93
|
-
--astryx-color-background-pink: light-dark(#
|
|
94
|
-
--astryx-color-border-pink: light-dark(#
|
|
95
|
-
--astryx-color-icon-pink: light-dark(#
|
|
96
|
-
--astryx-color-text-pink: light-dark(#
|
|
97
|
-
|
|
98
|
-
--astryx-color-background-purple: light-dark(#
|
|
99
|
-
--astryx-color-border-purple: light-dark(#
|
|
100
|
-
--astryx-color-icon-purple: light-dark(#
|
|
101
|
-
--astryx-color-text-purple: light-dark(#
|
|
102
|
-
|
|
103
|
-
--astryx-color-background-red: light-dark(#
|
|
104
|
-
--astryx-color-border-red: light-dark(#
|
|
105
|
-
--astryx-color-icon-red: light-dark(#
|
|
106
|
-
--astryx-color-text-red: light-dark(#
|
|
107
|
-
|
|
108
|
-
--astryx-color-background-teal: light-dark(#
|
|
109
|
-
--astryx-color-border-teal: light-dark(#
|
|
110
|
-
--astryx-color-icon-teal: light-dark(#
|
|
111
|
-
--astryx-color-text-teal: light-dark(#
|
|
112
|
-
|
|
113
|
-
--astryx-color-background-yellow: light-dark(#
|
|
114
|
-
--astryx-color-border-yellow: light-dark(#
|
|
115
|
-
--astryx-color-icon-yellow: light-dark(#
|
|
116
|
-
--astryx-color-text-yellow: light-dark(#
|
|
104
|
+
--astryx-color-border-green: light-dark(#b5d360, #b5d263);
|
|
105
|
+
--astryx-color-icon-green: light-dark(#3f4e00, #2a3600);
|
|
106
|
+
--astryx-color-text-green: light-dark(#3f4e00, #2a3600);
|
|
107
|
+
|
|
108
|
+
--astryx-color-background-orange: light-dark(#ffc89d, #ffc89d);
|
|
109
|
+
--astryx-color-border-orange: light-dark(#ffb477, #ffb477);
|
|
110
|
+
--astryx-color-icon-orange: light-dark(#703400, #411800);
|
|
111
|
+
--astryx-color-text-orange: light-dark(#703400, #411800);
|
|
112
|
+
|
|
113
|
+
--astryx-color-background-pink: light-dark(#ffbfd9, #ffbfd9);
|
|
114
|
+
--astryx-color-border-pink: light-dark(#ffa8cd, #ffa8cd);
|
|
115
|
+
--astryx-color-icon-pink: light-dark(#82004f, #5d0037);
|
|
116
|
+
--astryx-color-text-pink: light-dark(#82004f, #5d0037);
|
|
117
|
+
|
|
118
|
+
--astryx-color-background-purple: light-dark(#d5cdff, #d5cdff);
|
|
119
|
+
--astryx-color-border-purple: light-dark(#bbaaff, #bbaaff);
|
|
120
|
+
--astryx-color-icon-purple: light-dark(#431a88, #2a1159);
|
|
121
|
+
--astryx-color-text-purple: light-dark(#431a88, #2a1159);
|
|
122
|
+
|
|
123
|
+
--astryx-color-background-red: light-dark(#ffc3c3, #ffc3c3);
|
|
124
|
+
--astryx-color-border-red: light-dark(#ff969a, #ff969a);
|
|
125
|
+
--astryx-color-icon-red: light-dark(#880023, #610016);
|
|
126
|
+
--astryx-color-text-red: light-dark(#880023, #610016);
|
|
127
|
+
|
|
128
|
+
--astryx-color-background-teal: light-dark(#b6f2d7, #a6e5c9);
|
|
129
|
+
--astryx-color-border-teal: light-dark(#81dcb6, #8ed9b9);
|
|
130
|
+
--astryx-color-icon-teal: light-dark(#00553b, #002f1e);
|
|
131
|
+
--astryx-color-text-teal: light-dark(#00553b, #002f1e);
|
|
132
|
+
|
|
133
|
+
--astryx-color-background-yellow: light-dark(#ffe08a, #fde08f);
|
|
134
|
+
--astryx-color-border-yellow: light-dark(#f9d059, #f3d172);
|
|
135
|
+
--astryx-color-icon-yellow: light-dark(#584400, #3d2e00);
|
|
136
|
+
--astryx-color-text-yellow: light-dark(#584400, #3d2e00);
|
|
117
137
|
|
|
118
138
|
--astryx-spacing-0: 0rem;
|
|
119
139
|
--astryx-spacing-0-5: 0.1875rem;
|
|
@@ -155,9 +175,9 @@
|
|
|
155
175
|
--astryx-shadow-high: 0 4px 6px #2d241b1A, 0 12px 24px #2d241b26;
|
|
156
176
|
--astryx-shadow-inset-hover: inset 0px 0px 0px 2px #2d241b30;
|
|
157
177
|
--astryx-shadow-inset-selected: inset 0px 0px 0px 2px #2d241b50;
|
|
158
|
-
--astryx-shadow-inset-success: inset 0px 0px 0px 2px #
|
|
159
|
-
--astryx-shadow-inset-warning: inset 0px 0px 0px 2px #
|
|
160
|
-
--astryx-shadow-inset-error: inset 0px 0px 0px 2px #
|
|
178
|
+
--astryx-shadow-inset-success: inset 0px 0px 0px 2px #3f4e0050;
|
|
179
|
+
--astryx-shadow-inset-warning: inset 0px 0px 0px 2px #58440050;
|
|
180
|
+
--astryx-shadow-inset-error: inset 0px 0px 0px 2px #88002350;
|
|
161
181
|
|
|
162
182
|
--astryx-duration-fast-min: 80ms;
|
|
163
183
|
--astryx-duration-fast: 100ms;
|
|
@@ -168,25 +188,41 @@
|
|
|
168
188
|
--astryx-duration-slow-min: 480ms;
|
|
169
189
|
--astryx-duration-slow: 600ms;
|
|
170
190
|
--astryx-duration-slow-max: 750ms;
|
|
191
|
+
--astryx-duration-exit: var(--astryx-duration-fast);
|
|
171
192
|
|
|
172
193
|
--astryx-ease-standard: cubic-bezier(0.24, 1, 0.4, 1);
|
|
194
|
+
--astryx-ease-entrance: cubic-bezier(0.24, 1, 0.4, 1);
|
|
195
|
+
--astryx-ease-move: cubic-bezier(0.24, 1, 0.4, 1);
|
|
196
|
+
--astryx-ease-exit: cubic-bezier(0.3, 0, 0.6, 0.6);
|
|
173
197
|
|
|
174
198
|
--astryx-font-family-body: Poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
175
199
|
--astryx-font-family-code: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
|
|
176
200
|
--astryx-font-family-heading: Poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
177
201
|
|
|
178
|
-
--
|
|
179
|
-
--astryx-font-size-
|
|
180
|
-
--
|
|
181
|
-
--astryx-font-size-
|
|
182
|
-
--
|
|
183
|
-
--astryx-font-size-
|
|
184
|
-
--
|
|
185
|
-
--astryx-font-size-
|
|
186
|
-
--
|
|
187
|
-
--astryx-font-size-
|
|
188
|
-
--
|
|
189
|
-
--astryx-font-size-
|
|
202
|
+
--_scaled-font-size-4xs: min(calc(0.3125rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
|
|
203
|
+
--astryx-font-size-4xs: var(--_scaled-font-size-4xs);
|
|
204
|
+
--_scaled-font-size-3xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
|
|
205
|
+
--astryx-font-size-3xs: var(--_scaled-font-size-3xs);
|
|
206
|
+
--_scaled-font-size-2xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
|
|
207
|
+
--astryx-font-size-2xs: var(--_scaled-font-size-2xs);
|
|
208
|
+
--_scaled-font-size-xs: min(calc(0.625rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
|
|
209
|
+
--astryx-font-size-xs: var(--_scaled-font-size-xs);
|
|
210
|
+
--_scaled-font-size-sm: min(calc(0.8125rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
|
|
211
|
+
--astryx-font-size-sm: var(--_scaled-font-size-sm);
|
|
212
|
+
--_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
|
|
213
|
+
--astryx-font-size-base: var(--_scaled-font-size-base);
|
|
214
|
+
--_scaled-font-size-lg: min(calc(1.25rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
|
|
215
|
+
--astryx-font-size-lg: var(--_scaled-font-size-lg);
|
|
216
|
+
--_scaled-font-size-xl: min(calc(1.5625rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
|
|
217
|
+
--astryx-font-size-xl: var(--_scaled-font-size-xl);
|
|
218
|
+
--_scaled-font-size-2xl: min(calc(1.9375rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
|
|
219
|
+
--astryx-font-size-2xl: var(--_scaled-font-size-2xl);
|
|
220
|
+
--_scaled-font-size-3xl: min(calc(2.4375rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
|
|
221
|
+
--astryx-font-size-3xl: var(--_scaled-font-size-3xl);
|
|
222
|
+
--_scaled-font-size-4xl: min(calc(3.0625rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
|
|
223
|
+
--astryx-font-size-4xl: var(--_scaled-font-size-4xl);
|
|
224
|
+
--_scaled-font-size-5xl: calc(3.8125rem * var(--_dynamic-type-large-title, 1));
|
|
225
|
+
--astryx-font-size-5xl: var(--_scaled-font-size-5xl);
|
|
190
226
|
|
|
191
227
|
--astryx-font-weight-normal: 400;
|
|
192
228
|
--astryx-font-weight-regular: var(--astryx-font-weight-normal);
|
|
@@ -225,7 +261,7 @@
|
|
|
225
261
|
--astryx-text-code-size: var(--astryx-font-size-base);
|
|
226
262
|
--astryx-text-code-weight: var(--astryx-font-weight-normal);
|
|
227
263
|
--astryx-text-code-leading: 1.5;
|
|
228
|
-
--astryx-text-supporting-size:
|
|
264
|
+
--astryx-text-supporting-size: calc(0.75rem * var(--_dynamic-type-footnote, 1));
|
|
229
265
|
--astryx-text-supporting-weight: var(--astryx-font-weight-normal);
|
|
230
266
|
--astryx-text-supporting-leading: 1.5385;
|
|
231
267
|
|
package/y2k/chat.css
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
--astryx-chat-foreground-secondary: var(--astryx-color-text-secondary);
|
|
9
9
|
--astryx-chat-foreground-muted: var(--astryx-color-text-disabled);
|
|
10
10
|
--astryx-chat-bubble-background: var(--astryx-color-neutral);
|
|
11
|
-
--astryx-chat-error: var(--astryx-color-error);
|
|
12
|
-
--astryx-chat-success: var(--astryx-color-success);
|
|
13
11
|
--astryx-chat-accent: var(--astryx-color-accent);
|
|
14
12
|
--astryx-chat-unread-color: var(--astryx-color-border-red);
|
|
15
13
|
--astryx-chat-scroll-background: var(--astryx-color-background-popover);
|
package/y2k/code.css
CHANGED
|
@@ -9,32 +9,32 @@
|
|
|
9
9
|
|
|
10
10
|
/* CodeBlock card: white surface and a hairline border, matching the
|
|
11
11
|
original block. Inline code keeps the muted chip above. */
|
|
12
|
-
--astryx-code-block-background: light-dark(#
|
|
12
|
+
--astryx-code-block-background: light-dark(#fff6ed, #0e0f1a);
|
|
13
13
|
--astryx-code-block-border: var(--astryx-color-border);
|
|
14
14
|
--astryx-code-block-focus: var(--astryx-color-accent);
|
|
15
|
-
--astryx-code-block-highlight-background:
|
|
15
|
+
--astryx-code-block-highlight-background: var(--astryx-color-accent-muted);
|
|
16
16
|
|
|
17
17
|
/* Syntax colors from the original CodeBlock theme: keyword and type share
|
|
18
18
|
the same purple, strings stay green. */
|
|
19
|
-
--astryx-code-syntax-keyword: light-dark(#
|
|
20
|
-
--astryx-code-syntax-string: light-dark(#
|
|
21
|
-
--astryx-code-syntax-comment: light-dark(#
|
|
22
|
-
--astryx-code-syntax-number: light-dark(#
|
|
23
|
-
--astryx-code-syntax-function: light-dark(#
|
|
24
|
-
--astryx-code-syntax-type: light-dark(#
|
|
25
|
-
--astryx-code-syntax-variable: light-dark(#
|
|
26
|
-
--astryx-code-syntax-operator: light-dark(#
|
|
27
|
-
--astryx-code-syntax-constant: light-dark(#
|
|
28
|
-
--astryx-code-syntax-tag: light-dark(#
|
|
29
|
-
--astryx-code-syntax-attribute: light-dark(#
|
|
30
|
-
--astryx-code-syntax-property: light-dark(#
|
|
31
|
-
--astryx-code-syntax-punctuation: light-dark(#
|
|
19
|
+
--astryx-code-syntax-keyword: light-dark(#663ebd, #bbaaff);
|
|
20
|
+
--astryx-code-syntax-string: light-dark(#495b00, #95b041);
|
|
21
|
+
--astryx-code-syntax-comment: light-dark(#5a5146, #a6acd6);
|
|
22
|
+
--astryx-code-syntax-number: light-dark(#803e00, #ffb477);
|
|
23
|
+
--astryx-code-syntax-function: light-dark(#005788, #70c1ff);
|
|
24
|
+
--astryx-code-syntax-type: light-dark(#663ebd, #bbaaff);
|
|
25
|
+
--astryx-code-syntax-variable: light-dark(#5a5146, #a6acd6);
|
|
26
|
+
--astryx-code-syntax-operator: light-dark(#5a5146, #a6acd6);
|
|
27
|
+
--astryx-code-syntax-constant: light-dark(#803e00, #ffb477);
|
|
28
|
+
--astryx-code-syntax-tag: light-dark(#9d002a, #ff969a);
|
|
29
|
+
--astryx-code-syntax-attribute: light-dark(#664f00, #d0a601);
|
|
30
|
+
--astryx-code-syntax-property: light-dark(#006246, #5bc29a);
|
|
31
|
+
--astryx-code-syntax-punctuation: light-dark(#5a5146, #a6acd6);
|
|
32
32
|
|
|
33
33
|
/* 差异行是带透明度的淡绿、淡红,压住亮度让行内语法保持 4.5:1 以上。 */
|
|
34
34
|
--astryx-code-syntax-added: light-dark(#c5e17a40, #c5e17a33);
|
|
35
|
-
--astryx-code-syntax-removed: light-dark(#
|
|
36
|
-
--astryx-code-syntax-diff-header:
|
|
37
|
-
--astryx-code-syntax-added-marker: light-dark(#
|
|
38
|
-
--astryx-code-syntax-removed-marker: light-dark(#
|
|
35
|
+
--astryx-code-syntax-removed: light-dark(#ffc3c340, #ffc3c333);
|
|
36
|
+
--astryx-code-syntax-diff-header: transparent;
|
|
37
|
+
--astryx-code-syntax-added-marker: light-dark(#3f4e00, #95b041);
|
|
38
|
+
--astryx-code-syntax-removed-marker: light-dark(#880023, #ff969a);
|
|
39
39
|
}
|
|
40
40
|
}
|
package/y2k/heading.css
CHANGED
|
@@ -26,10 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
[data-astryx-theme='y2k'] .astryx-text--type-display-1,
|
|
28
28
|
[data-astryx-theme='y2k'] .astryx-text--type-display-2,
|
|
29
|
-
[data-astryx-theme='y2k'] .astryx-text--type-display-3
|
|
30
|
-
[data-astryx-theme='y2k'] .astryx-heading--type-display-1,
|
|
31
|
-
[data-astryx-theme='y2k'] .astryx-heading--type-display-2,
|
|
32
|
-
[data-astryx-theme='y2k'] .astryx-heading--type-display-3 {
|
|
29
|
+
[data-astryx-theme='y2k'] .astryx-text--type-display-3 {
|
|
33
30
|
font-family: 'Crimson Text', Georgia, 'Times New Roman', Times, serif;
|
|
34
31
|
}
|
|
35
32
|
}
|
package/y2k/input.css
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
--astryx-input-background: var(--astryx-color-background-surface);
|
|
6
6
|
--astryx-input-border: var(--astryx-color-border-emphasized);
|
|
7
7
|
--astryx-input-focus: var(--astryx-color-accent);
|
|
8
|
-
--astryx-input-height-sm:
|
|
9
|
-
--astryx-input-height-md:
|
|
10
|
-
--astryx-input-height-lg:
|
|
8
|
+
--astryx-input-height-sm: var(--astryx-size-element-sm);
|
|
9
|
+
--astryx-input-height-md: var(--astryx-size-element-md);
|
|
10
|
+
--astryx-input-height-lg: var(--astryx-size-element-lg);
|
|
11
11
|
--astryx-input-error: var(--astryx-color-error);
|
|
12
12
|
--astryx-input-error-foreground: var(--astryx-color-text-red);
|
|
13
13
|
--astryx-input-error-background: var(--astryx-color-error-muted);
|