@@ -111,44 +111,44 @@ describe('registerChatMessageRenderer + createProductChatManager integration', (
111111 { /* Box A: contentAlignment, background+Rounded shape, border, fillMaxWidth */ }
112112 < Box
113113 contentAlignment = "topStart"
114- background = { { color : 'backgroundSecondary ' , shape : { tag : 'Rounded' , value : 8 } } }
115- border = { { width : 1 , color : 'textTertiary ' , shape : undefined } }
114+ background = { { color : 'bg.surface.container ' , shape : { tag : 'Rounded' , value : 8 } } }
115+ border = { { width : 1 , color : 'fg.tertiary ' , shape : undefined } }
116116 fillMaxWidth
117117 >
118- < Text style = "titleXL " color = "textSecondary " >
118+ < Text style = "title.medium.regular " color = "fg.secondary " >
119119 Title
120120 </ Text >
121121 </ Box >
122122 { /* Box B: background as plain ColorToken, width/height/minWidth/minHeight */ }
123123 < Box
124124 contentAlignment = "center"
125- background = "backgroundPrimary "
125+ background = "bg.surface.main "
126126 width = { 40 }
127127 height = { 40 }
128128 minWidth = { 20 }
129129 minHeight = { 20 }
130130 >
131131 { /* Inner Box: Circle shape, fillMaxWidth + fillMaxHeight */ }
132132 < Box
133- background = { { color : 'backgroundTertiary ' , shape : { tag : 'Circle' , value : undefined } } }
133+ background = { { color : 'bg.surface.nested ' , shape : { tag : 'Circle' , value : undefined } } }
134134 fillMaxWidth
135135 fillMaxHeight
136136 />
137137 </ Box >
138138 { /* Row: verticalAlignment, horizontalArrangement, margin; covers bodyM/bodyS/caption + success/warning/error */ }
139139 < Row verticalAlignment = "bottom" horizontalArrangement = "spaceEvenly" margin = { 8 } >
140- < Text style = "bodyM " color = "success" >
140+ < Text style = "body.medium.regular " color = "fg. success" >
141141 Item A
142142 </ Text >
143143 < Spacer width = { 8 } height = { 4 } />
144- < Text style = "bodyS " color = "warning" >
144+ < Text style = "body.small.regular " color = "fg. warning" >
145145 Item B
146146 </ Text >
147- < Text style = "caption " color = "error" >
147+ < Text style = "body.small.regular " color = "fg. error" >
148148 Item C
149149 </ Text >
150150 </ Row >
151- < Text style = "headline" color = "textPrimary " >
151+ < Text style = "headline.large " color = "fg.primary " >
152152 Balance: 100 DOT
153153 </ Text >
154154 { /* Spacer with fillMaxHeight */ }
@@ -221,26 +221,26 @@ describe('registerChatMessageRenderer + createProductChatManager integration', (
221221 const boxAMods = boxA . value . modifiers as RendererModifier [ ] ;
222222 expect ( boxAMods ) . toContainEqual ( {
223223 tag : 'background' ,
224- value : { color : 'backgroundSecondary ' , shape : { tag : 'Rounded' , value : 8 } } ,
224+ value : { color : 'bg.surface.container ' , shape : { tag : 'Rounded' , value : 8 } } ,
225225 } ) ;
226226 expect ( boxAMods ) . toContainEqual ( {
227227 tag : 'border' ,
228- value : { width : 1 , color : 'textTertiary ' , shape : undefined } ,
228+ value : { width : 1 , color : 'fg.tertiary ' , shape : undefined } ,
229229 } ) ;
230230 expect ( boxAMods ) . toContainEqual ( { tag : 'fillWidth' , value : true } ) ;
231231
232- // Box A > Text: titleXL + textSecondary
232+ // Box A > Text: title.medium.regular + fg.secondary
233233 const boxAText = boxA . value . children [ 0 ] ;
234234 expect ( boxAText . tag ) . toBe ( 'Text' ) ;
235- expect ( boxAText . value . props . style ) . toBe ( 'titleXL ' ) ;
236- expect ( boxAText . value . props . color ) . toBe ( 'textSecondary ' ) ;
235+ expect ( boxAText . value . props . style ) . toBe ( 'title.medium.regular ' ) ;
236+ expect ( boxAText . value . props . color ) . toBe ( 'fg.secondary ' ) ;
237237 expect ( boxAText . value . children [ 0 ] ) . toEqual ( { tag : 'String' , value : 'Title' } ) ;
238238
239239 // Box B: contentAlignment, background as plain color token, width/height/minWidth/minHeight
240240 expect ( boxB . tag ) . toBe ( 'Box' ) ;
241241 expect ( boxB . value . props . contentAlignment ) . toBe ( 'center' ) ;
242242 const boxBMods = boxB . value . modifiers as RendererModifier [ ] ;
243- expect ( boxBMods ) . toContainEqual ( { tag : 'background' , value : { color : 'backgroundPrimary ' , shape : undefined } } ) ;
243+ expect ( boxBMods ) . toContainEqual ( { tag : 'background' , value : { color : 'bg.surface.main ' , shape : undefined } } ) ;
244244 expect ( boxBMods ) . toContainEqual ( { tag : 'width' , value : 40 } ) ;
245245 expect ( boxBMods ) . toContainEqual ( { tag : 'height' , value : 40 } ) ;
246246 expect ( boxBMods ) . toContainEqual ( { tag : 'minWidth' , value : 20 } ) ;
@@ -252,7 +252,7 @@ describe('registerChatMessageRenderer + createProductChatManager integration', (
252252 const innerBoxMods = innerBox . value . modifiers as RendererModifier [ ] ;
253253 expect ( innerBoxMods ) . toContainEqual ( {
254254 tag : 'background' ,
255- value : { color : 'backgroundTertiary ' , shape : { tag : 'Circle' , value : undefined } } ,
255+ value : { color : 'bg.surface.nested ' , shape : { tag : 'Circle' , value : undefined } } ,
256256 } ) ;
257257 expect ( innerBoxMods ) . toContainEqual ( { tag : 'fillWidth' , value : true } ) ;
258258 expect ( innerBoxMods ) . toContainEqual ( { tag : 'fillHeight' , value : true } ) ;
@@ -267,8 +267,8 @@ describe('registerChatMessageRenderer + createProductChatManager integration', (
267267 // Row > Text: bodyM + success
268268 const rowTextA = rowNode . value . children [ 0 ] ;
269269 expect ( rowTextA . tag ) . toBe ( 'Text' ) ;
270- expect ( rowTextA . value . props . style ) . toBe ( 'bodyM ' ) ;
271- expect ( rowTextA . value . props . color ) . toBe ( 'success' ) ;
270+ expect ( rowTextA . value . props . style ) . toBe ( 'body.medium.regular ' ) ;
271+ expect ( rowTextA . value . props . color ) . toBe ( 'fg. success' ) ;
272272 expect ( rowTextA . value . children [ 0 ] ) . toEqual ( { tag : 'String' , value : 'Item A' } ) ;
273273
274274 // Row > Spacer: width + height modifiers
@@ -281,21 +281,21 @@ describe('registerChatMessageRenderer + createProductChatManager integration', (
281281 // Row > Text: bodyS + warning
282282 const rowTextB = rowNode . value . children [ 2 ] ;
283283 expect ( rowTextB . tag ) . toBe ( 'Text' ) ;
284- expect ( rowTextB . value . props . style ) . toBe ( 'bodyS ' ) ;
285- expect ( rowTextB . value . props . color ) . toBe ( 'warning' ) ;
284+ expect ( rowTextB . value . props . style ) . toBe ( 'body.small.regular ' ) ;
285+ expect ( rowTextB . value . props . color ) . toBe ( 'fg. warning' ) ;
286286 expect ( rowTextB . value . children [ 0 ] ) . toEqual ( { tag : 'String' , value : 'Item B' } ) ;
287287
288288 // Row > Text: caption + error
289289 const rowTextC = rowNode . value . children [ 3 ] ;
290290 expect ( rowTextC . tag ) . toBe ( 'Text' ) ;
291- expect ( rowTextC . value . props . style ) . toBe ( 'caption ' ) ;
292- expect ( rowTextC . value . props . color ) . toBe ( 'error' ) ;
291+ expect ( rowTextC . value . props . style ) . toBe ( 'body.small.regular ' ) ;
292+ expect ( rowTextC . value . props . color ) . toBe ( 'fg. error' ) ;
293293 expect ( rowTextC . value . children [ 0 ] ) . toEqual ( { tag : 'String' , value : 'Item C' } ) ;
294294
295- // Text: headline + textPrimary
295+ // Text: headline.large + fg.primary
296296 expect ( headlineText . tag ) . toBe ( 'Text' ) ;
297- expect ( headlineText . value . props . style ) . toBe ( 'headline' ) ;
298- expect ( headlineText . value . props . color ) . toBe ( 'textPrimary ' ) ;
297+ expect ( headlineText . value . props . style ) . toBe ( 'headline.large ' ) ;
298+ expect ( headlineText . value . props . color ) . toBe ( 'fg.primary ' ) ;
299299 expect ( headlineText . value . children [ 0 ] ) . toEqual ( { tag : 'String' , value : 'Balance: 100 DOT' } ) ;
300300
301301 // Spacer: fillMaxHeight
0 commit comments