@astryx-vue/themes 0.7.21 → 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/neutral/input.css
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
--astryx-input-background: var(--astryx-color-background-surface);
|
|
7
7
|
--astryx-input-border: var(--astryx-color-border-emphasized);
|
|
8
8
|
--astryx-input-focus: var(--astryx-color-accent);
|
|
9
|
-
--astryx-input-height-sm:
|
|
10
|
-
--astryx-input-height-md:
|
|
11
|
-
--astryx-input-height-lg:
|
|
9
|
+
--astryx-input-height-sm: var(--astryx-size-element-sm);
|
|
10
|
+
--astryx-input-height-md: var(--astryx-size-element-md);
|
|
11
|
+
--astryx-input-height-lg: var(--astryx-size-element-lg);
|
|
12
12
|
--astryx-input-error: var(--astryx-color-error);
|
|
13
13
|
--astryx-input-error-foreground: var(--astryx-color-text-red);
|
|
14
14
|
--astryx-input-error-background: var(--astryx-color-error-muted);
|
package/neutral/kbd.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:root,
|
|
5
5
|
[data-astryx-theme='neutral'] {
|
|
6
6
|
--astryx-kbd-background: var(--astryx-color-neutral);
|
|
7
|
-
--astryx-kbd-foreground: var(--astryx-color-text-
|
|
7
|
+
--astryx-kbd-foreground: var(--astryx-color-text-primary);
|
|
8
8
|
--astryx-kbd-border-color: var(--astryx-color-border-emphasized);
|
|
9
9
|
}
|
|
10
10
|
}
|
package/neutral/list.css
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
[data-astryx-theme='neutral'] {
|
|
6
6
|
--astryx-list-item-hover-background: var(--astryx-color-overlay-hover);
|
|
7
7
|
--astryx-list-item-pressed-background: var(--astryx-color-overlay-pressed);
|
|
8
|
-
--astryx-list-item-selected-background:
|
|
9
|
-
--astryx-list-item-focus:
|
|
8
|
+
--astryx-list-item-selected-background: var(--astryx-color-accent-muted);
|
|
9
|
+
--astryx-list-item-focus: var(--astryx-color-accent);
|
|
10
10
|
--astryx-list-divider-color: var(--astryx-color-border);
|
|
11
11
|
--astryx-list-marker-foreground: var(--astryx-color-text-primary);
|
|
12
12
|
}
|
package/neutral/local-tokens.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Neutral theme-local tokens.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Upstream keeps one deprecated theme-local token (theme:neutral DEC-1) for
|
|
5
|
+
* Neutral extensions; Neutral itself paints status through the portable
|
|
6
|
+
* --color-* roles and no longer reads it.
|
|
7
7
|
*/
|
|
8
8
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
9
9
|
|
|
@@ -11,19 +11,5 @@
|
|
|
11
11
|
:root,
|
|
12
12
|
[data-astryx-theme='neutral'] {
|
|
13
13
|
--astryx-theme-neutral-color-status-fill-accent: light-dark(#0074e2, #6d9cfe);
|
|
14
|
-
--astryx-theme-neutral-color-status-fill-success: light-dark(#198100, #64af4c);
|
|
15
|
-
--astryx-theme-neutral-color-status-fill-warning: #ffce2f;
|
|
16
|
-
--astryx-theme-neutral-color-status-fill-error: light-dark(#c9303a, #ff705d);
|
|
17
|
-
|
|
18
|
-
--astryx-theme-neutral-color-status-muted-accent: light-dark(#b9d7ff, #88bcff3d);
|
|
19
|
-
|
|
20
|
-
/* Tints used on top of an already-tinted surface (Banner). */
|
|
21
|
-
--astryx-theme-neutral-color-on-tint-neutral: light-dark(#fafafa4d, #0a0a0a4d);
|
|
22
|
-
--astryx-theme-neutral-color-on-tint-overlay-hover: light-dark(#fafafa1a, #0a0a0a1a);
|
|
23
|
-
--astryx-theme-neutral-color-on-tint-overlay-pressed: light-dark(#fafafa33, #0a0a0a33);
|
|
24
|
-
|
|
25
|
-
/* Red overlay used by the destructive Button instead of the neutral one. */
|
|
26
|
-
--astryx-theme-neutral-color-destructive-overlay-hover: light-dark(#ff7f770d, #ee736c0d);
|
|
27
|
-
--astryx-theme-neutral-color-destructive-overlay-pressed: light-dark(#ff7f771a, #ee736c1a);
|
|
28
14
|
}
|
|
29
15
|
}
|
package/neutral/mobile-type.css
CHANGED
|
@@ -12,17 +12,28 @@
|
|
|
12
12
|
@media (width < 1024px) and (pointer: coarse) {
|
|
13
13
|
:root,
|
|
14
14
|
[data-astryx-theme='neutral'] {
|
|
15
|
-
--
|
|
16
|
-
--astryx-font-size-
|
|
17
|
-
--
|
|
18
|
-
--astryx-font-size-
|
|
19
|
-
--
|
|
20
|
-
--astryx-font-size-
|
|
21
|
-
--
|
|
22
|
-
--astryx-font-size-
|
|
23
|
-
--
|
|
24
|
-
--astryx-font-size-
|
|
25
|
-
--
|
|
15
|
+
--_scaled-font-size-4xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
|
|
16
|
+
--astryx-font-size-4xs: var(--_scaled-font-size-4xs);
|
|
17
|
+
--_scaled-font-size-3xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
|
|
18
|
+
--astryx-font-size-3xs: var(--_scaled-font-size-3xs);
|
|
19
|
+
--_scaled-font-size-2xs: min(calc(0.625rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
|
|
20
|
+
--astryx-font-size-2xs: var(--_scaled-font-size-2xs);
|
|
21
|
+
--_scaled-font-size-xs: min(calc(0.75rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
|
|
22
|
+
--astryx-font-size-xs: var(--_scaled-font-size-xs);
|
|
23
|
+
--_scaled-font-size-sm: min(calc(0.875rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
|
|
24
|
+
--astryx-font-size-sm: var(--_scaled-font-size-sm);
|
|
25
|
+
--_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
|
|
26
|
+
--astryx-font-size-base: var(--_scaled-font-size-base);
|
|
27
|
+
--_scaled-font-size-lg: min(calc(1.1875rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
|
|
28
|
+
--astryx-font-size-lg: var(--_scaled-font-size-lg);
|
|
29
|
+
--_scaled-font-size-xl: min(calc(1.375rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
|
|
30
|
+
--astryx-font-size-xl: var(--_scaled-font-size-xl);
|
|
31
|
+
--_scaled-font-size-2xl: min(calc(1.625rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
|
|
32
|
+
--astryx-font-size-2xl: var(--_scaled-font-size-2xl);
|
|
33
|
+
--_scaled-font-size-3xl: min(calc(1.875rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
|
|
34
|
+
--astryx-font-size-3xl: var(--_scaled-font-size-3xl);
|
|
35
|
+
--_scaled-font-size-4xl: min(calc(2.25rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
|
|
36
|
+
--astryx-font-size-4xl: var(--_scaled-font-size-4xl);
|
|
26
37
|
|
|
27
38
|
--astryx-text-heading-1-leading: 1.3846;
|
|
28
39
|
--astryx-text-heading-2-leading: 1.4545;
|
package/neutral/progress-bar.css
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
--astryx-progress-bar-track-height-lg: 12px;
|
|
9
9
|
--astryx-progress-bar-track-background: var(--astryx-color-border-emphasized);
|
|
10
10
|
--astryx-progress-bar-fill-background: var(--astryx-color-accent);
|
|
11
|
-
--astryx-progress-bar-success-fill: var(--astryx-
|
|
12
|
-
--astryx-progress-bar-warning-fill: var(--astryx-
|
|
13
|
-
--astryx-progress-bar-error-fill: var(--astryx-
|
|
14
|
-
--astryx-progress-bar-info-fill: var(--astryx-
|
|
11
|
+
--astryx-progress-bar-success-fill: var(--astryx-color-success);
|
|
12
|
+
--astryx-progress-bar-warning-fill: var(--astryx-color-warning);
|
|
13
|
+
--astryx-progress-bar-error-fill: var(--astryx-color-error);
|
|
14
|
+
--astryx-progress-bar-info-fill: var(--astryx-color-info);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
* sides, so the padding change above does not make the control taller.
|
|
26
26
|
*/
|
|
27
27
|
@layer astryx.overrides {
|
|
28
|
-
:root .astryx-segmented-control-item[data-size='sm'],
|
|
28
|
+
:where(:root) .astryx-segmented-control-item[data-size='sm']:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
29
29
|
[data-astryx-theme='neutral'] .astryx-segmented-control-item[data-size='sm'] {
|
|
30
30
|
height: calc(var(--astryx-size-element-sm) - 8px);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
:root .astryx-segmented-control-item[data-size='md'],
|
|
33
|
+
:where(:root) .astryx-segmented-control-item[data-size='md']:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
34
34
|
[data-astryx-theme='neutral'] .astryx-segmented-control-item[data-size='md'] {
|
|
35
35
|
height: calc(var(--astryx-size-element-md) - 8px);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
:root .astryx-segmented-control-item[data-size='lg'],
|
|
38
|
+
:where(:root) .astryx-segmented-control-item[data-size='lg']:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
39
39
|
[data-astryx-theme='neutral'] .astryx-segmented-control-item[data-size='lg'] {
|
|
40
40
|
height: calc(var(--astryx-size-element-lg) - 8px);
|
|
41
41
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.overrides {
|
|
4
|
+
/* 选中的行、树节点和单选项底下有一层选中填充,次要文字退一档才够 4.5:1。 */
|
|
5
|
+
:where(:root) .astryx-item[data-selected='true']:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
6
|
+
[data-astryx-theme='neutral'] .astryx-item[data-selected='true'],
|
|
7
|
+
:where(:root) .astryx-tree-list__content[data-selected='true']:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
8
|
+
[data-astryx-theme='neutral'] .astryx-tree-list__content[data-selected='true'],
|
|
9
|
+
:where(:root) .astryx-radio:has(.astryx-radio-native:checked):not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
10
|
+
[data-astryx-theme='neutral'] .astryx-radio:has(.astryx-radio-native:checked),
|
|
11
|
+
:where(:root) .astryx-file-input[data-mode='dropzone']:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
12
|
+
[data-astryx-theme='neutral'] .astryx-file-input[data-mode='dropzone'] {
|
|
13
|
+
--astryx-color-text-secondary: light-dark(#474747, #c6c6c6);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* 数字角标是同一层填充上的小药丸。 */
|
|
17
|
+
:where(:root) .astryx-citation[data-variant='number']:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
18
|
+
[data-astryx-theme='neutral'] .astryx-citation[data-variant='number'] {
|
|
19
|
+
--astryx-citation-foreground: light-dark(#474747, #c6c6c6);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* 未选中的分段标签落在半透明轨道上,暗色下次要文字退一档。 */
|
|
23
|
+
:where(:root) .astryx-segmented-control-item:not(:where([data-astryx-theme]:not([data-astryx-theme='neutral']) *)),
|
|
24
|
+
[data-astryx-theme='neutral'] .astryx-segmented-control-item {
|
|
25
|
+
--astryx-segmented-control-item-foreground: light-dark(#474747, #c6c6c6);
|
|
26
|
+
}
|
|
27
|
+
}
|
package/neutral/slider.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@layer astryx.tokens {
|
|
3
3
|
:root,
|
|
4
4
|
[data-astryx-theme='neutral'] {
|
|
5
|
-
--astryx-slider-track: var(--astryx-color-
|
|
5
|
+
--astryx-slider-track: var(--astryx-color-track);
|
|
6
6
|
--astryx-slider-accent: var(--astryx-color-accent);
|
|
7
7
|
--astryx-slider-focus: var(--astryx-color-accent);
|
|
8
8
|
--astryx-slider-height: 160px;
|
package/neutral/status-dot.css
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
:root,
|
|
5
5
|
[data-astryx-theme='neutral'] {
|
|
6
6
|
--astryx-status-dot-neutral-background: var(--astryx-color-icon-secondary);
|
|
7
|
-
--astryx-status-dot-info-background: var(--astryx-
|
|
8
|
-
|
|
9
|
-
--astryx-status-dot-
|
|
10
|
-
--astryx-status-dot-
|
|
7
|
+
--astryx-status-dot-info-background: var(--astryx-color-info);
|
|
8
|
+
/* 同原版 StatusDot:状态点用图标色,比底色深一档,在浅色底上也看得清。 */
|
|
9
|
+
--astryx-status-dot-success-background: var(--astryx-color-icon-success);
|
|
10
|
+
--astryx-status-dot-warning-background: var(--astryx-color-icon-warning);
|
|
11
|
+
--astryx-status-dot-error-background: var(--astryx-color-icon-error);
|
|
11
12
|
}
|
|
12
13
|
}
|
package/neutral/token.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:root,
|
|
5
5
|
[data-astryx-theme='neutral'] {
|
|
6
6
|
--astryx-token-default-background: var(--astryx-badge-neutral-background);
|
|
7
|
-
--astryx-token-default-foreground: var(--astryx-
|
|
7
|
+
--astryx-token-default-foreground: var(--astryx-color-text-primary);
|
|
8
8
|
--astryx-token-gray-background: var(--astryx-badge-neutral-background);
|
|
9
9
|
--astryx-token-gray-foreground: var(--astryx-badge-neutral-foreground);
|
|
10
10
|
--astryx-token-blue-background: var(--astryx-badge-blue-background);
|
package/neutral.css
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
@import './neutral/radio.css';
|
|
42
42
|
@import './neutral/section.css';
|
|
43
43
|
@import './neutral/segmented-control.css';
|
|
44
|
+
@import './neutral/selected-text.css';
|
|
44
45
|
@import './neutral/side-nav.css';
|
|
45
46
|
@import './neutral/slider.css';
|
|
46
47
|
@import './neutral/spinner.css';
|
package/package.json
CHANGED
package/stone/banner.css
CHANGED
|
@@ -1,44 +1,26 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
-
@layer astryx.tokens {
|
|
3
|
-
[data-astryx-theme='stone'] {
|
|
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-background-red);
|
|
7
|
-
--astryx-banner-error-foreground: var(--astryx-color-text-red);
|
|
8
|
-
--astryx-banner-warning-background: var(--astryx-color-background-yellow);
|
|
9
|
-
--astryx-banner-warning-foreground: var(--astryx-color-text-yellow);
|
|
10
|
-
--astryx-banner-success-background: var(--astryx-color-background-green);
|
|
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 {
|
|
21
7
|
[data-astryx-theme='stone'] .astryx-banner[data-status='info'] {
|
|
22
|
-
--astryx-color-
|
|
23
|
-
--astryx-color-
|
|
24
|
-
--astryx-color-accent: var(--astryx-color-text-blue);
|
|
8
|
+
--astryx-color-info-muted: var(--astryx-color-background-blue);
|
|
9
|
+
--astryx-color-on-info-muted: var(--astryx-color-text-blue);
|
|
25
10
|
}
|
|
26
11
|
|
|
27
12
|
[data-astryx-theme='stone'] .astryx-banner[data-status='success'] {
|
|
28
|
-
--astryx-color-
|
|
29
|
-
--astryx-color-
|
|
30
|
-
--astryx-color-success: var(--astryx-color-text-green);
|
|
13
|
+
--astryx-color-success-muted: var(--astryx-color-background-green);
|
|
14
|
+
--astryx-color-on-success-muted: var(--astryx-color-text-green);
|
|
31
15
|
}
|
|
32
16
|
|
|
33
17
|
[data-astryx-theme='stone'] .astryx-banner[data-status='warning'] {
|
|
34
|
-
--astryx-color-
|
|
35
|
-
--astryx-color-
|
|
36
|
-
--astryx-color-warning: var(--astryx-color-text-yellow);
|
|
18
|
+
--astryx-color-warning-muted: var(--astryx-color-background-yellow);
|
|
19
|
+
--astryx-color-on-warning-muted: var(--astryx-color-text-yellow);
|
|
37
20
|
}
|
|
38
21
|
|
|
39
22
|
[data-astryx-theme='stone'] .astryx-banner[data-status='error'] {
|
|
40
|
-
--astryx-color-
|
|
41
|
-
--astryx-color-
|
|
42
|
-
--astryx-color-error: var(--astryx-color-text-red);
|
|
23
|
+
--astryx-color-error-muted: var(--astryx-color-background-red);
|
|
24
|
+
--astryx-color-on-error-muted: var(--astryx-color-text-red);
|
|
43
25
|
}
|
|
44
26
|
}
|
package/stone/base.css
CHANGED
|
@@ -17,103 +17,123 @@
|
|
|
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
|
-
--astryx-color-accent: light-dark(#25252a, #
|
|
23
|
-
--astryx-color-accent-muted: light-dark(#25252a14, #
|
|
21
|
+
--astryx-color-accent: light-dark(#25252a, #f0f0f9);
|
|
22
|
+
--astryx-color-accent-muted: light-dark(#25252a14, #f0f0f920);
|
|
24
23
|
--astryx-color-on-accent: light-dark(#ffffff, #25252a);
|
|
25
|
-
--astryx-color-neutral: light-dark(#25252a0f, #
|
|
26
|
-
--astryx-color-background-surface: light-dark(#ffffff, #
|
|
27
|
-
--astryx-color-background-body: light-dark(#
|
|
28
|
-
--astryx-color-overlay: light-dark(#25252a80, #
|
|
29
|
-
--astryx-color-overlay-hover: light-dark(#25252a0d, #
|
|
30
|
-
--astryx-color-overlay-pressed: light-dark(#25252a1a, #
|
|
31
|
-
--astryx-color-background-muted: light-dark(#e2e2e8, #
|
|
32
|
-
|
|
33
|
-
--astryx-color-text-primary: light-dark(#25252a, #
|
|
34
|
-
--astryx-color-text-secondary: light-dark(#
|
|
35
|
-
--astryx-color-text-disabled: light-dark(#
|
|
36
|
-
--astryx-color-text-accent: light-dark(#25252a, #
|
|
24
|
+
--astryx-color-neutral: light-dark(#25252a0f, #f0f0f91a);
|
|
25
|
+
--astryx-color-background-surface: light-dark(#ffffff, #1b1b21);
|
|
26
|
+
--astryx-color-background-body: light-dark(#f0f0f7, #101018);
|
|
27
|
+
--astryx-color-overlay: light-dark(#25252a80, #25252acc);
|
|
28
|
+
--astryx-color-overlay-hover: light-dark(#25252a0d, #f0f0f90d);
|
|
29
|
+
--astryx-color-overlay-pressed: light-dark(#25252a1a, #f0f0f91a);
|
|
30
|
+
--astryx-color-background-muted: light-dark(#e2e2e8, #3a3a42);
|
|
31
|
+
|
|
32
|
+
--astryx-color-text-primary: light-dark(#25252a, #f0f0f9);
|
|
33
|
+
--astryx-color-text-secondary: light-dark(#5f5f64, #ababb3);
|
|
34
|
+
--astryx-color-text-disabled: light-dark(#d4d3dd, #5e5e64);
|
|
35
|
+
--astryx-color-text-accent: light-dark(#25252a, #f0f0f9);
|
|
37
36
|
--astryx-color-on-dark: #FFFFFF;
|
|
38
|
-
--astryx-color-on-light: light-dark(#25252a, #
|
|
37
|
+
--astryx-color-on-light: light-dark(#25252a, #25252a);
|
|
39
38
|
|
|
40
|
-
--astryx-color-icon-accent: light-dark(#25252a, #
|
|
41
|
-
--astryx-color-icon-primary: light-dark(#25252a, #
|
|
42
|
-
--astryx-color-icon-secondary: light-dark(#
|
|
43
|
-
--astryx-color-icon-disabled: light-dark(#
|
|
39
|
+
--astryx-color-icon-accent: light-dark(#25252a, #f0f0f9);
|
|
40
|
+
--astryx-color-icon-primary: light-dark(#25252a, #f0f0f9);
|
|
41
|
+
--astryx-color-icon-secondary: light-dark(#848489, #9d9ea5);
|
|
42
|
+
--astryx-color-icon-disabled: light-dark(#d4d3dd, #5e5e64);
|
|
44
43
|
|
|
45
|
-
--astryx-color-background-card: light-dark(#
|
|
46
|
-
--astryx-color-background-popover: light-dark(#ffffff, #
|
|
47
|
-
--astryx-color-background-inverted: light-dark(#25252a, #
|
|
44
|
+
--astryx-color-background-card: light-dark(#ffffff, #25252a);
|
|
45
|
+
--astryx-color-background-popover: light-dark(#ffffff, #302f36);
|
|
46
|
+
--astryx-color-background-inverted: light-dark(#25252a, #f0f0f9);
|
|
48
47
|
--astryx-color-background-error-inverted: light-dark(#aa071e, #e3193b);
|
|
49
48
|
|
|
50
|
-
--astryx-color-success: light-dark(#
|
|
51
|
-
--astryx-color-success-muted: light-dark(#
|
|
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(#f4e1b7, #
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
--astryx-color-
|
|
61
|
-
--astryx-color-
|
|
62
|
-
|
|
63
|
-
--astryx-color-
|
|
49
|
+
--astryx-color-success: light-dark(#354f31, #b3d0af);
|
|
50
|
+
--astryx-color-success-muted: light-dark(#d2eccf, #b3d0af);
|
|
51
|
+
--astryx-color-on-success: light-dark(#ffffff, #1b1b21);
|
|
52
|
+
--astryx-color-error: light-dark(#603c37, #e0bdb8);
|
|
53
|
+
--astryx-color-error-muted: light-dark(#fbdad4, #e0bdb8);
|
|
54
|
+
--astryx-color-on-error: light-dark(#ffffff, #1b1b21);
|
|
55
|
+
--astryx-color-warning: light-dark(#524818, #d9c794);
|
|
56
|
+
--astryx-color-warning-muted: light-dark(#f4e1b7, #d9c794);
|
|
57
|
+
|
|
58
|
+
/* Status roles: info 填充、状态文字、图标、边框和浅底上的文字(上游 INV11 / INV17)。 */
|
|
59
|
+
--astryx-color-info: light-dark(#516074, #9aadc7);
|
|
60
|
+
--astryx-color-info-muted: light-dark(#d3e4fc, #2c3c52);
|
|
61
|
+
--astryx-color-on-info: light-dark(#ffffff, #25252a);
|
|
62
|
+
--astryx-color-text-info: light-dark(#344861, #d5e4f8);
|
|
63
|
+
--astryx-color-text-success: light-dark(#354f31, #d5e9d2);
|
|
64
|
+
--astryx-color-text-warning: light-dark(#524818, #f1e1b9);
|
|
65
|
+
--astryx-color-text-error: light-dark(#603c37, #f7dbd7);
|
|
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: light-dark(#344861, #d5e4f8);
|
|
75
|
+
--astryx-color-on-success-muted: light-dark(#354f31, #2f412c);
|
|
76
|
+
--astryx-color-on-warning-muted: light-dark(#524818, #433b1b);
|
|
77
|
+
--astryx-color-on-error-muted: light-dark(#603c37, #50332e);
|
|
78
|
+
--astryx-color-on-warning: light-dark(#ffffff, #1b1b21);
|
|
79
|
+
|
|
80
|
+
--astryx-color-border: light-dark(#e2e2e8, #f0f0f91a);
|
|
81
|
+
--astryx-color-border-emphasized: light-dark(#848489, #5e5e64);
|
|
82
|
+
|
|
83
|
+
--astryx-color-skeleton: light-dark(#d4d3dd, #5e5e64);
|
|
64
84
|
--astryx-color-track: light-dark(#ccd3db, #5a5e66);
|
|
65
85
|
--astryx-color-shadow: light-dark(#25252a1a, #0000004d);
|
|
66
|
-
--astryx-color-tint-hover: light-dark(
|
|
67
|
-
|
|
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(#
|
|
72
|
-
|
|
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(#
|
|
77
|
-
|
|
78
|
-
--astryx-color-background-gray: light-dark(#e2e2e8, #
|
|
79
|
-
--astryx-color-border-gray: light-dark(#
|
|
80
|
-
--astryx-color-icon-gray: light-dark(#
|
|
81
|
-
--astryx-color-text-gray: light-dark(#
|
|
82
|
-
|
|
83
|
-
--astryx-color-background-green: light-dark(#
|
|
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(#ffdcbb, #
|
|
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(#f4e1b7, #
|
|
114
|
-
--astryx-color-border-yellow: light-dark(#
|
|
115
|
-
--astryx-color-icon-yellow: light-dark(#
|
|
116
|
-
--astryx-color-text-yellow: light-dark(#
|
|
86
|
+
--astryx-color-tint-hover: light-dark(#000000, #ffffff);
|
|
87
|
+
|
|
88
|
+
--astryx-color-background-blue: light-dark(#d3e4fc, #445469);
|
|
89
|
+
--astryx-color-border-blue: light-dark(#c2d6f1, #2c3c52);
|
|
90
|
+
--astryx-color-icon-blue: light-dark(#344861, #d5e4f8);
|
|
91
|
+
--astryx-color-text-blue: light-dark(#344861, #d5e4f8);
|
|
92
|
+
|
|
93
|
+
--astryx-color-background-cyan: light-dark(#cbe9f0, #345761);
|
|
94
|
+
--astryx-color-border-cyan: light-dark(#badbe4, #234048);
|
|
95
|
+
--astryx-color-icon-cyan: light-dark(#264d57, #cfe8ee);
|
|
96
|
+
--astryx-color-text-cyan: light-dark(#264d57, #cfe8ee);
|
|
97
|
+
|
|
98
|
+
--astryx-color-background-gray: light-dark(#e2e2e8, #525159);
|
|
99
|
+
--astryx-color-border-gray: light-dark(#d4d3dd, #3a3a42);
|
|
100
|
+
--astryx-color-icon-gray: light-dark(#46464e, #e2e2e8);
|
|
101
|
+
--astryx-color-text-gray: light-dark(#46464e, #e2e2e8);
|
|
102
|
+
|
|
103
|
+
--astryx-color-background-green: light-dark(#d2eccf, #3e5d38);
|
|
104
|
+
--astryx-color-border-green: light-dark(#bfdfbb, #2f412c);
|
|
105
|
+
--astryx-color-icon-green: light-dark(#354f31, #d5e9d2);
|
|
106
|
+
--astryx-color-text-green: light-dark(#354f31, #d5e9d2);
|
|
107
|
+
|
|
108
|
+
--astryx-color-background-orange: light-dark(#ffdcbb, #684c34);
|
|
109
|
+
--astryx-color-border-orange: light-dark(#f2cdaa, #4e3522);
|
|
110
|
+
--astryx-color-icon-orange: light-dark(#5e3f27, #ffdcbb);
|
|
111
|
+
--astryx-color-text-orange: light-dark(#5e3f27, #ffdcbb);
|
|
112
|
+
|
|
113
|
+
--astryx-color-background-pink: light-dark(#f5d9ea, #624a59);
|
|
114
|
+
--astryx-color-border-pink: light-dark(#e9cadc, #4b3242);
|
|
115
|
+
--astryx-color-icon-pink: light-dark(#5a3c4f, #f2dbe8);
|
|
116
|
+
--astryx-color-text-pink: light-dark(#5a3c4f, #f2dbe8);
|
|
117
|
+
|
|
118
|
+
--astryx-color-background-purple: light-dark(#e7def5, #574e64);
|
|
119
|
+
--astryx-color-border-purple: light-dark(#d9cfea, #3f374c);
|
|
120
|
+
--astryx-color-icon-purple: light-dark(#4c405b, #e6def3);
|
|
121
|
+
--astryx-color-text-purple: light-dark(#4c405b, #e6def3);
|
|
122
|
+
|
|
123
|
+
--astryx-color-background-red: light-dark(#fbdad4, #684a45);
|
|
124
|
+
--astryx-color-border-red: light-dark(#f0cac4, #50332e);
|
|
125
|
+
--astryx-color-icon-red: light-dark(#603c37, #f7dbd7);
|
|
126
|
+
--astryx-color-text-red: light-dark(#603c37, #f7dbd7);
|
|
127
|
+
|
|
128
|
+
--astryx-color-background-teal: light-dark(#d4e8e1, #3a5b50);
|
|
129
|
+
--astryx-color-border-teal: light-dark(#c3dbd2, #274239);
|
|
130
|
+
--astryx-color-icon-teal: light-dark(#2c4f44, #d6e7e1);
|
|
131
|
+
--astryx-color-text-teal: light-dark(#2c4f44, #d6e7e1);
|
|
132
|
+
|
|
133
|
+
--astryx-color-background-yellow: light-dark(#f4e1b7, #615620);
|
|
134
|
+
--astryx-color-border-yellow: light-dark(#e7d3a4, #433b1b);
|
|
135
|
+
--astryx-color-icon-yellow: light-dark(#524818, #f1e1b9);
|
|
136
|
+
--astryx-color-text-yellow: light-dark(#524818, #f1e1b9);
|
|
117
137
|
|
|
118
138
|
--astryx-spacing-0: 0rem;
|
|
119
139
|
--astryx-spacing-0-5: 0.125rem;
|
|
@@ -150,14 +170,14 @@
|
|
|
150
170
|
--astryx-radius-chat: 28px;
|
|
151
171
|
--astryx-radius-full: 9999px;
|
|
152
172
|
|
|
153
|
-
--astryx-shadow-low: 0 2px 4px #
|
|
154
|
-
--astryx-shadow-med: 0 2px 4px #
|
|
155
|
-
--astryx-shadow-high: 0 4px 6px #
|
|
156
|
-
--astryx-shadow-inset-hover: inset
|
|
157
|
-
--astryx-shadow-inset-selected: inset
|
|
158
|
-
--astryx-shadow-inset-success: inset
|
|
159
|
-
--astryx-shadow-inset-warning: inset
|
|
160
|
-
--astryx-shadow-inset-error: inset
|
|
173
|
+
--astryx-shadow-low: 0 2px 4px #25252a0d, 0 4px 8px #25252a1a;
|
|
174
|
+
--astryx-shadow-med: 0 2px 4px #25252a0d, 0 4px 12px #25252a1a;
|
|
175
|
+
--astryx-shadow-high: 0 4px 6px #25252a1a, 0 12px 24px #25252a26;
|
|
176
|
+
--astryx-shadow-inset-hover: inset 0 0 0 2px #25252a30;
|
|
177
|
+
--astryx-shadow-inset-selected: inset 0 0 0 2px #25252a50;
|
|
178
|
+
--astryx-shadow-inset-success: inset 0 0 0 2px #84848930;
|
|
179
|
+
--astryx-shadow-inset-warning: inset 0 0 0 2px #84848930;
|
|
180
|
+
--astryx-shadow-inset-error: inset 0 0 0 2px #84848930;
|
|
161
181
|
|
|
162
182
|
--astryx-duration-fast-min: 95ms;
|
|
163
183
|
--astryx-duration-fast: 125ms;
|
|
@@ -168,25 +188,41 @@
|
|
|
168
188
|
--astryx-duration-slow-min: 525ms;
|
|
169
189
|
--astryx-duration-slow: 700ms;
|
|
170
190
|
--astryx-duration-slow-max: 935ms;
|
|
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: Figtree, -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: Montserrat, 'Figtree', -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.375rem * 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.4375rem * 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.5625rem * 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.6875rem * 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(0.875rem * 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.125rem * 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.375rem * 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.6875rem * 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.125rem * 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(2.6875rem * 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.3125rem * 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.4286;
|
|
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.4545;
|
|
231
267
|
|
package/stone/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);
|