@astryx-vue/themes 0.7.21 → 0.7.23
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/gothic/text.css
CHANGED
|
@@ -22,10 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
[data-astryx-theme='gothic'] .astryx-text--type-display-1,
|
|
24
24
|
[data-astryx-theme='gothic'] .astryx-text--type-display-2,
|
|
25
|
-
[data-astryx-theme='gothic'] .astryx-text--type-display-3
|
|
26
|
-
[data-astryx-theme='gothic'] .astryx-heading--type-display-1,
|
|
27
|
-
[data-astryx-theme='gothic'] .astryx-heading--type-display-2,
|
|
28
|
-
[data-astryx-theme='gothic'] .astryx-heading--type-display-3 {
|
|
25
|
+
[data-astryx-theme='gothic'] .astryx-text--type-display-3 {
|
|
29
26
|
font-family: 'Manufacturing Consent', 'UnifrakturMaguntia', 'Old English Text MT', serif;
|
|
30
27
|
}
|
|
31
28
|
}
|
package/gothic/token.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@layer astryx.tokens {
|
|
4
4
|
[data-astryx-theme='gothic'] {
|
|
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/gothic.css
CHANGED
package/matcha/badge.css
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
[data-astryx-theme='matcha'] {
|
|
5
5
|
--astryx-badge-neutral-background: var(--astryx-color-background-gray);
|
|
6
6
|
--astryx-badge-neutral-foreground: var(--astryx-color-text-gray);
|
|
7
|
-
--astryx-badge-info-background: var(--astryx-color-
|
|
8
|
-
--astryx-badge-info-foreground: var(--astryx-color-
|
|
7
|
+
--astryx-badge-info-background: var(--astryx-color-info);
|
|
8
|
+
--astryx-badge-info-foreground: var(--astryx-color-on-info);
|
|
9
9
|
--astryx-badge-success-background: var(--astryx-color-success);
|
|
10
10
|
--astryx-badge-success-foreground: var(--astryx-color-on-success);
|
|
11
11
|
--astryx-badge-warning-background: var(--astryx-color-warning);
|
package/matcha/banner.css
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
}
|
|
2
|
+
|
|
3
|
+
/* 上游这套主题不覆盖 banner:状态条直接使用核心的 --astryx-color-*-muted 角色。 */
|
package/matcha/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(#3E481D, #C0CBA9);
|
|
23
22
|
--astryx-color-accent-muted: light-dark(#3E481D14, #C0CBA920);
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
--astryx-color-background-muted: light-dark(#F0F0E0, #3E481D);
|
|
32
31
|
|
|
33
32
|
--astryx-color-text-primary: light-dark(#3E481D, #C0CBA9);
|
|
34
|
-
--astryx-color-text-secondary: light-dark(#
|
|
33
|
+
--astryx-color-text-secondary: light-dark(#5a6b2a, #a8bf6a);
|
|
35
34
|
--astryx-color-text-disabled: light-dark(#C0CBA9, #5a6440);
|
|
36
35
|
--astryx-color-text-accent: light-dark(#3E481D, #C0CBA9);
|
|
37
36
|
--astryx-color-on-dark: #FFFFFF;
|
|
@@ -49,12 +48,33 @@
|
|
|
49
48
|
|
|
50
49
|
--astryx-color-success: light-dark(#4D9900, #6dbf2a);
|
|
51
50
|
--astryx-color-success-muted: light-dark(#4D990020, #6dbf2a20);
|
|
52
|
-
--astryx-color-on-success:
|
|
51
|
+
--astryx-color-on-success: #12140e;
|
|
53
52
|
--astryx-color-error: light-dark(#FD0000, #ff5c5c);
|
|
54
53
|
--astryx-color-error-muted: light-dark(#FD000020, #ff5c5c20);
|
|
55
|
-
--astryx-color-on-error:
|
|
56
|
-
--astryx-color-warning: light-dark(#
|
|
57
|
-
--astryx-color-warning-muted: light-dark(#
|
|
54
|
+
--astryx-color-on-error: #12140e;
|
|
55
|
+
--astryx-color-warning: light-dark(#f2c000, #f6d066);
|
|
56
|
+
--astryx-color-warning-muted: light-dark(#f2c00020, #f6d06620);
|
|
57
|
+
|
|
58
|
+
/* Status roles: info 填充、状态文字、图标、边框和浅底上的文字(上游 INV11 / INV17)。 */
|
|
59
|
+
--astryx-color-info: light-dark(#3a5e8c, #a7c9e3);
|
|
60
|
+
--astryx-color-info-muted: var(--astryx-color-background-blue);
|
|
61
|
+
--astryx-color-on-info: light-dark(#FFFFFF, #3E481D);
|
|
62
|
+
--astryx-color-text-info: light-dark(#2e4a6e, #8dbce0);
|
|
63
|
+
--astryx-color-text-success: light-dark(#3d7a00, #80d43a);
|
|
64
|
+
--astryx-color-text-warning: light-dark(#836700, #ffe08b);
|
|
65
|
+
--astryx-color-text-error: light-dark(#cc0000, #ff7a7a);
|
|
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(#2e4a6e, #8dbce0);
|
|
75
|
+
--astryx-color-on-success-muted: light-dark(#346a00, #80d43a);
|
|
76
|
+
--astryx-color-on-warning-muted: light-dark(#755b00, #ffe08b);
|
|
77
|
+
--astryx-color-on-error-muted: light-dark(#b10000, #ff7a7a);
|
|
58
78
|
--astryx-color-on-warning: light-dark(#3E481D, #3E481D);
|
|
59
79
|
|
|
60
80
|
--astryx-color-border: light-dark(#DCE3CE, #C0CBA91A);
|
|
@@ -63,7 +83,7 @@
|
|
|
63
83
|
--astryx-color-skeleton: light-dark(#C0CBA9, #5a6440);
|
|
64
84
|
--astryx-color-track: light-dark(#ccd3db, #5a5e66);
|
|
65
85
|
--astryx-color-shadow: light-dark(#3E481D1A, #0000004D);
|
|
66
|
-
--astryx-color-tint-hover: light-dark(
|
|
86
|
+
--astryx-color-tint-hover: light-dark(#000000, #ffffff);
|
|
67
87
|
|
|
68
88
|
--astryx-color-background-blue: light-dark(#3a5e8c33, #3a5e8c33);
|
|
69
89
|
--astryx-color-border-blue: light-dark(#3a5e8c, #7ba8d4);
|
|
@@ -83,17 +103,17 @@
|
|
|
83
103
|
--astryx-color-background-green: light-dark(#4D990033, #6dbf2a33);
|
|
84
104
|
--astryx-color-border-green: light-dark(#4D9900, #6dbf2a);
|
|
85
105
|
--astryx-color-icon-green: light-dark(#4D9900, #6dbf2a);
|
|
86
|
-
--astryx-color-text-green: light-dark(#
|
|
106
|
+
--astryx-color-text-green: light-dark(#346a00, #80d43a);
|
|
87
107
|
|
|
88
108
|
--astryx-color-background-orange: light-dark(#c4762033, #d4903a33);
|
|
89
109
|
--astryx-color-border-orange: light-dark(#c47620, #d4903a);
|
|
90
110
|
--astryx-color-icon-orange: light-dark(#c47620, #d4903a);
|
|
91
|
-
--astryx-color-text-orange: light-dark(#
|
|
111
|
+
--astryx-color-text-orange: light-dark(#6a5031, #e0a04a);
|
|
92
112
|
|
|
93
113
|
--astryx-color-background-pink: light-dark(#c44a7033, #e07a9a33);
|
|
94
114
|
--astryx-color-border-pink: light-dark(#c44a70, #e07a9a);
|
|
95
115
|
--astryx-color-icon-pink: light-dark(#c44a70, #e07a9a);
|
|
96
|
-
--astryx-color-text-pink: light-dark(#
|
|
116
|
+
--astryx-color-text-pink: light-dark(#8c3a3a, #f08aaa);
|
|
97
117
|
|
|
98
118
|
--astryx-color-background-purple: light-dark(#6b4a8c33, #b08ed433);
|
|
99
119
|
--astryx-color-border-purple: light-dark(#6b4a8c, #b08ed4);
|
|
@@ -103,17 +123,17 @@
|
|
|
103
123
|
--astryx-color-background-red: light-dark(#FD000033, #ff5c5c33);
|
|
104
124
|
--astryx-color-border-red: light-dark(#FD0000, #ff5c5c);
|
|
105
125
|
--astryx-color-icon-red: light-dark(#FD0000, #ff5c5c);
|
|
106
|
-
--astryx-color-text-red: light-dark(#
|
|
126
|
+
--astryx-color-text-red: light-dark(#b10000, #ff7a7a);
|
|
107
127
|
|
|
108
128
|
--astryx-color-background-teal: light-dark(#2e6b5a33, #5ab89833);
|
|
109
129
|
--astryx-color-border-teal: light-dark(#2e6b5a, #5ab898);
|
|
110
130
|
--astryx-color-icon-teal: light-dark(#2e6b5a, #5ab898);
|
|
111
131
|
--astryx-color-text-teal: light-dark(#245546, #6ccaaa);
|
|
112
132
|
|
|
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(#
|
|
133
|
+
--astryx-color-background-yellow: light-dark(#f2c00033, #f6d06633);
|
|
134
|
+
--astryx-color-border-yellow: light-dark(#f2c000, #f6d066);
|
|
135
|
+
--astryx-color-icon-yellow: light-dark(#f2c000, #f6d066);
|
|
136
|
+
--astryx-color-text-yellow: light-dark(#755b00, #ffe08b);
|
|
117
137
|
|
|
118
138
|
--astryx-spacing-0: 0rem;
|
|
119
139
|
--astryx-spacing-0-5: 0.1875rem;
|
|
@@ -142,7 +162,7 @@
|
|
|
142
162
|
--astryx-focus-outline-color: var(--astryx-color-accent);
|
|
143
163
|
--astryx-focus-outline-offset: 3px;
|
|
144
164
|
|
|
145
|
-
--astryx-radius-none:
|
|
165
|
+
--astryx-radius-none: 0px;
|
|
146
166
|
--astryx-radius-inner: 6px;
|
|
147
167
|
--astryx-radius-element: 12px;
|
|
148
168
|
--astryx-radius-container: 18px;
|
|
@@ -156,7 +176,7 @@
|
|
|
156
176
|
--astryx-shadow-inset-hover: inset 0px 0px 0px 2px #3E481D30;
|
|
157
177
|
--astryx-shadow-inset-selected: inset 0px 0px 0px 2px #3E481D50;
|
|
158
178
|
--astryx-shadow-inset-success: inset 0px 0px 0px 2px #4D990050;
|
|
159
|
-
--astryx-shadow-inset-warning: inset 0px 0px 0px 2px #
|
|
179
|
+
--astryx-shadow-inset-warning: inset 0px 0px 0px 2px #f2c00050;
|
|
160
180
|
--astryx-shadow-inset-error: inset 0px 0px 0px 2px #FD000050;
|
|
161
181
|
|
|
162
182
|
--astryx-duration-fast-min: 95ms;
|
|
@@ -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: 'DM Sans', -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: 'Playwrite US Trad', Georgia, 'Times New Roman', Times, 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);
|
package/matcha/button.css
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
--astryx-button-radius: var(--astryx-radius-full);
|
|
10
10
|
--astryx-button-ghost-background: transparent;
|
|
11
11
|
--astryx-button-ghost-foreground: var(--astryx-color-text-primary);
|
|
12
|
-
--astryx-button-destructive-background: var(--astryx-color-error
|
|
13
|
-
--astryx-button-destructive-foreground: var(--astryx-color-error);
|
|
12
|
+
--astryx-button-destructive-background: var(--astryx-color-error);
|
|
13
|
+
--astryx-button-destructive-foreground: var(--astryx-color-on-error);
|
|
14
14
|
--astryx-button-hover-overlay: var(--astryx-color-overlay-hover);
|
|
15
15
|
--astryx-button-pressed-overlay: var(--astryx-color-overlay-pressed);
|
|
16
16
|
--astryx-button-focus: var(--astryx-color-accent);
|
package/matcha/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/matcha/code.css
CHANGED
|
@@ -9,31 +9,31 @@
|
|
|
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(#f0f0e0, #1a1c14);
|
|
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
19
|
--astryx-code-syntax-keyword: light-dark(#5a6b2a, #a8bf6a);
|
|
20
|
-
--astryx-code-syntax-string: light-dark(#
|
|
21
|
-
--astryx-code-syntax-comment: light-dark(#
|
|
22
|
-
--astryx-code-syntax-number: light-dark(#
|
|
20
|
+
--astryx-code-syntax-string: light-dark(#2e6b5a, #6ccaaa);
|
|
21
|
+
--astryx-code-syntax-comment: light-dark(#5a6b2a, #7a894f);
|
|
22
|
+
--astryx-code-syntax-number: light-dark(#836700, #e0b318);
|
|
23
23
|
--astryx-code-syntax-function: light-dark(#3a5e8c, #7ba8d4);
|
|
24
24
|
--astryx-code-syntax-type: light-dark(#6b4a8c, #b08ed4);
|
|
25
25
|
--astryx-code-syntax-variable: light-dark(#3E481D, #C0CBA9);
|
|
26
|
-
--astryx-code-syntax-operator: light-dark(#
|
|
27
|
-
--astryx-code-syntax-constant: light-dark(#
|
|
26
|
+
--astryx-code-syntax-operator: light-dark(#5a6b2a, #94a468);
|
|
27
|
+
--astryx-code-syntax-constant: light-dark(#836700, #e0b318);
|
|
28
28
|
--astryx-code-syntax-tag: light-dark(#8c3a3a, #d47a7a);
|
|
29
|
-
--astryx-code-syntax-attribute: light-dark(#7c5e3a, #
|
|
30
|
-
--astryx-code-syntax-property: light-dark(#
|
|
31
|
-
--astryx-code-syntax-punctuation: light-dark(#
|
|
29
|
+
--astryx-code-syntax-attribute: light-dark(#7c5e3a, #d1a500);
|
|
30
|
+
--astryx-code-syntax-property: light-dark(#2e6b5a, #6ccaaa);
|
|
31
|
+
--astryx-code-syntax-punctuation: light-dark(#5a6b2a, #92af6a);
|
|
32
32
|
|
|
33
33
|
--astryx-code-syntax-added: color-mix(in srgb, var(--astryx-color-success-muted) 25%, transparent);
|
|
34
34
|
--astryx-code-syntax-removed: color-mix(in srgb, var(--astryx-color-error-muted) 25%, transparent);
|
|
35
|
-
--astryx-code-syntax-diff-header:
|
|
36
|
-
--astryx-code-syntax-added-marker: var(--astryx-
|
|
37
|
-
--astryx-code-syntax-removed-marker: var(--astryx-
|
|
35
|
+
--astryx-code-syntax-diff-header: transparent;
|
|
36
|
+
--astryx-code-syntax-added-marker: var(--astryx-code-syntax-punctuation);
|
|
37
|
+
--astryx-code-syntax-removed-marker: var(--astryx-code-syntax-punctuation);
|
|
38
38
|
}
|
|
39
39
|
}
|
package/matcha/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);
|
package/matcha/token.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@layer astryx.tokens {
|
|
4
4
|
[data-astryx-theme='matcha'] {
|
|
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/neutral/avatar.css
CHANGED
|
@@ -4,14 +4,15 @@
|
|
|
4
4
|
:root,
|
|
5
5
|
[data-astryx-theme='neutral'] {
|
|
6
6
|
--astryx-avatar-fallback-background: var(--astryx-color-neutral);
|
|
7
|
-
|
|
7
|
+
/* 同原版:首字母用主文字色,深色模式下次级文字色在中性底上对比度不够。 */
|
|
8
|
+
--astryx-avatar-fallback-foreground: var(--astryx-color-text-primary);
|
|
8
9
|
--astryx-avatar-status-dot-border-color: var(--astryx-color-background-surface);
|
|
9
10
|
|
|
10
11
|
--astryx-avatar-status-dot-neutral-background: var(--astryx-color-background-surface);
|
|
11
12
|
--astryx-avatar-status-dot-neutral-foreground: var(--astryx-color-icon-secondary);
|
|
12
|
-
--astryx-avatar-status-dot-info-background: var(--astryx-
|
|
13
|
-
--astryx-avatar-status-dot-success-background: var(--astryx-
|
|
13
|
+
--astryx-avatar-status-dot-info-background: var(--astryx-color-info);
|
|
14
|
+
--astryx-avatar-status-dot-success-background: var(--astryx-color-success);
|
|
14
15
|
--astryx-avatar-status-dot-warning-background: #ffce2f;
|
|
15
|
-
--astryx-avatar-status-dot-error-background: var(--astryx-
|
|
16
|
+
--astryx-avatar-status-dot-error-background: var(--astryx-color-error);
|
|
16
17
|
}
|
|
17
18
|
}
|
package/neutral/badge.css
CHANGED
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
@layer astryx.tokens {
|
|
4
4
|
:root,
|
|
5
5
|
[data-astryx-theme='neutral'] {
|
|
6
|
-
/* Status fills are
|
|
7
|
-
|
|
8
|
-
--astryx-badge-info-
|
|
9
|
-
--astryx-badge-
|
|
10
|
-
--astryx-badge-success-background: var(--astryx-theme-neutral-color-status-fill-success);
|
|
6
|
+
/* Status fills are the portable roles, as in upstream. */
|
|
7
|
+
--astryx-badge-info-background: var(--astryx-color-info);
|
|
8
|
+
--astryx-badge-info-foreground: var(--astryx-color-on-info);
|
|
9
|
+
--astryx-badge-success-background: var(--astryx-color-success);
|
|
11
10
|
--astryx-badge-success-foreground: var(--astryx-color-on-success);
|
|
12
|
-
--astryx-badge-warning-background: var(--astryx-
|
|
11
|
+
--astryx-badge-warning-background: var(--astryx-color-warning);
|
|
13
12
|
--astryx-badge-warning-foreground: var(--astryx-color-on-warning);
|
|
14
|
-
--astryx-badge-error-background: var(--astryx-
|
|
13
|
+
--astryx-badge-error-background: var(--astryx-color-error);
|
|
15
14
|
--astryx-badge-error-foreground: var(--astryx-color-on-error);
|
|
16
15
|
|
|
17
16
|
--astryx-badge-neutral-background: var(--astryx-color-background-gray);
|
package/neutral/banner.css
CHANGED
|
@@ -1,63 +1,3 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
:root,
|
|
5
|
-
[data-astryx-theme='neutral'] {
|
|
6
|
-
/* Surfaces. Info gets its own muted blue; the other statuses reuse the
|
|
7
|
-
semantic muted backgrounds. */
|
|
8
|
-
--astryx-banner-info-background: var(--astryx-theme-neutral-color-status-muted-accent);
|
|
9
|
-
--astryx-banner-error-background: var(--astryx-color-error-muted);
|
|
10
|
-
--astryx-banner-warning-background: var(--astryx-color-warning-muted);
|
|
11
|
-
--astryx-banner-success-background: var(--astryx-color-success-muted);
|
|
12
|
-
|
|
13
|
-
--astryx-banner-info-foreground: var(--astryx-color-text-blue);
|
|
14
|
-
--astryx-banner-error-foreground: var(--astryx-color-text-red);
|
|
15
|
-
--astryx-banner-warning-foreground: var(--astryx-color-text-yellow);
|
|
16
|
-
--astryx-banner-success-foreground: var(--astryx-color-text-green);
|
|
17
|
-
|
|
18
|
-
--astryx-banner-content-background: var(--astryx-color-background-card);
|
|
19
|
-
--astryx-banner-border: var(--astryx-color-border);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/*
|
|
24
|
-
* The banner header paints its title, description, icon and trailing actions
|
|
25
|
-
* from the shared surface tokens, so a status recolors them by re-pointing
|
|
26
|
-
* those tokens on the banner itself — the same tinting the upstream theme does.
|
|
27
|
-
*/
|
|
28
|
-
@layer astryx.overrides {
|
|
29
|
-
:root .astryx-banner,
|
|
30
|
-
[data-astryx-theme='neutral'] .astryx-banner {
|
|
31
|
-
--astryx-color-neutral: var(--astryx-theme-neutral-color-on-tint-neutral);
|
|
32
|
-
--astryx-color-overlay-hover: var(--astryx-theme-neutral-color-on-tint-overlay-hover);
|
|
33
|
-
--astryx-color-overlay-pressed: var(--astryx-theme-neutral-color-on-tint-overlay-pressed);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:root .astryx-banner[data-status='info'],
|
|
37
|
-
[data-astryx-theme='neutral'] .astryx-banner[data-status='info'] {
|
|
38
|
-
--astryx-color-text-primary: var(--astryx-color-text-blue);
|
|
39
|
-
--astryx-color-text-secondary: var(--astryx-color-text-blue);
|
|
40
|
-
--astryx-color-accent: var(--astryx-color-text-blue);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:root .astryx-banner[data-status='success'],
|
|
44
|
-
[data-astryx-theme='neutral'] .astryx-banner[data-status='success'] {
|
|
45
|
-
--astryx-color-text-primary: var(--astryx-color-text-green);
|
|
46
|
-
--astryx-color-text-secondary: var(--astryx-color-text-green);
|
|
47
|
-
--astryx-color-success: var(--astryx-color-text-green);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:root .astryx-banner[data-status='warning'],
|
|
51
|
-
[data-astryx-theme='neutral'] .astryx-banner[data-status='warning'] {
|
|
52
|
-
--astryx-color-text-primary: var(--astryx-color-text-yellow);
|
|
53
|
-
--astryx-color-text-secondary: var(--astryx-color-text-yellow);
|
|
54
|
-
--astryx-color-warning: var(--astryx-color-text-yellow);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:root .astryx-banner[data-status='error'],
|
|
58
|
-
[data-astryx-theme='neutral'] .astryx-banner[data-status='error'] {
|
|
59
|
-
--astryx-color-text-primary: var(--astryx-color-text-red);
|
|
60
|
-
--astryx-color-text-secondary: var(--astryx-color-text-red);
|
|
61
|
-
--astryx-color-error: var(--astryx-color-text-red);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
3
|
+
/* 上游这套主题不覆盖 banner:状态条直接使用核心的 --astryx-color-*-muted 角色。 */
|
package/neutral/base.css
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
--astryx-color-background-muted: light-dark(#f1f1f1, #1b1b1b);
|
|
27
27
|
|
|
28
28
|
--astryx-color-accent: light-dark(#1b1b1b, #f1f1f1);
|
|
29
|
-
--astryx-color-accent-muted: light-dark(#
|
|
29
|
+
--astryx-color-accent-muted: light-dark(#d4d4d4, #474747);
|
|
30
30
|
--astryx-color-neutral: light-dark(#0000000f, #ffffff1a);
|
|
31
31
|
|
|
32
32
|
/* Overlays: modal scrims and the hover/pressed tints layered on surfaces. */
|
|
@@ -50,19 +50,40 @@
|
|
|
50
50
|
--astryx-color-icon-secondary: light-dark(#6a6a6a, #9e9e9e);
|
|
51
51
|
--astryx-color-icon-disabled: light-dark(#919191, #525252);
|
|
52
52
|
|
|
53
|
-
--astryx-color-success: light-dark(#
|
|
54
|
-
--astryx-color-error: light-dark(#
|
|
55
|
-
--astryx-color-warning:
|
|
53
|
+
--astryx-color-success: light-dark(#198100, #64af4c);
|
|
54
|
+
--astryx-color-error: light-dark(#c9303a, #ff705d);
|
|
55
|
+
--astryx-color-warning: #ffce2f;
|
|
56
56
|
--astryx-color-success-muted: light-dark(#bce0bb, #90ca903d);
|
|
57
57
|
--astryx-color-error-muted: light-dark(#ffc4be, #ff98903d);
|
|
58
58
|
--astryx-color-warning-muted: light-dark(#fae19e, #e2b6233d);
|
|
59
59
|
|
|
60
|
+
/* Status roles: info 填充、状态文字、图标、边框和浅底上的文字(上游 INV11 / INV17)。 */
|
|
61
|
+
--astryx-color-info: light-dark(#0074e2, #6d9cfe);
|
|
62
|
+
--astryx-color-info-muted: light-dark(#b9d7ff, #88bcff3D);
|
|
63
|
+
--astryx-color-on-info: light-dark(#ffffff, #111111);
|
|
64
|
+
--astryx-color-text-info: light-dark(#0067ce, #a1caff);
|
|
65
|
+
--astryx-color-text-success: light-dark(#2f7d33, #90ca90);
|
|
66
|
+
--astryx-color-text-warning: light-dark(#836700, #eec448);
|
|
67
|
+
--astryx-color-text-error: light-dark(#c0262c, #ffaea7);
|
|
68
|
+
--astryx-color-icon-info: var(--astryx-color-text-info);
|
|
69
|
+
--astryx-color-icon-success: var(--astryx-color-text-success);
|
|
70
|
+
--astryx-color-icon-warning: var(--astryx-color-text-warning);
|
|
71
|
+
--astryx-color-icon-error: var(--astryx-color-text-error);
|
|
72
|
+
--astryx-color-border-info: var(--astryx-color-text-info);
|
|
73
|
+
--astryx-color-border-success: var(--astryx-color-text-success);
|
|
74
|
+
--astryx-color-border-warning: var(--astryx-color-text-warning);
|
|
75
|
+
--astryx-color-border-error: var(--astryx-color-text-error);
|
|
76
|
+
--astryx-color-on-info-muted: light-dark(#003978, #a1caff);
|
|
77
|
+
--astryx-color-on-success-muted: light-dark(#00490b, #90ca90);
|
|
78
|
+
--astryx-color-on-warning-muted: light-dark(#4b3900, #eec448);
|
|
79
|
+
--astryx-color-on-error-muted: light-dark(#76000c, #ffaea7);
|
|
80
|
+
|
|
60
81
|
--astryx-color-border: light-dark(#00000014, #ffffff1a);
|
|
61
82
|
--astryx-color-border-emphasized: light-dark(#d4d4d4, #525252);
|
|
62
83
|
|
|
63
|
-
--astryx-color-skeleton: light-dark(#
|
|
84
|
+
--astryx-color-skeleton: light-dark(#d4d4d4, #525252);
|
|
64
85
|
--astryx-color-shadow: light-dark(#0000001a, #0000004d);
|
|
65
|
-
--astryx-color-tint-hover: light-dark(
|
|
86
|
+
--astryx-color-tint-hover: light-dark(#000000, #ffffff);
|
|
66
87
|
|
|
67
88
|
--astryx-color-background-red: light-dark(#ffc4be, #5b2b28);
|
|
68
89
|
--astryx-color-border-red: light-dark(#ffaea7, #fa6762);
|
|
@@ -178,25 +199,41 @@
|
|
|
178
199
|
--astryx-duration-slow-min: 525ms;
|
|
179
200
|
--astryx-duration-slow: 700ms;
|
|
180
201
|
--astryx-duration-slow-max: 935ms;
|
|
202
|
+
--astryx-duration-exit: var(--astryx-duration-fast);
|
|
181
203
|
|
|
182
204
|
--astryx-ease-standard: cubic-bezier(0.24, 1, 0.4, 1);
|
|
205
|
+
--astryx-ease-entrance: cubic-bezier(0.24, 1, 0.4, 1);
|
|
206
|
+
--astryx-ease-move: cubic-bezier(0.24, 1, 0.4, 1);
|
|
207
|
+
--astryx-ease-exit: cubic-bezier(0.3, 0, 0.6, 0.6);
|
|
183
208
|
|
|
184
209
|
--astryx-font-family-body: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
185
210
|
--astryx-font-family-heading: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
186
211
|
--astryx-font-family-code: ui-monospace, 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
187
212
|
|
|
188
|
-
--
|
|
189
|
-
--astryx-font-size-
|
|
190
|
-
--
|
|
191
|
-
--astryx-font-size-
|
|
192
|
-
--
|
|
193
|
-
--astryx-font-size-
|
|
194
|
-
--
|
|
195
|
-
--astryx-font-size-
|
|
196
|
-
--
|
|
197
|
-
--astryx-font-size-
|
|
198
|
-
--
|
|
199
|
-
--astryx-font-size-
|
|
213
|
+
--_scaled-font-size-4xs: min(calc(0.375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
|
|
214
|
+
--astryx-font-size-4xs: var(--_scaled-font-size-4xs);
|
|
215
|
+
--_scaled-font-size-3xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
|
|
216
|
+
--astryx-font-size-3xs: var(--_scaled-font-size-3xs);
|
|
217
|
+
--_scaled-font-size-2xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
|
|
218
|
+
--astryx-font-size-2xs: var(--_scaled-font-size-2xs);
|
|
219
|
+
--_scaled-font-size-xs: min(calc(0.625rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
|
|
220
|
+
--astryx-font-size-xs: var(--_scaled-font-size-xs);
|
|
221
|
+
--_scaled-font-size-sm: min(calc(0.75rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
|
|
222
|
+
--astryx-font-size-sm: var(--_scaled-font-size-sm);
|
|
223
|
+
--_scaled-font-size-base: min(calc(0.875rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
|
|
224
|
+
--astryx-font-size-base: var(--_scaled-font-size-base);
|
|
225
|
+
--_scaled-font-size-lg: min(calc(1.0625rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
|
|
226
|
+
--astryx-font-size-lg: var(--_scaled-font-size-lg);
|
|
227
|
+
--_scaled-font-size-xl: min(calc(1.25rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
|
|
228
|
+
--astryx-font-size-xl: var(--_scaled-font-size-xl);
|
|
229
|
+
--_scaled-font-size-2xl: min(calc(1.5rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
|
|
230
|
+
--astryx-font-size-2xl: var(--_scaled-font-size-2xl);
|
|
231
|
+
--_scaled-font-size-3xl: min(calc(1.8125rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
|
|
232
|
+
--astryx-font-size-3xl: var(--_scaled-font-size-3xl);
|
|
233
|
+
--_scaled-font-size-4xl: min(calc(2.1875rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
|
|
234
|
+
--astryx-font-size-4xl: var(--_scaled-font-size-4xl);
|
|
235
|
+
--_scaled-font-size-5xl: calc(2.625rem * var(--_dynamic-type-large-title, 1));
|
|
236
|
+
--astryx-font-size-5xl: var(--_scaled-font-size-5xl);
|
|
200
237
|
|
|
201
238
|
--astryx-font-weight-normal: 400;
|
|
202
239
|
--astryx-font-weight-regular: var(--astryx-font-weight-normal);
|
package/neutral/button.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--astryx-button-ghost-background: transparent;
|
|
11
11
|
--astryx-button-ghost-foreground: var(--astryx-color-text-primary);
|
|
12
12
|
--astryx-button-destructive-background: var(--astryx-color-error-muted);
|
|
13
|
-
--astryx-button-destructive-foreground: var(--astryx-color-error);
|
|
13
|
+
--astryx-button-destructive-foreground: var(--astryx-color-on-error-muted);
|
|
14
14
|
--astryx-button-hover-overlay: var(--astryx-color-overlay-hover);
|
|
15
15
|
--astryx-button-pressed-overlay: var(--astryx-color-overlay-pressed);
|
|
16
16
|
--astryx-button-focus: var(--astryx-color-accent);
|
|
@@ -32,13 +32,3 @@
|
|
|
32
32
|
inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
/* A destructive button tints its hover and pressed states with red instead of
|
|
37
|
-
the neutral overlay, so the interaction reads as dangerous. */
|
|
38
|
-
@layer astryx.overrides {
|
|
39
|
-
:root .astryx-button[data-variant='destructive'],
|
|
40
|
-
[data-astryx-theme='neutral'] .astryx-button[data-variant='destructive'] {
|
|
41
|
-
--astryx-button-hover-overlay: var(--astryx-theme-neutral-color-destructive-overlay-hover);
|
|
42
|
-
--astryx-button-pressed-overlay: var(--astryx-theme-neutral-color-destructive-overlay-pressed);
|
|
43
|
-
}
|
|
44
|
-
}
|
package/neutral/chat.css
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
--astryx-chat-foreground-secondary: var(--astryx-color-text-secondary);
|
|
10
10
|
--astryx-chat-foreground-muted: var(--astryx-color-text-disabled);
|
|
11
11
|
--astryx-chat-bubble-background: var(--astryx-color-neutral);
|
|
12
|
-
--astryx-chat-error: var(--astryx-color-error);
|
|
13
|
-
--astryx-chat-success: var(--astryx-color-success);
|
|
14
12
|
--astryx-chat-accent: var(--astryx-color-accent);
|
|
15
13
|
--astryx-chat-unread-color: var(--astryx-color-border-red);
|
|
16
14
|
--astryx-chat-scroll-background: var(--astryx-color-background-popover);
|
package/neutral/code.css
CHANGED
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
--astryx-code-block-background: light-dark(#ffffff, #111111);
|
|
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 palette `astryx-neutral`: keyword and type share the same purple,
|
|
18
18
|
strings stay green. Punctuation, comment and operator sit on the neutral
|
|
19
19
|
mid stop so they clear AA on the code background. */
|
|
20
20
|
--astryx-code-syntax-keyword: light-dark(#6b187c, #efa8ff);
|
|
21
21
|
--astryx-code-syntax-string: light-dark(#0b5615, #a4d6a3);
|
|
22
|
-
--astryx-code-syntax-comment: light-dark(#
|
|
22
|
+
--astryx-code-syntax-comment: light-dark(#525252, #b9b9b9);
|
|
23
23
|
--astryx-code-syntax-number: light-dark(#733100, #ffb37e);
|
|
24
24
|
--astryx-code-syntax-function: light-dark(#00458c, #a1caff);
|
|
25
25
|
--astryx-code-syntax-type: light-dark(#6b187c, #efa8ff);
|
|
26
26
|
--astryx-code-syntax-variable: light-dark(#111111, #e2e2e2);
|
|
27
|
-
--astryx-code-syntax-operator: light-dark(#
|
|
27
|
+
--astryx-code-syntax-operator: light-dark(#525252, #b9b9b9);
|
|
28
28
|
--astryx-code-syntax-constant: light-dark(#733100, #ffb37e);
|
|
29
29
|
--astryx-code-syntax-tag: light-dark(#8a0011, #ffaea7);
|
|
30
30
|
--astryx-code-syntax-attribute: light-dark(#584400, #eec448);
|
|
31
31
|
--astryx-code-syntax-property: light-dark(#005348, #90d7c8);
|
|
32
|
-
--astryx-code-syntax-punctuation: light-dark(#
|
|
32
|
+
--astryx-code-syntax-punctuation: light-dark(#525252, #b9b9b9);
|
|
33
33
|
|
|
34
34
|
/* Diff rows share the --astryx-code-syntax-* names. Tints stay at 25% so
|
|
35
35
|
syntax text keeps its contrast. Markers use the theme's tinted text. */
|
|
36
36
|
--astryx-code-syntax-added: color-mix(in srgb, var(--astryx-color-success-muted) 25%, transparent);
|
|
37
37
|
--astryx-code-syntax-removed: color-mix(in srgb, var(--astryx-color-error-muted) 25%, transparent);
|
|
38
|
-
--astryx-code-syntax-diff-header:
|
|
39
|
-
--astryx-code-syntax-added-marker: var(--astryx-
|
|
40
|
-
--astryx-code-syntax-removed-marker: var(--astryx-
|
|
38
|
+
--astryx-code-syntax-diff-header: transparent;
|
|
39
|
+
--astryx-code-syntax-added-marker: var(--astryx-code-syntax-punctuation);
|
|
40
|
+
--astryx-code-syntax-removed-marker: var(--astryx-code-syntax-punctuation);
|
|
41
41
|
}
|
|
42
42
|
}
|