@astryx-vue/themes 0.2.6 → 0.4.0

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.
Files changed (94) hide show
  1. package/butter/badge.css +5 -0
  2. package/butter/banner.css +29 -0
  3. package/butter/base.css +16 -89
  4. package/butter/button.css +6 -0
  5. package/butter/card.css +81 -0
  6. package/butter/input.css +13 -10
  7. package/butter/mobile-type.css +55 -0
  8. package/butter/progress-bar.css +5 -4
  9. package/butter/section.css +7 -0
  10. package/butter/top-nav.css +35 -0
  11. package/butter.css +4 -0
  12. package/chocolate/base.css +17 -90
  13. package/chocolate/button.css +4 -6
  14. package/chocolate/card.css +1 -0
  15. package/chocolate/mobile-type.css +55 -0
  16. package/chocolate/section.css +7 -0
  17. package/chocolate.css +3 -0
  18. package/data.css +84 -0
  19. package/gothic/badge.css +1 -0
  20. package/gothic/banner.css +32 -0
  21. package/gothic/base.css +16 -89
  22. package/gothic/card.css +57 -0
  23. package/gothic/code.css +5 -4
  24. package/gothic/section.css +7 -0
  25. package/gothic.css +2 -0
  26. package/matcha/base.css +3 -76
  27. package/matcha/button.css +1 -0
  28. package/matcha/card.css +2 -0
  29. package/matcha/section.css +8 -0
  30. package/matcha.css +2 -0
  31. package/neutral/alert-dialog.css +2 -2
  32. package/neutral/avatar-group.css +3 -3
  33. package/neutral/avatar.css +7 -7
  34. package/neutral/badge.css +31 -28
  35. package/neutral/banner.css +57 -10
  36. package/neutral/base.css +123 -190
  37. package/neutral/bottom-sheet.css +6 -6
  38. package/neutral/button.css +15 -5
  39. package/neutral/card.css +12 -12
  40. package/neutral/chat.css +1 -1
  41. package/neutral/checkbox.css +5 -5
  42. package/neutral/code.css +10 -12
  43. package/neutral/collapsible.css +4 -4
  44. package/neutral/context-menu.css +8 -8
  45. package/neutral/dialog.css +3 -3
  46. package/neutral/divider.css +3 -3
  47. package/neutral/dropdown-menu.css +4 -4
  48. package/neutral/empty-state.css +2 -2
  49. package/neutral/heading.css +13 -15
  50. package/neutral/hover-card.css +3 -3
  51. package/neutral/icon.css +2 -2
  52. package/neutral/input.css +12 -12
  53. package/neutral/kbd.css +1 -1
  54. package/neutral/link.css +3 -3
  55. package/neutral/list.css +2 -2
  56. package/neutral/local-tokens.css +29 -0
  57. package/neutral/mobile-type.css +42 -0
  58. package/neutral/more-menu.css +9 -9
  59. package/neutral/overlay.css +1 -1
  60. package/neutral/popover.css +2 -2
  61. package/neutral/progress-bar.css +6 -6
  62. package/neutral/{skeleton.css → section.css} +1 -1
  63. package/neutral/segmented-control.css +35 -12
  64. package/neutral/slider.css +3 -3
  65. package/neutral/spinner.css +4 -4
  66. package/neutral/status-dot.css +4 -4
  67. package/neutral/stepper.css +16 -0
  68. package/neutral/switch.css +3 -3
  69. package/neutral/text.css +7 -17
  70. package/neutral/toast.css +1 -1
  71. package/neutral/toggle-button.css +1 -1
  72. package/neutral/tooltip.css +3 -3
  73. package/neutral.css +5 -1
  74. package/package.json +2 -1
  75. package/stone/banner.css +29 -0
  76. package/stone/base.css +16 -89
  77. package/stone/button.css +5 -6
  78. package/stone/card.css +1 -0
  79. package/stone/code.css +5 -4
  80. package/stone/input.css +7 -6
  81. package/stone/mobile-type.css +55 -0
  82. package/stone/progress-bar.css +6 -4
  83. package/stone/section.css +7 -0
  84. package/stone/switch.css +1 -1
  85. package/stone.css +3 -0
  86. package/y2k/badge.css +5 -0
  87. package/y2k/banner.css +29 -0
  88. package/y2k/base.css +6 -79
  89. package/y2k/button.css +15 -6
  90. package/y2k/card.css +1 -0
  91. package/y2k/code.css +5 -4
  92. package/y2k/section.css +7 -0
  93. package/y2k/top-nav.css +22 -0
  94. package/y2k.css +3 -0
@@ -0,0 +1,7 @@
1
+ @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
3
+ @layer astryx.tokens {
4
+ [data-astryx-theme='chocolate'] {
5
+ --astryx-section-padding: var(--astryx-spacing-3);
6
+ }
7
+ }
package/chocolate.css CHANGED
@@ -1,5 +1,6 @@
1
1
  /* 这个文件由 `pnpm sync` 生成,不要手改。 */
2
2
  @import './fonts.css';
3
+ @import './data.css';
3
4
  @import './chocolate/alert-dialog.css';
4
5
  @import './chocolate/avatar.css';
5
6
  @import './chocolate/avatar-group.css';
@@ -30,12 +31,14 @@
30
31
  @import './chocolate/link.css';
31
32
  @import './chocolate/list.css';
32
33
  @import './chocolate/mobile-nav.css';
34
+ @import './chocolate/mobile-type.css';
33
35
  @import './chocolate/more-menu.css';
34
36
  @import './chocolate/nav-menu.css';
35
37
  @import './chocolate/overlay.css';
36
38
  @import './chocolate/popover.css';
37
39
  @import './chocolate/progress-bar.css';
38
40
  @import './chocolate/radio.css';
41
+ @import './chocolate/section.css';
39
42
  @import './chocolate/segmented-control.css';
40
43
  @import './chocolate/side-nav.css';
41
44
  @import './chocolate/skeleton.css';
package/data.css ADDED
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Data-visualization colors, shared by every theme.
3
+ *
4
+ * Names and values follow upstream theme/dataTokens.stylex.ts, with an
5
+ * --astryx- prefix. They are declared once on :root, so a theme or an app sets
6
+ * only the stops it changes, and a nested theme inherits every stop it leaves
7
+ * alone instead of resetting it to the default.
8
+ *
9
+ * Categorical series use one stop in both schemes. Sequential ramps run from
10
+ * 5 (darkest) to 1 (lightest). Gray and the neutral reference color change
11
+ * with the scheme.
12
+ */
13
+ @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
14
+
15
+ @layer astryx.tokens {
16
+ :root {
17
+ --astryx-color-data-categorical-blue: light-dark(#0171E3, #0171E3);
18
+ --astryx-color-data-categorical-orange: light-dark(#EB6E00, #EB6E00);
19
+ --astryx-color-data-categorical-purple: light-dark(#6B1EFD, #6B1EFD);
20
+ --astryx-color-data-categorical-green: light-dark(#0B991F, #0B991F);
21
+ --astryx-color-data-categorical-pink: light-dark(#F351C0, #F351C0);
22
+ --astryx-color-data-categorical-cyan: light-dark(#0171A4, #0171A4);
23
+ --astryx-color-data-categorical-red: light-dark(#F5394F, #F5394F);
24
+ --astryx-color-data-categorical-teal: light-dark(#08A3A3, #08A3A3);
25
+ --astryx-color-data-categorical-brown: light-dark(#965E03, #965E03);
26
+ --astryx-color-data-categorical-indigo: light-dark(#6F8AFF, #6F8AFF);
27
+
28
+ --astryx-color-data-neutral: light-dark(#8494A3, #8C939B);
29
+
30
+ --astryx-color-data-blue-5: light-dark(#02165E, #02165E);
31
+ --astryx-color-data-blue-4: light-dark(#004CBC, #004CBC);
32
+ --astryx-color-data-blue-3: light-dark(#2694FE, #2694FE);
33
+ --astryx-color-data-blue-2: light-dark(#78BEFF, #78BEFF);
34
+ --astryx-color-data-blue-1: light-dark(#DBECFF, #DBECFF);
35
+
36
+ --astryx-color-data-shamrock-5: light-dark(#0B603D, #0B603D);
37
+ --astryx-color-data-shamrock-4: light-dark(#138546, #138546);
38
+ --astryx-color-data-shamrock-3: light-dark(#24BB5E, #24BB5E);
39
+ --astryx-color-data-shamrock-2: light-dark(#8EF7AA, #8EF7AA);
40
+ --astryx-color-data-shamrock-1: light-dark(#D6FEE4, #D6FEE4);
41
+
42
+ --astryx-color-data-orange-5: light-dark(#A13F04, #A13F04);
43
+ --astryx-color-data-orange-4: light-dark(#D66100, #D66100);
44
+ --astryx-color-data-orange-3: light-dark(#FD9537, #FD9537);
45
+ --astryx-color-data-orange-2: light-dark(#FDB876, #FDB876);
46
+ --astryx-color-data-orange-1: light-dark(#FFE6CF, #FFE6CF);
47
+
48
+ --astryx-color-data-pink-5: light-dark(#8E1073, #8E1073);
49
+ --astryx-color-data-pink-4: light-dark(#D123A1, #D123A1);
50
+ --astryx-color-data-pink-3: light-dark(#F989D3, #F989D3);
51
+ --astryx-color-data-pink-2: light-dark(#FEADE3, #FEADE3);
52
+ --astryx-color-data-pink-1: light-dark(#FCE3F4, #FCE3F4);
53
+
54
+ --astryx-color-data-purple-5: light-dark(#3E0697, #3E0697);
55
+ --astryx-color-data-purple-4: light-dark(#6B1EFD, #6B1EFD);
56
+ --astryx-color-data-purple-3: light-dark(#9081FF, #9081FF);
57
+ --astryx-color-data-purple-2: light-dark(#B3B0FE, #B3B0FE);
58
+ --astryx-color-data-purple-1: light-dark(#E8E8FB, #E8E8FB);
59
+
60
+ --astryx-color-data-red-5: light-dark(#9D0519, #9D0519);
61
+ --astryx-color-data-red-4: light-dark(#D31130, #D31130);
62
+ --astryx-color-data-red-3: light-dark(#FB7D87, #FB7D87);
63
+ --astryx-color-data-red-2: light-dark(#FFB2B8, #FFB2B8);
64
+ --astryx-color-data-red-1: light-dark(#FEE4E6, #FEE4E6);
65
+
66
+ --astryx-color-data-teal-5: light-dark(#08767D, #08767D);
67
+ --astryx-color-data-teal-4: light-dark(#0C9293, #0C9293);
68
+ --astryx-color-data-teal-3: light-dark(#0DB7AF, #0DB7AF);
69
+ --astryx-color-data-teal-2: light-dark(#6CE6D8, #6CE6D8);
70
+ --astryx-color-data-teal-1: light-dark(#D7FCF8, #D7FCF8);
71
+
72
+ --astryx-color-data-yellow-5: light-dark(#8A5001, #8A5001);
73
+ --astryx-color-data-yellow-4: light-dark(#D69804, #D69804);
74
+ --astryx-color-data-yellow-3: light-dark(#FBCE03, #FBCE03);
75
+ --astryx-color-data-yellow-2: light-dark(#FCEC85, #FCEC85);
76
+ --astryx-color-data-yellow-1: light-dark(#FDF6BA, #FDF6BA);
77
+
78
+ --astryx-color-data-gray-5: light-dark(#25363F, #333338);
79
+ --astryx-color-data-gray-4: light-dark(#5D6C7B, #666A72);
80
+ --astryx-color-data-gray-3: light-dark(#AFB9C4, #B2B8BE);
81
+ --astryx-color-data-gray-2: light-dark(#CCD3DB, #D0D3D6);
82
+ --astryx-color-data-gray-1: light-dark(#F1F4F7, #F2F4F6);
83
+ }
84
+ }
package/gothic/badge.css CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  @layer astryx.tokens {
4
4
  [data-astryx-theme='gothic'] {
5
+ --astryx-badge-radius: var(--astryx-radius-element);
5
6
  --astryx-badge-neutral-background: var(--astryx-color-background-gray);
6
7
  --astryx-badge-neutral-foreground: var(--astryx-color-text-gray);
7
8
  --astryx-badge-info-background: var(--astryx-color-background-blue);
package/gothic/banner.css CHANGED
@@ -1,6 +1,8 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
2
3
  @layer astryx.tokens {
3
4
  [data-astryx-theme='gothic'] {
5
+ --astryx-banner-radius: var(--astryx-radius-element);
4
6
  --astryx-banner-info-background: var(--astryx-color-background-blue);
5
7
  --astryx-banner-info-foreground: var(--astryx-color-text-blue);
6
8
  --astryx-banner-error-background: var(--astryx-color-error-muted);
@@ -13,3 +15,33 @@
13
15
  --astryx-banner-border: var(--astryx-color-border);
14
16
  }
15
17
  }
18
+
19
+ /*
20
+ * The status tints are too light for the default text colors, so each status
21
+ * re-points the shared text and hue tokens on the banner itself.
22
+ */
23
+ @layer astryx.overrides {
24
+ [data-astryx-theme='gothic'] .astryx-banner[data-status='info'] {
25
+ --astryx-color-text-primary: var(--astryx-color-text-blue);
26
+ --astryx-color-text-secondary: var(--astryx-color-text-blue);
27
+ --astryx-color-accent: var(--astryx-color-text-blue);
28
+ }
29
+
30
+ [data-astryx-theme='gothic'] .astryx-banner[data-status='success'] {
31
+ --astryx-color-text-primary: var(--astryx-color-text-green);
32
+ --astryx-color-text-secondary: var(--astryx-color-text-green);
33
+ --astryx-color-success: var(--astryx-color-text-green);
34
+ }
35
+
36
+ [data-astryx-theme='gothic'] .astryx-banner[data-status='warning'] {
37
+ --astryx-color-text-primary: var(--astryx-color-text-yellow);
38
+ --astryx-color-text-secondary: var(--astryx-color-text-yellow);
39
+ --astryx-color-warning: var(--astryx-color-text-yellow);
40
+ }
41
+
42
+ [data-astryx-theme='gothic'] .astryx-banner[data-status='error'] {
43
+ --astryx-color-text-primary: var(--astryx-color-text-red);
44
+ --astryx-color-text-secondary: var(--astryx-color-text-red);
45
+ --astryx-color-error: var(--astryx-color-text-red);
46
+ }
47
+ }
package/gothic/base.css CHANGED
@@ -115,94 +115,21 @@
115
115
  --astryx-color-icon-yellow: #876515;
116
116
  --astryx-color-text-yellow: #6c5010;
117
117
 
118
- /*
119
- * Chart colors. Categorical series use one stop in both schemes.
120
- * Sequential ramps run from 5 (darkest) to 1 (lightest).
121
- * Gray, and the neutral reference color, change with the scheme.
122
- * Values match the upstream data color tokens.
123
- */
124
- --astryx-color-data-categorical-blue: light-dark(#0171E3, #0171E3);
125
- --astryx-color-data-categorical-orange: light-dark(#EB6E00, #EB6E00);
126
- --astryx-color-data-categorical-purple: light-dark(#6B1EFD, #6B1EFD);
127
- --astryx-color-data-categorical-green: light-dark(#0B991F, #0B991F);
128
- --astryx-color-data-categorical-pink: light-dark(#F351C0, #F351C0);
129
- --astryx-color-data-categorical-cyan: light-dark(#0171A4, #0171A4);
130
- --astryx-color-data-categorical-red: light-dark(#F5394F, #F5394F);
131
- --astryx-color-data-categorical-teal: light-dark(#08A3A3, #08A3A3);
132
- --astryx-color-data-categorical-brown: light-dark(#965E03, #965E03);
133
- --astryx-color-data-categorical-indigo: light-dark(#6F8AFF, #6F8AFF);
134
-
135
- --astryx-color-data-neutral: light-dark(#8494A3, #8C939B);
136
-
137
- --astryx-color-data-blue-5: light-dark(#02165E, #02165E);
138
- --astryx-color-data-blue-4: light-dark(#004CBC, #004CBC);
139
- --astryx-color-data-blue-3: light-dark(#2694FE, #2694FE);
140
- --astryx-color-data-blue-2: light-dark(#78BEFF, #78BEFF);
141
- --astryx-color-data-blue-1: light-dark(#DBECFF, #DBECFF);
142
-
143
- --astryx-color-data-shamrock-5: light-dark(#0B603D, #0B603D);
144
- --astryx-color-data-shamrock-4: light-dark(#138546, #138546);
145
- --astryx-color-data-shamrock-3: light-dark(#24BB5E, #24BB5E);
146
- --astryx-color-data-shamrock-2: light-dark(#8EF7AA, #8EF7AA);
147
- --astryx-color-data-shamrock-1: light-dark(#D6FEE4, #D6FEE4);
148
-
149
- --astryx-color-data-orange-5: light-dark(#A13F04, #A13F04);
150
- --astryx-color-data-orange-4: light-dark(#D66100, #D66100);
151
- --astryx-color-data-orange-3: light-dark(#FD9537, #FD9537);
152
- --astryx-color-data-orange-2: light-dark(#FDB876, #FDB876);
153
- --astryx-color-data-orange-1: light-dark(#FFE6CF, #FFE6CF);
154
-
155
- --astryx-color-data-pink-5: light-dark(#8E1073, #8E1073);
156
- --astryx-color-data-pink-4: light-dark(#D123A1, #D123A1);
157
- --astryx-color-data-pink-3: light-dark(#F989D3, #F989D3);
158
- --astryx-color-data-pink-2: light-dark(#FEADE3, #FEADE3);
159
- --astryx-color-data-pink-1: light-dark(#FCE3F4, #FCE3F4);
160
-
161
- --astryx-color-data-purple-5: light-dark(#3E0697, #3E0697);
162
- --astryx-color-data-purple-4: light-dark(#6B1EFD, #6B1EFD);
163
- --astryx-color-data-purple-3: light-dark(#9081FF, #9081FF);
164
- --astryx-color-data-purple-2: light-dark(#B3B0FE, #B3B0FE);
165
- --astryx-color-data-purple-1: light-dark(#E8E8FB, #E8E8FB);
166
-
167
- --astryx-color-data-red-5: light-dark(#9D0519, #9D0519);
168
- --astryx-color-data-red-4: light-dark(#D31130, #D31130);
169
- --astryx-color-data-red-3: light-dark(#FB7D87, #FB7D87);
170
- --astryx-color-data-red-2: light-dark(#FFB2B8, #FFB2B8);
171
- --astryx-color-data-red-1: light-dark(#FEE4E6, #FEE4E6);
172
-
173
- --astryx-color-data-teal-5: light-dark(#08767D, #08767D);
174
- --astryx-color-data-teal-4: light-dark(#0C9293, #0C9293);
175
- --astryx-color-data-teal-3: light-dark(#0DB7AF, #0DB7AF);
176
- --astryx-color-data-teal-2: light-dark(#6CE6D8, #6CE6D8);
177
- --astryx-color-data-teal-1: light-dark(#D7FCF8, #D7FCF8);
178
-
179
- --astryx-color-data-yellow-5: light-dark(#8A5001, #8A5001);
180
- --astryx-color-data-yellow-4: light-dark(#D69804, #D69804);
181
- --astryx-color-data-yellow-3: light-dark(#FBCE03, #FBCE03);
182
- --astryx-color-data-yellow-2: light-dark(#FCEC85, #FCEC85);
183
- --astryx-color-data-yellow-1: light-dark(#FDF6BA, #FDF6BA);
184
-
185
- --astryx-color-data-gray-5: light-dark(#25363F, #333338);
186
- --astryx-color-data-gray-4: light-dark(#5D6C7B, #666A72);
187
- --astryx-color-data-gray-3: light-dark(#AFB9C4, #B2B8BE);
188
- --astryx-color-data-gray-2: light-dark(#CCD3DB, #D0D3D6);
189
- --astryx-color-data-gray-1: light-dark(#F1F4F7, #F2F4F6);
190
-
191
- --astryx-spacing-0: 0;
192
- --astryx-spacing-0-5: 2px;
193
- --astryx-spacing-1: 4px;
194
- --astryx-spacing-1-5: 6px;
195
- --astryx-spacing-2: 8px;
196
- --astryx-spacing-3: 12px;
197
- --astryx-spacing-4: 16px;
198
- --astryx-spacing-5: 20px;
199
- --astryx-spacing-6: 24px;
200
- --astryx-spacing-7: 28px;
201
- --astryx-spacing-8: 32px;
202
- --astryx-spacing-9: 36px;
203
- --astryx-spacing-10: 40px;
204
- --astryx-spacing-11: 44px;
205
- --astryx-spacing-12: 48px;
118
+ --astryx-spacing-0: 0rem;
119
+ --astryx-spacing-0-5: 0.125rem;
120
+ --astryx-spacing-1: 0.25rem;
121
+ --astryx-spacing-1-5: 0.375rem;
122
+ --astryx-spacing-2: 0.5rem;
123
+ --astryx-spacing-3: 0.75rem;
124
+ --astryx-spacing-4: 1rem;
125
+ --astryx-spacing-5: 1.25rem;
126
+ --astryx-spacing-6: 1.5rem;
127
+ --astryx-spacing-7: 1.75rem;
128
+ --astryx-spacing-8: 2rem;
129
+ --astryx-spacing-9: 2.25rem;
130
+ --astryx-spacing-10: 2.5rem;
131
+ --astryx-spacing-11: 2.75rem;
132
+ --astryx-spacing-12: 3rem;
206
133
 
207
134
  --astryx-size-element-sm: 28px;
208
135
  --astryx-size-element-md: 32px;
@@ -245,7 +172,7 @@
245
172
  --astryx-ease-standard: cubic-bezier(0.24, 1, 0.4, 1);
246
173
 
247
174
  --astryx-font-family-body: Fustat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
248
- --astryx-font-family-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
175
+ --astryx-font-family-code: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
249
176
  --astryx-font-family-heading: Fustat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
250
177
 
251
178
  --astryx-font-size-4xs: 0.3125rem;
package/gothic/card.css CHANGED
@@ -3,6 +3,7 @@
3
3
  @layer astryx.tokens {
4
4
  [data-astryx-theme='gothic'] {
5
5
  --astryx-card-background: var(--astryx-color-background-card);
6
+ --astryx-card-padding: var(--astryx-spacing-3);
6
7
  --astryx-card-muted-background: var(--astryx-color-background-muted);
7
8
  --astryx-card-border: var(--astryx-color-border);
8
9
  --astryx-card-shadow-low: var(--astryx-shadow-low);
@@ -21,3 +22,59 @@
21
22
  --astryx-card-yellow-background: var(--astryx-color-background-yellow);
22
23
  }
23
24
  }
25
+
26
+ /*
27
+ * Categorical tints are dusty pastels, so their text reads in the matching hue
28
+ * instead of the page's primary and secondary text colors.
29
+ */
30
+ @layer astryx.overrides {
31
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='blue'] {
32
+ --astryx-color-text-primary: var(--astryx-color-text-blue);
33
+ --astryx-color-text-secondary: var(--astryx-color-text-blue);
34
+ }
35
+
36
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='cyan'] {
37
+ --astryx-color-text-primary: var(--astryx-color-text-cyan);
38
+ --astryx-color-text-secondary: var(--astryx-color-text-cyan);
39
+ }
40
+
41
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='gray'] {
42
+ --astryx-color-text-primary: var(--astryx-color-text-gray);
43
+ --astryx-color-text-secondary: var(--astryx-color-text-gray);
44
+ }
45
+
46
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='green'] {
47
+ --astryx-color-text-primary: var(--astryx-color-text-green);
48
+ --astryx-color-text-secondary: var(--astryx-color-text-green);
49
+ }
50
+
51
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='orange'] {
52
+ --astryx-color-text-primary: var(--astryx-color-text-orange);
53
+ --astryx-color-text-secondary: var(--astryx-color-text-orange);
54
+ }
55
+
56
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='pink'] {
57
+ --astryx-color-text-primary: var(--astryx-color-text-pink);
58
+ --astryx-color-text-secondary: var(--astryx-color-text-pink);
59
+ }
60
+
61
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='purple'] {
62
+ --astryx-color-text-primary: var(--astryx-color-text-purple);
63
+ --astryx-color-text-secondary: var(--astryx-color-text-purple);
64
+ }
65
+
66
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='red'] {
67
+ --astryx-color-text-primary: var(--astryx-color-text-red);
68
+ --astryx-color-text-secondary: var(--astryx-color-text-red);
69
+ }
70
+
71
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='teal'] {
72
+ --astryx-color-text-primary: var(--astryx-color-text-teal);
73
+ --astryx-color-text-secondary: var(--astryx-color-text-teal);
74
+ }
75
+
76
+ [data-astryx-theme='gothic'] .astryx-card[data-variant='yellow'] {
77
+ --astryx-color-text-primary: var(--astryx-color-text-yellow);
78
+ --astryx-color-text-secondary: var(--astryx-color-text-yellow);
79
+ }
80
+ }
package/gothic/code.css CHANGED
@@ -30,10 +30,11 @@
30
30
  --astryx-code-syntax-property: #7cc5b3;
31
31
  --astryx-code-syntax-punctuation: #7a8290;
32
32
 
33
- --astryx-code-syntax-added: color-mix(in srgb, var(--astryx-color-success-muted) 25%, transparent);
34
- --astryx-code-syntax-removed: color-mix(in srgb, var(--astryx-color-error-muted) 25%, transparent);
33
+ /* 深色底上的差异行用不透明深绿、深红,压住亮度,保住各语法的对比度。 */
34
+ --astryx-code-syntax-added: #081408;
35
+ --astryx-code-syntax-removed: #1e0a0a;
35
36
  --astryx-code-syntax-diff-header: var(--astryx-color-background-muted);
36
- --astryx-code-syntax-added-marker: var(--astryx-color-text-green);
37
- --astryx-code-syntax-removed-marker: var(--astryx-color-text-red);
37
+ --astryx-code-syntax-added-marker: #a3c987;
38
+ --astryx-code-syntax-removed-marker: #d97580;
38
39
  }
39
40
  }
@@ -0,0 +1,7 @@
1
+ @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
3
+ @layer astryx.tokens {
4
+ [data-astryx-theme='gothic'] {
5
+ --astryx-section-padding: var(--astryx-spacing-3);
6
+ }
7
+ }
package/gothic.css CHANGED
@@ -1,5 +1,6 @@
1
1
  /* 这个文件由 `pnpm sync` 生成,不要手改。 */
2
2
  @import './fonts.css';
3
+ @import './data.css';
3
4
  @import './gothic/alert-dialog.css';
4
5
  @import './gothic/avatar.css';
5
6
  @import './gothic/avatar-group.css';
@@ -36,6 +37,7 @@
36
37
  @import './gothic/popover.css';
37
38
  @import './gothic/progress-bar.css';
38
39
  @import './gothic/radio.css';
40
+ @import './gothic/section.css';
39
41
  @import './gothic/segmented-control.css';
40
42
  @import './gothic/side-nav.css';
41
43
  @import './gothic/skeleton.css';
package/matcha/base.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Matcha semantic tokens.
3
3
  *
4
- * Earthy greens. DM Sans for text, Playwrite US Trad for headings. Values follow @astryxdesign/theme-matcha 0.7.0.
4
+ * Earthy greens. DM Sans for text, Playwrite US Trad for headings. Values follow @astryxdesign/theme-matcha 0.7.1.
5
5
  * Names match Neutral, with an --astryx- prefix.
6
6
  * A token present in the upstream theme.css replaces the Neutral value.
7
7
  * Tokens the theme does not set keep the shared default from Neutral's base.
@@ -115,80 +115,7 @@
115
115
  --astryx-color-icon-yellow: light-dark(#FFB600, #ffc940);
116
116
  --astryx-color-text-yellow: light-dark(#cc9200, #ffd960);
117
117
 
118
- /*
119
- * Chart colors. Categorical series use one stop in both schemes.
120
- * Sequential ramps run from 5 (darkest) to 1 (lightest).
121
- * Gray, and the neutral reference color, change with the scheme.
122
- * Values match the upstream data color tokens.
123
- */
124
- --astryx-color-data-categorical-blue: light-dark(#0171E3, #0171E3);
125
- --astryx-color-data-categorical-orange: light-dark(#EB6E00, #EB6E00);
126
- --astryx-color-data-categorical-purple: light-dark(#6B1EFD, #6B1EFD);
127
- --astryx-color-data-categorical-green: light-dark(#0B991F, #0B991F);
128
- --astryx-color-data-categorical-pink: light-dark(#F351C0, #F351C0);
129
- --astryx-color-data-categorical-cyan: light-dark(#0171A4, #0171A4);
130
- --astryx-color-data-categorical-red: light-dark(#F5394F, #F5394F);
131
- --astryx-color-data-categorical-teal: light-dark(#08A3A3, #08A3A3);
132
- --astryx-color-data-categorical-brown: light-dark(#965E03, #965E03);
133
- --astryx-color-data-categorical-indigo: light-dark(#6F8AFF, #6F8AFF);
134
-
135
- --astryx-color-data-neutral: light-dark(#8494A3, #8C939B);
136
-
137
- --astryx-color-data-blue-5: light-dark(#02165E, #02165E);
138
- --astryx-color-data-blue-4: light-dark(#004CBC, #004CBC);
139
- --astryx-color-data-blue-3: light-dark(#2694FE, #2694FE);
140
- --astryx-color-data-blue-2: light-dark(#78BEFF, #78BEFF);
141
- --astryx-color-data-blue-1: light-dark(#DBECFF, #DBECFF);
142
-
143
- --astryx-color-data-shamrock-5: light-dark(#0B603D, #0B603D);
144
- --astryx-color-data-shamrock-4: light-dark(#138546, #138546);
145
- --astryx-color-data-shamrock-3: light-dark(#24BB5E, #24BB5E);
146
- --astryx-color-data-shamrock-2: light-dark(#8EF7AA, #8EF7AA);
147
- --astryx-color-data-shamrock-1: light-dark(#D6FEE4, #D6FEE4);
148
-
149
- --astryx-color-data-orange-5: light-dark(#A13F04, #A13F04);
150
- --astryx-color-data-orange-4: light-dark(#D66100, #D66100);
151
- --astryx-color-data-orange-3: light-dark(#FD9537, #FD9537);
152
- --astryx-color-data-orange-2: light-dark(#FDB876, #FDB876);
153
- --astryx-color-data-orange-1: light-dark(#FFE6CF, #FFE6CF);
154
-
155
- --astryx-color-data-pink-5: light-dark(#8E1073, #8E1073);
156
- --astryx-color-data-pink-4: light-dark(#D123A1, #D123A1);
157
- --astryx-color-data-pink-3: light-dark(#F989D3, #F989D3);
158
- --astryx-color-data-pink-2: light-dark(#FEADE3, #FEADE3);
159
- --astryx-color-data-pink-1: light-dark(#FCE3F4, #FCE3F4);
160
-
161
- --astryx-color-data-purple-5: light-dark(#3E0697, #3E0697);
162
- --astryx-color-data-purple-4: light-dark(#6B1EFD, #6B1EFD);
163
- --astryx-color-data-purple-3: light-dark(#9081FF, #9081FF);
164
- --astryx-color-data-purple-2: light-dark(#B3B0FE, #B3B0FE);
165
- --astryx-color-data-purple-1: light-dark(#E8E8FB, #E8E8FB);
166
-
167
- --astryx-color-data-red-5: light-dark(#9D0519, #9D0519);
168
- --astryx-color-data-red-4: light-dark(#D31130, #D31130);
169
- --astryx-color-data-red-3: light-dark(#FB7D87, #FB7D87);
170
- --astryx-color-data-red-2: light-dark(#FFB2B8, #FFB2B8);
171
- --astryx-color-data-red-1: light-dark(#FEE4E6, #FEE4E6);
172
-
173
- --astryx-color-data-teal-5: light-dark(#08767D, #08767D);
174
- --astryx-color-data-teal-4: light-dark(#0C9293, #0C9293);
175
- --astryx-color-data-teal-3: light-dark(#0DB7AF, #0DB7AF);
176
- --astryx-color-data-teal-2: light-dark(#6CE6D8, #6CE6D8);
177
- --astryx-color-data-teal-1: light-dark(#D7FCF8, #D7FCF8);
178
-
179
- --astryx-color-data-yellow-5: light-dark(#8A5001, #8A5001);
180
- --astryx-color-data-yellow-4: light-dark(#D69804, #D69804);
181
- --astryx-color-data-yellow-3: light-dark(#FBCE03, #FBCE03);
182
- --astryx-color-data-yellow-2: light-dark(#FCEC85, #FCEC85);
183
- --astryx-color-data-yellow-1: light-dark(#FDF6BA, #FDF6BA);
184
-
185
- --astryx-color-data-gray-5: light-dark(#25363F, #333338);
186
- --astryx-color-data-gray-4: light-dark(#5D6C7B, #666A72);
187
- --astryx-color-data-gray-3: light-dark(#AFB9C4, #B2B8BE);
188
- --astryx-color-data-gray-2: light-dark(#CCD3DB, #D0D3D6);
189
- --astryx-color-data-gray-1: light-dark(#F1F4F7, #F2F4F6);
190
-
191
- --astryx-spacing-0: 0;
118
+ --astryx-spacing-0: 0rem;
192
119
  --astryx-spacing-0-5: 0.1875rem;
193
120
  --astryx-spacing-1: 0.375rem;
194
121
  --astryx-spacing-1-5: 0.5625rem;
@@ -245,7 +172,7 @@
245
172
  --astryx-ease-standard: cubic-bezier(0.24, 1, 0.4, 1);
246
173
 
247
174
  --astryx-font-family-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
248
- --astryx-font-family-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
175
+ --astryx-font-family-code: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
249
176
  --astryx-font-family-heading: 'Playwrite US Trad', Georgia, 'Times New Roman', Times, serif;
250
177
 
251
178
  --astryx-font-size-4xs: 0.3125rem;
package/matcha/button.css CHANGED
@@ -6,6 +6,7 @@
6
6
  --astryx-button-primary-foreground: var(--astryx-color-on-accent);
7
7
  --astryx-button-secondary-background: var(--astryx-color-neutral);
8
8
  --astryx-button-secondary-foreground: var(--astryx-color-text-primary);
9
+ --astryx-button-radius: var(--astryx-radius-full);
9
10
  --astryx-button-ghost-background: transparent;
10
11
  --astryx-button-ghost-foreground: var(--astryx-color-text-primary);
11
12
  --astryx-button-destructive-background: var(--astryx-color-error-muted);
package/matcha/card.css CHANGED
@@ -5,6 +5,8 @@
5
5
  --astryx-card-background: var(--astryx-color-background-card);
6
6
  --astryx-card-muted-background: var(--astryx-color-background-muted);
7
7
  --astryx-card-border: var(--astryx-color-border);
8
+ --astryx-card-radius: var(--astryx-radius-page);
9
+ --astryx-card-padding: var(--astryx-spacing-3);
8
10
  --astryx-card-shadow-low: var(--astryx-shadow-low);
9
11
  --astryx-card-shadow-med: var(--astryx-shadow-med);
10
12
  --astryx-card-shadow-high: var(--astryx-shadow-high);
@@ -0,0 +1,8 @@
1
+ @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
3
+ @layer astryx.tokens {
4
+ [data-astryx-theme='matcha'] {
5
+ /* 这一版的间距阶梯是 rem,区块内边距跟着阶梯走。 */
6
+ --astryx-section-padding: var(--astryx-spacing-3);
7
+ }
8
+ }
package/matcha.css CHANGED
@@ -1,5 +1,6 @@
1
1
  /* 这个文件由 `pnpm sync` 生成,不要手改。 */
2
2
  @import './fonts.css';
3
+ @import './data.css';
3
4
  @import './matcha/alert-dialog.css';
4
5
  @import './matcha/avatar.css';
5
6
  @import './matcha/avatar-group.css';
@@ -36,6 +37,7 @@
36
37
  @import './matcha/popover.css';
37
38
  @import './matcha/progress-bar.css';
38
39
  @import './matcha/radio.css';
40
+ @import './matcha/section.css';
39
41
  @import './matcha/segmented-control.css';
40
42
  @import './matcha/side-nav.css';
41
43
  @import './matcha/skeleton.css';
@@ -3,7 +3,7 @@
3
3
  @layer astryx.tokens {
4
4
  :root,
5
5
  [data-astryx-theme='neutral'] {
6
- --astryx-alert-dialog-title-foreground: light-dark(#171717, #fafafa);
7
- --astryx-alert-dialog-description-foreground: light-dark(#525252, #a3a3a3);
6
+ --astryx-alert-dialog-title-foreground: var(--astryx-color-text-primary);
7
+ --astryx-alert-dialog-description-foreground: var(--astryx-color-text-secondary);
8
8
  }
9
9
  }
@@ -3,8 +3,8 @@
3
3
  @layer astryx.tokens {
4
4
  :root,
5
5
  [data-astryx-theme='neutral'] {
6
- --astryx-avatar-group-border-color: light-dark(#fff, #171717);
7
- --astryx-avatar-group-overflow-background: light-dark(#e5e5e5, #525252);
8
- --astryx-avatar-group-overflow-foreground: light-dark(#525252, #e5e5e5);
6
+ --astryx-avatar-group-border-color: var(--astryx-color-background-surface);
7
+ --astryx-avatar-group-overflow-background: var(--astryx-color-background-gray);
8
+ --astryx-avatar-group-overflow-foreground: var(--astryx-color-text-gray);
9
9
  }
10
10
  }
@@ -3,15 +3,15 @@
3
3
  @layer astryx.tokens {
4
4
  :root,
5
5
  [data-astryx-theme='neutral'] {
6
- --astryx-avatar-fallback-background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.1));
6
+ --astryx-avatar-fallback-background: var(--astryx-color-neutral);
7
7
  --astryx-avatar-fallback-foreground: light-dark(#474747, #9e9e9e);
8
- --astryx-avatar-status-dot-border-color: light-dark(#fff, #171717);
8
+ --astryx-avatar-status-dot-border-color: var(--astryx-color-background-surface);
9
9
 
10
- --astryx-avatar-status-dot-neutral-background: light-dark(#fff, #171717);
11
- --astryx-avatar-status-dot-neutral-foreground: light-dark(#737373, #9e9e9e);
12
- --astryx-avatar-status-dot-info-background: light-dark(#0074e2, #6d9cfe);
13
- --astryx-avatar-status-dot-success-background: light-dark(#198100, #64af4c);
10
+ --astryx-avatar-status-dot-neutral-background: var(--astryx-color-background-surface);
11
+ --astryx-avatar-status-dot-neutral-foreground: var(--astryx-color-icon-secondary);
12
+ --astryx-avatar-status-dot-info-background: var(--astryx-theme-neutral-color-status-fill-accent);
13
+ --astryx-avatar-status-dot-success-background: var(--astryx-theme-neutral-color-status-fill-success);
14
14
  --astryx-avatar-status-dot-warning-background: #ffce2f;
15
- --astryx-avatar-status-dot-error-background: light-dark(#e33f4a, #ff705d);
15
+ --astryx-avatar-status-dot-error-background: var(--astryx-theme-neutral-color-status-fill-error);
16
16
  }
17
17
  }