@oxy.so/bloom 23.8.1 → 23.9.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 (573) hide show
  1. package/docs/bloom-language-classnames.mdx +11 -11
  2. package/docs/bloom-language-codemod.mdx +30 -5
  3. package/docs/bloom-language-for-agents.mdx +1 -1
  4. package/docs/bloom-language-modifiers.mdx +222 -77
  5. package/docs/bloom-language-nodes.mdx +43 -21
  6. package/docs/bloom-language-tokens.mdx +69 -14
  7. package/docs/bloom-language.mdx +148 -46
  8. package/docs/design-tokens.mdx +12 -2
  9. package/docs/no-nativewind.mdx +5 -4
  10. package/docs/task-catalog.json +1 -1
  11. package/docs/task-catalog.mdx +1 -1
  12. package/docs/theme.mdx +22 -6
  13. package/lib/commonjs/accordion/Accordion.js +12 -12
  14. package/lib/commonjs/accordion/Accordion.js.map +1 -1
  15. package/lib/commonjs/accordion/Accordion.web.js +8 -8
  16. package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
  17. package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
  18. package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
  19. package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
  20. package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
  21. package/lib/commonjs/agent-log/AgentLog.js +131 -174
  22. package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
  23. package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
  24. package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
  25. package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
  26. package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
  27. package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
  28. package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
  29. package/lib/commonjs/app-shell/AppShell.js +5 -7
  30. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  31. package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
  32. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  33. package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
  34. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  35. package/lib/commonjs/app-shell/NotificationBell.js +9 -9
  36. package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
  37. package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
  38. package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
  39. package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
  40. package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
  41. package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
  42. package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
  43. package/lib/commonjs/choice-list/ChoiceList.js +5 -5
  44. package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
  45. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
  46. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  47. package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
  48. package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
  49. package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
  50. package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
  51. package/lib/commonjs/cover-header/CoverHeader.js +3 -3
  52. package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
  53. package/lib/commonjs/data-table/DataTableSelect.js +8 -8
  54. package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
  55. package/lib/commonjs/design-tokens/theme.css +1 -0
  56. package/lib/commonjs/design-tokens/tokens.json +390 -0
  57. package/lib/commonjs/dialog/DialogContent.js +5 -4
  58. package/lib/commonjs/dialog/DialogContent.js.map +1 -1
  59. package/lib/commonjs/dialog/DialogHeader.js +6 -5
  60. package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
  61. package/lib/commonjs/dialog/SheetShell.js +5 -4
  62. package/lib/commonjs/dialog/SheetShell.js.map +1 -1
  63. package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
  64. package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
  65. package/lib/commonjs/floating/lens/lens-cover.js +56 -0
  66. package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
  67. package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
  68. package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
  69. package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
  70. package/lib/commonjs/home-search/BudgetPicker.js +8 -8
  71. package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
  72. package/lib/commonjs/home-search/MoveInPicker.js +7 -7
  73. package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
  74. package/lib/commonjs/icon-circle/IconCircle.js +14 -16
  75. package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
  76. package/lib/commonjs/icons/shared.js +3 -5
  77. package/lib/commonjs/icons/shared.js.map +1 -1
  78. package/lib/commonjs/kbd/Kbd.js +8 -8
  79. package/lib/commonjs/kbd/Kbd.js.map +1 -1
  80. package/lib/commonjs/layout/ResizeHandle.js +6 -5
  81. package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
  82. package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
  83. package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
  84. package/lib/commonjs/list/ListBase.js +3 -3
  85. package/lib/commonjs/list/ListBase.js.map +1 -1
  86. package/lib/commonjs/list/ListPerson.js +3 -3
  87. package/lib/commonjs/list/ListPerson.js.map +1 -1
  88. package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
  89. package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
  90. package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
  91. package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
  92. package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
  93. package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
  94. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
  95. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  96. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
  97. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  98. package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
  99. package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
  100. package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
  101. package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
  102. package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
  103. package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
  104. package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
  105. package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
  106. package/lib/commonjs/panel-routing/expo-router/StackScene.js +42 -24
  107. package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
  108. package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
  109. package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
  110. package/lib/commonjs/project-board/MemberAvatars.js +7 -9
  111. package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
  112. package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
  113. package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
  114. package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
  115. package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
  116. package/lib/commonjs/project-board/styles.js +2 -5
  117. package/lib/commonjs/project-board/styles.js.map +1 -1
  118. package/lib/commonjs/radio/RadioSwatch.js +5 -5
  119. package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
  120. package/lib/commonjs/rating/Rating.js +7 -7
  121. package/lib/commonjs/rating/Rating.js.map +1 -1
  122. package/lib/commonjs/rating/RatingBar.js +8 -8
  123. package/lib/commonjs/rating/RatingBar.js.map +1 -1
  124. package/lib/commonjs/rating/RatingBar.web.js +5 -5
  125. package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
  126. package/lib/commonjs/rating/RatingInput.js +9 -9
  127. package/lib/commonjs/rating/RatingInput.js.map +1 -1
  128. package/lib/commonjs/rating/RatingSummary.js +6 -6
  129. package/lib/commonjs/rating/RatingSummary.js.map +1 -1
  130. package/lib/commonjs/row-actions/RowActions.js +5 -5
  131. package/lib/commonjs/row-actions/RowActions.js.map +1 -1
  132. package/lib/commonjs/select/Select.js +5 -5
  133. package/lib/commonjs/select/Select.js.map +1 -1
  134. package/lib/commonjs/skeleton/Skeleton.js +22 -30
  135. package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
  136. package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
  137. package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
  138. package/lib/commonjs/stay-filters/CountFilter.js +3 -3
  139. package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
  140. package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
  141. package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
  142. package/lib/commonjs/stay-filters/FilterSection.js +12 -12
  143. package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
  144. package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
  145. package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
  146. package/lib/commonjs/stay-search/GuestPicker.js +5 -5
  147. package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
  148. package/lib/commonjs/stepper/Stepper.js +11 -10
  149. package/lib/commonjs/stepper/Stepper.js.map +1 -1
  150. package/lib/commonjs/stepper/StepperRow.js +12 -12
  151. package/lib/commonjs/stepper/StepperRow.js.map +1 -1
  152. package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
  153. package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
  154. package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
  155. package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
  156. package/lib/commonjs/task-list/TaskList.js +14 -15
  157. package/lib/commonjs/task-list/TaskList.js.map +1 -1
  158. package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
  159. package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
  160. package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
  161. package/lib/commonjs/theme/build-theme.js +39 -9
  162. package/lib/commonjs/theme/build-theme.js.map +1 -1
  163. package/lib/commonjs/theme/canonical-tokens.js +40 -0
  164. package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
  165. package/lib/commonjs/theme/color-policy.js +3 -0
  166. package/lib/commonjs/theme/color-policy.js.map +1 -1
  167. package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
  168. package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
  169. package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
  170. package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
  171. package/lib/commonjs/theme/color-tokens.js +32 -10
  172. package/lib/commonjs/theme/color-tokens.js.map +1 -1
  173. package/lib/commonjs/theme/color-utils.js +4 -0
  174. package/lib/commonjs/theme/color-utils.js.map +1 -1
  175. package/lib/commonjs/theme/default-token-vars.js +92 -0
  176. package/lib/commonjs/theme/default-token-vars.js.map +1 -0
  177. package/lib/commonjs/theme/index.js +6 -0
  178. package/lib/commonjs/theme/index.js.map +1 -1
  179. package/lib/commonjs/theme/index.web.js +6 -0
  180. package/lib/commonjs/theme/index.web.js.map +1 -1
  181. package/lib/commonjs/theme/prepaint-palettes.js +1 -5
  182. package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
  183. package/lib/commonjs/theme/token-registry.js +7 -28
  184. package/lib/commonjs/theme/token-registry.js.map +1 -1
  185. package/lib/commonjs/theme/use-theme-paint.js +28 -0
  186. package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
  187. package/lib/commonjs/typography/Typography.js +27 -27
  188. package/lib/commonjs/typography/Typography.js.map +1 -1
  189. package/lib/commonjs/web-search/WebSearch.js +18 -19
  190. package/lib/commonjs/web-search/WebSearch.js.map +1 -1
  191. package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
  192. package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
  193. package/lib/commonjs/wizard/WizardProgress.js +5 -5
  194. package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
  195. package/lib/module/accordion/Accordion.js +12 -12
  196. package/lib/module/accordion/Accordion.js.map +1 -1
  197. package/lib/module/accordion/Accordion.web.js +8 -8
  198. package/lib/module/accordion/Accordion.web.js.map +1 -1
  199. package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
  200. package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
  201. package/lib/module/agent-creator/EmotionPicker.js +3 -5
  202. package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
  203. package/lib/module/agent-log/AgentLog.js +131 -174
  204. package/lib/module/agent-log/AgentLog.js.map +1 -1
  205. package/lib/module/agent-reply/AgentProfile.js +7 -10
  206. package/lib/module/agent-reply/AgentProfile.js.map +1 -1
  207. package/lib/module/agent-thinking/AgentThinking.js +8 -7
  208. package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
  209. package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
  210. package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
  211. package/lib/module/app-shell/AppShell.js +5 -7
  212. package/lib/module/app-shell/AppShell.js.map +1 -1
  213. package/lib/module/app-shell/AppShellEngine.js +73 -29
  214. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  215. package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
  216. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  217. package/lib/module/app-shell/NotificationBell.js +9 -9
  218. package/lib/module/app-shell/NotificationBell.js.map +1 -1
  219. package/lib/module/app-shell/PanelReorderHandle.js +4 -6
  220. package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
  221. package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
  222. package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
  223. package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
  224. package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
  225. package/lib/module/choice-list/ChoiceList.js +5 -5
  226. package/lib/module/choice-list/ChoiceList.js.map +1 -1
  227. package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
  228. package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  229. package/lib/module/connection-dots/ConnectionDots.js +4 -4
  230. package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
  231. package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
  232. package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
  233. package/lib/module/cover-header/CoverHeader.js +3 -3
  234. package/lib/module/cover-header/CoverHeader.js.map +1 -1
  235. package/lib/module/data-table/DataTableSelect.js +8 -8
  236. package/lib/module/data-table/DataTableSelect.js.map +1 -1
  237. package/lib/module/design-tokens/theme.css +1 -0
  238. package/lib/module/design-tokens/tokens.json +390 -0
  239. package/lib/module/dialog/DialogContent.js +5 -4
  240. package/lib/module/dialog/DialogContent.js.map +1 -1
  241. package/lib/module/dialog/DialogHeader.js +6 -5
  242. package/lib/module/dialog/DialogHeader.js.map +1 -1
  243. package/lib/module/dialog/SheetShell.js +5 -4
  244. package/lib/module/dialog/SheetShell.js.map +1 -1
  245. package/lib/module/expandable-text/ExpandableText.js +3 -3
  246. package/lib/module/expandable-text/ExpandableText.js.map +1 -1
  247. package/lib/module/floating/lens/lens-cover.js +51 -0
  248. package/lib/module/floating/lens/lens-cover.js.map +1 -0
  249. package/lib/module/floating/lens/native-lens.js.map +1 -1
  250. package/lib/module/grouped-section/GroupedSection.js +16 -15
  251. package/lib/module/grouped-section/GroupedSection.js.map +1 -1
  252. package/lib/module/home-search/BudgetPicker.js +8 -8
  253. package/lib/module/home-search/BudgetPicker.js.map +1 -1
  254. package/lib/module/home-search/MoveInPicker.js +7 -7
  255. package/lib/module/home-search/MoveInPicker.js.map +1 -1
  256. package/lib/module/icon-circle/IconCircle.js +14 -16
  257. package/lib/module/icon-circle/IconCircle.js.map +1 -1
  258. package/lib/module/icons/shared.js +3 -5
  259. package/lib/module/icons/shared.js.map +1 -1
  260. package/lib/module/kbd/Kbd.js +8 -8
  261. package/lib/module/kbd/Kbd.js.map +1 -1
  262. package/lib/module/layout/ResizeHandle.js +6 -5
  263. package/lib/module/layout/ResizeHandle.js.map +1 -1
  264. package/lib/module/link-preview/LinkPreviewCard.js +24 -26
  265. package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
  266. package/lib/module/list/ListBase.js +3 -3
  267. package/lib/module/list/ListBase.js.map +1 -1
  268. package/lib/module/list/ListPerson.js +3 -3
  269. package/lib/module/list/ListPerson.js.map +1 -1
  270. package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
  271. package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
  272. package/lib/module/markdown/InlineMarkdown.js +9 -11
  273. package/lib/module/markdown/InlineMarkdown.js.map +1 -1
  274. package/lib/module/markdown/MarkdownBlocks.js +35 -43
  275. package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
  276. package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
  277. package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  278. package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
  279. package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  280. package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
  281. package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
  282. package/lib/module/notifications/NotificationsScreen.js +21 -27
  283. package/lib/module/notifications/NotificationsScreen.js.map +1 -1
  284. package/lib/module/overlay/OverlayInertBoundary.js +33 -12
  285. package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
  286. package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
  287. package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
  288. package/lib/module/panel-routing/expo-router/StackScene.js +42 -24
  289. package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
  290. package/lib/module/phone-input/CountryCodeSelect.js +4 -4
  291. package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
  292. package/lib/module/project-board/MemberAvatars.js +7 -9
  293. package/lib/module/project-board/MemberAvatars.js.map +1 -1
  294. package/lib/module/project-board/ProjectBoardBase.js +4 -7
  295. package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
  296. package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
  297. package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
  298. package/lib/module/project-board/styles.js +3 -6
  299. package/lib/module/project-board/styles.js.map +1 -1
  300. package/lib/module/radio/RadioSwatch.js +5 -5
  301. package/lib/module/radio/RadioSwatch.js.map +1 -1
  302. package/lib/module/rating/Rating.js +7 -7
  303. package/lib/module/rating/Rating.js.map +1 -1
  304. package/lib/module/rating/RatingBar.js +8 -8
  305. package/lib/module/rating/RatingBar.js.map +1 -1
  306. package/lib/module/rating/RatingBar.web.js +5 -5
  307. package/lib/module/rating/RatingBar.web.js.map +1 -1
  308. package/lib/module/rating/RatingInput.js +9 -9
  309. package/lib/module/rating/RatingInput.js.map +1 -1
  310. package/lib/module/rating/RatingSummary.js +6 -6
  311. package/lib/module/rating/RatingSummary.js.map +1 -1
  312. package/lib/module/row-actions/RowActions.js +5 -5
  313. package/lib/module/row-actions/RowActions.js.map +1 -1
  314. package/lib/module/select/Select.js +5 -5
  315. package/lib/module/select/Select.js.map +1 -1
  316. package/lib/module/skeleton/Skeleton.js +22 -30
  317. package/lib/module/skeleton/Skeleton.js.map +1 -1
  318. package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
  319. package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
  320. package/lib/module/stay-filters/CountFilter.js +3 -3
  321. package/lib/module/stay-filters/CountFilter.js.map +1 -1
  322. package/lib/module/stay-filters/FilterFooter.js +7 -7
  323. package/lib/module/stay-filters/FilterFooter.js.map +1 -1
  324. package/lib/module/stay-filters/FilterSection.js +12 -12
  325. package/lib/module/stay-filters/FilterSection.js.map +1 -1
  326. package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
  327. package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
  328. package/lib/module/stay-search/GuestPicker.js +5 -5
  329. package/lib/module/stay-search/GuestPicker.js.map +1 -1
  330. package/lib/module/stepper/Stepper.js +11 -10
  331. package/lib/module/stepper/Stepper.js.map +1 -1
  332. package/lib/module/stepper/StepperRow.js +12 -12
  333. package/lib/module/stepper/StepperRow.js.map +1 -1
  334. package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
  335. package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
  336. package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
  337. package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
  338. package/lib/module/task-list/TaskList.js +14 -15
  339. package/lib/module/task-list/TaskList.js.map +1 -1
  340. package/lib/module/theme/BloomThemeProvider.js +208 -224
  341. package/lib/module/theme/BloomThemeProvider.js.map +1 -1
  342. package/lib/module/theme/build-theme-from-seed.js +1 -1
  343. package/lib/module/theme/build-theme.js +38 -9
  344. package/lib/module/theme/build-theme.js.map +1 -1
  345. package/lib/module/theme/canonical-tokens.js +36 -0
  346. package/lib/module/theme/canonical-tokens.js.map +1 -0
  347. package/lib/module/theme/color-policy.js +3 -0
  348. package/lib/module/theme/color-policy.js.map +1 -1
  349. package/lib/module/theme/color-scope/resolve-scope.js +46 -5
  350. package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
  351. package/lib/module/theme/color-scope/use-scope.js +2 -6
  352. package/lib/module/theme/color-scope/use-scope.js.map +1 -1
  353. package/lib/module/theme/color-tokens.js +30 -8
  354. package/lib/module/theme/color-tokens.js.map +1 -1
  355. package/lib/module/theme/color-utils.js +4 -0
  356. package/lib/module/theme/color-utils.js.map +1 -1
  357. package/lib/module/theme/default-token-vars.js +88 -0
  358. package/lib/module/theme/default-token-vars.js.map +1 -0
  359. package/lib/module/theme/index.js +1 -1
  360. package/lib/module/theme/index.js.map +1 -1
  361. package/lib/module/theme/index.web.js +1 -1
  362. package/lib/module/theme/index.web.js.map +1 -1
  363. package/lib/module/theme/prepaint-palettes.js +2 -6
  364. package/lib/module/theme/prepaint-palettes.js.map +1 -1
  365. package/lib/module/theme/token-registry.js +1 -27
  366. package/lib/module/theme/token-registry.js.map +1 -1
  367. package/lib/module/theme/use-theme-paint.js +30 -3
  368. package/lib/module/theme/use-theme-paint.js.map +1 -1
  369. package/lib/module/typography/Typography.js +27 -27
  370. package/lib/module/typography/Typography.js.map +1 -1
  371. package/lib/module/web-search/WebSearch.js +18 -19
  372. package/lib/module/web-search/WebSearch.js.map +1 -1
  373. package/lib/module/wizard/WizardFooterBase.js +10 -10
  374. package/lib/module/wizard/WizardFooterBase.js.map +1 -1
  375. package/lib/module/wizard/WizardProgress.js +5 -5
  376. package/lib/module/wizard/WizardProgress.js.map +1 -1
  377. package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  378. package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
  379. package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
  380. package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
  381. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  382. package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
  383. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
  384. package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
  385. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
  386. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
  387. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
  388. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
  389. package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
  391. package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  393. package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
  395. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
  397. package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
  399. package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
  400. package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
  401. package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
  403. package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
  404. package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
  406. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
  407. package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
  408. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
  409. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
  410. package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
  411. package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
  412. package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
  413. package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
  414. package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
  415. package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
  416. package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
  417. package/lib/typescript/commonjs/theme/index.d.ts +1 -1
  418. package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
  419. package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
  420. package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
  421. package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
  422. package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
  423. package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
  424. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
  425. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
  426. package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
  427. package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
  428. package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  429. package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
  430. package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
  431. package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
  432. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  433. package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
  434. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
  435. package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
  436. package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
  437. package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
  438. package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
  439. package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
  440. package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
  441. package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
  442. package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
  443. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  444. package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
  445. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
  446. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  447. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
  448. package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
  449. package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
  450. package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
  451. package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
  452. package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
  453. package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
  454. package/lib/typescript/module/theme/build-theme.d.ts +9 -0
  455. package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
  456. package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
  457. package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
  458. package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
  459. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
  460. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
  461. package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
  462. package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
  463. package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
  464. package/lib/typescript/module/theme/color-utils.d.ts +3 -0
  465. package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
  466. package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
  467. package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
  468. package/lib/typescript/module/theme/index.d.ts +1 -1
  469. package/lib/typescript/module/theme/index.d.ts.map +1 -1
  470. package/lib/typescript/module/theme/index.web.d.ts +1 -1
  471. package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
  472. package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
  473. package/lib/typescript/module/theme/token-registry.d.ts +1 -16
  474. package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
  475. package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
  476. package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
  477. package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
  478. package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
  479. package/package.json +2 -1
  480. package/src/accordion/Accordion.tsx +6 -6
  481. package/src/accordion/Accordion.web.tsx +6 -6
  482. package/src/agent-creator/AgentCreatorSection.tsx +4 -6
  483. package/src/agent-creator/EmotionPicker.tsx +3 -3
  484. package/src/agent-log/AgentLog.tsx +8 -21
  485. package/src/agent-reply/AgentProfile.tsx +4 -5
  486. package/src/agent-thinking/AgentThinking.tsx +4 -3
  487. package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
  488. package/src/app-shell/AppShell.tsx +3 -3
  489. package/src/app-shell/AppShellEngine.tsx +67 -19
  490. package/src/app-shell/AppShellPanelLayout.tsx +3 -3
  491. package/src/app-shell/NotificationBell.tsx +6 -6
  492. package/src/app-shell/PanelReorderHandle.tsx +4 -4
  493. package/src/avatar-group/AvatarGroupBase.tsx +6 -6
  494. package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
  495. package/src/choice-list/ChoiceList.tsx +3 -3
  496. package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
  497. package/src/connection-dots/ConnectionDots.tsx +4 -4
  498. package/src/connection-dots/ConnectionDots.web.tsx +4 -4
  499. package/src/cover-header/CoverHeader.tsx +3 -3
  500. package/src/data-table/DataTableSelect.tsx +4 -4
  501. package/src/design-tokens/theme.css +1 -0
  502. package/src/design-tokens/tokens.json +390 -0
  503. package/src/dialog/DialogContent.tsx +3 -2
  504. package/src/dialog/DialogHeader.tsx +6 -5
  505. package/src/dialog/SheetShell.tsx +3 -2
  506. package/src/expandable-text/ExpandableText.tsx +3 -3
  507. package/src/floating/lens/lens-cover.tsx +29 -0
  508. package/src/floating/lens/native-lens.ts +2 -0
  509. package/src/grouped-section/GroupedSection.tsx +7 -6
  510. package/src/home-search/BudgetPicker.tsx +4 -4
  511. package/src/home-search/MoveInPicker.tsx +3 -3
  512. package/src/icon-circle/IconCircle.tsx +5 -5
  513. package/src/icons/shared.tsx +3 -3
  514. package/src/kbd/Kbd.tsx +4 -4
  515. package/src/layout/ResizeHandle.tsx +7 -5
  516. package/src/link-preview/LinkPreviewCard.tsx +7 -7
  517. package/src/list/ListBase.tsx +3 -6
  518. package/src/list/ListPerson.tsx +3 -3
  519. package/src/listing-editor/ListingPreviewPane.tsx +13 -13
  520. package/src/markdown/InlineMarkdown.tsx +3 -3
  521. package/src/markdown/MarkdownBlocks.tsx +14 -14
  522. package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
  523. package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
  524. package/src/notifications/NotificationPermissionSheet.tsx +3 -3
  525. package/src/notifications/NotificationsScreen.tsx +9 -9
  526. package/src/overlay/OverlayInertBoundary.tsx +10 -1
  527. package/src/page-header/PageHeaderTitleInput.tsx +4 -4
  528. package/src/panel-routing/expo-router/StackScene.tsx +7 -2
  529. package/src/phone-input/CountryCodeSelect.tsx +4 -4
  530. package/src/project-board/MemberAvatars.tsx +3 -3
  531. package/src/project-board/ProjectBoardBase.tsx +4 -5
  532. package/src/project-board/ProjectBoardCanvas.tsx +2 -2
  533. package/src/project-board/styles.ts +3 -4
  534. package/src/radio/RadioSwatch.tsx +3 -3
  535. package/src/rating/Rating.tsx +5 -5
  536. package/src/rating/RatingBar.tsx +4 -4
  537. package/src/rating/RatingBar.web.tsx +3 -3
  538. package/src/rating/RatingInput.tsx +5 -5
  539. package/src/rating/RatingSummary.tsx +4 -4
  540. package/src/row-actions/RowActions.tsx +3 -3
  541. package/src/select/Select.tsx +3 -3
  542. package/src/skeleton/Skeleton.tsx +9 -9
  543. package/src/stay-filters/AvailabilityFilter.tsx +3 -3
  544. package/src/stay-filters/CountFilter.tsx +3 -3
  545. package/src/stay-filters/FilterFooter.tsx +4 -4
  546. package/src/stay-filters/FilterSection.tsx +5 -5
  547. package/src/stay-filters/SwitchFilterRow.tsx +4 -4
  548. package/src/stay-search/GuestPicker.tsx +3 -6
  549. package/src/stepper/Stepper.tsx +6 -5
  550. package/src/stepper/StepperRow.tsx +5 -5
  551. package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
  552. package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
  553. package/src/task-list/TaskList.tsx +14 -16
  554. package/src/theme/BloomThemeProvider.tsx +33 -33
  555. package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
  556. package/src/theme/build-theme-from-seed.ts +1 -1
  557. package/src/theme/build-theme.ts +52 -11
  558. package/src/theme/canonical-tokens.ts +108 -0
  559. package/src/theme/color-policy.ts +3 -0
  560. package/src/theme/color-scope/resolve-scope.ts +47 -8
  561. package/src/theme/color-scope/use-scope.ts +2 -6
  562. package/src/theme/color-tokens.ts +7 -7
  563. package/src/theme/color-utils.ts +4 -0
  564. package/src/theme/default-token-vars.ts +86 -0
  565. package/src/theme/index.ts +1 -1
  566. package/src/theme/index.web.ts +1 -1
  567. package/src/theme/prepaint-palettes.ts +2 -3
  568. package/src/theme/token-registry.ts +1 -101
  569. package/src/theme/use-theme-paint.ts +26 -3
  570. package/src/typography/Typography.tsx +12 -12
  571. package/src/web-search/WebSearch.tsx +16 -18
  572. package/src/wizard/WizardFooterBase.tsx +5 -5
  573. package/src/wizard/WizardProgress.tsx +5 -5
@@ -3,7 +3,7 @@ import { memo } from 'react';
3
3
  import { Meter } from '../stat-bar/index.web';
4
4
  import { resolveNativeWebStyle } from '../styles/resolve-native-web-style';
5
5
  import { useInteractiveWebCss } from '../styles/interactive-web-css';
6
- import { useTheme } from '../theme/use-theme';
6
+ import { useColorTokens } from '../theme/color-tokens';
7
7
  import { TYPE_SCALE } from '../typography/scale';
8
8
  import type { RatingBarProps } from './types';
9
9
  const regular = TYPE_SCALE['body-regular'];
@@ -31,9 +31,9 @@ export const RatingBar = memo(function RatingBar({
31
31
  fillStyle,
32
32
  }: RatingBarProps) {
33
33
  useInteractiveWebCss('bloom-rating-bar', CSS);
34
- const theme = useTheme();
34
+ const tokens = useColorTokens();
35
35
  const vars = {
36
- '--bloom-rating-text': theme.colors.text,
36
+ '--bloom-rating-text': tokens.foreground,
37
37
  '--bloom-rating-label-width': `${labelWidth ?? 0}px`,
38
38
  } as React.CSSProperties;
39
39
  return (
@@ -13,7 +13,7 @@ import { useRingOffsetStyle } from '../styles/surface-levels';
13
13
  import { DISABLED_OPACITY } from '../styles/tokens';
14
14
  import { webDataSet } from '../styles/web-data';
15
15
  import type { WebCssStyle } from '../styles/web-view-style';
16
- import { useTheme } from '../theme/use-theme';
16
+ import { useColorTokens } from '../theme/color-tokens';
17
17
  import { useMessages } from '../locale/messages';
18
18
  import { RATING_MESSAGES } from './messages';
19
19
  import type { RatingInputProps, RatingInputSize } from './types';
@@ -97,7 +97,7 @@ function RatingInputComponent({
97
97
  );
98
98
  const size = inheritedSize === 'xs' ? 'sm' : inheritedSize;
99
99
 
100
- const theme = useTheme();
100
+ const tokens = useColorTokens();
101
101
  const { messages } = useMessages(RATING_MESSAGES);
102
102
  const formatStarLabel = formatStarLabelProp ?? messages.star;
103
103
  // A row of stars draws no words, so the `radiogroup`'s name is a prop or the
@@ -162,12 +162,12 @@ function RatingInputComponent({
162
162
  // The roving tab stop: the chosen star, or the first one while nothing is
163
163
  // chosen, so a keyboard reaches the group in one Tab either way.
164
164
  const tabStop = chosen ?? 1;
165
- const emptyColor = theme.colors.border;
165
+ const emptyColor = tokens.border;
166
166
 
167
167
  const starStyle: WebCssStyle = {
168
168
  padding: 2,
169
169
  borderRadius: 6,
170
- '--bloom-rating-input-ring': theme.colors.primary,
170
+ '--bloom-rating-input-ring': tokens.primary,
171
171
  ...ringOffset,
172
172
  };
173
173
 
@@ -234,7 +234,7 @@ function RatingInputComponent({
234
234
  <Glyph
235
235
  width={config.star}
236
236
  height={config.star}
237
- fill={filled ? theme.colors.primary : emptyColor}
237
+ fill={filled ? tokens.primary : emptyColor}
238
238
  />
239
239
  </View>
240
240
  </Pressable>
@@ -6,7 +6,7 @@ import { formatNumber, formatPercent } from '../locale/format-number';
6
6
  import { useMessages } from '../locale/messages';
7
7
  import { Meter } from '../stat-bar';
8
8
  import { IS_WEB } from '../styles/platform';
9
- import { useTheme } from '../theme/use-theme';
9
+ import { useColorTokens } from '../theme/color-tokens';
10
10
  import { Text } from '../typography';
11
11
  import { RATING_MESSAGES } from './messages';
12
12
  import type { RatingSummaryProps } from './types';
@@ -46,8 +46,8 @@ function RatingSummaryComponent({
46
46
  testID,
47
47
  }: RatingSummaryProps) {
48
48
  const { locale, messages } = useMessages(RATING_MESSAGES);
49
- const theme = useTheme();
50
- const secondary = theme.colors.textSecondary;
49
+ const tokens = useColorTokens();
50
+ const secondary = tokens.mutedForeground;
51
51
 
52
52
  if (average === null) {
53
53
  return (
@@ -82,7 +82,7 @@ function RatingSummaryComponent({
82
82
  style={{ alignItems: 'center' }}
83
83
  testID={testID ? `${testID}-average` : undefined}
84
84
  >
85
- <Text variant="display-2-bold" style={{ color: theme.colors.text }}>
85
+ <Text variant="display-2-bold" style={{ color: tokens.foreground }}>
86
86
  {value}
87
87
  </Text>
88
88
  <Text variant="body-2-semibold" style={{ color: secondary }}>
@@ -10,7 +10,7 @@ import {
10
10
  } from '../dropdown-menu';
11
11
  import { RiMore2Fill } from '../icons/remix/RiMore2Fill';
12
12
  import { useCommonMessages } from '../locale/common-messages';
13
- import { useTheme } from '../theme/use-theme';
13
+ import { useColorTokens } from '../theme/color-tokens';
14
14
  import { RowActionButton } from './RowActionButton';
15
15
  import type { RowActionsProps } from './types';
16
16
 
@@ -37,7 +37,7 @@ export function RowActions({
37
37
  }: RowActionsProps) {
38
38
  const common = useCommonMessages();
39
39
  const menuLabel = menuLabelProp ?? common.moreActions;
40
- const theme = useTheme();
40
+ const tokens = useColorTokens();
41
41
  const [open, setOpen] = useState(false);
42
42
  const menuName = common.labelFor(menuLabel, name);
43
43
 
@@ -92,7 +92,7 @@ export function RowActions({
92
92
  <Icon
93
93
  width={MENU_ICON_SIZE}
94
94
  height={MENU_ICON_SIZE}
95
- fill={theme.colors.textSecondary}
95
+ fill={tokens.mutedForeground}
96
96
  />
97
97
  ) : undefined
98
98
  }
@@ -19,7 +19,7 @@ import {
19
19
  } from 'react';
20
20
  import { FlatList, StyleSheet, Text as RNText, View } from 'react-native';
21
21
 
22
- import { useTheme } from '../theme/use-theme';
22
+ import { useColorTokens } from '../theme/color-tokens';
23
23
  import { Text } from '../typography';
24
24
  import { useDialogContext, useDialogControl } from '../dialog/context';
25
25
  import { SheetShell } from '../dialog/SheetShell';
@@ -443,7 +443,7 @@ function SelectContentInner<T>({
443
443
  onOpenChange,
444
444
  ...contextValues
445
445
  }: SelectContentInnerProps<T>) {
446
- const theme = useTheme();
446
+ const tokens = useColorTokens();
447
447
  const density = useMenuDensity();
448
448
  const { messages } = useMessages(SELECT_MESSAGES);
449
449
  const label = labelProp ?? messages.selectOption;
@@ -473,7 +473,7 @@ function SelectContentInner<T>({
473
473
  label={label}
474
474
  header={
475
475
  <View style={styles.sheetHeader}>
476
- <Text variant="title-2-semibold" style={{ color: theme.colors.text }}>
476
+ <Text variant="title-2-semibold" style={{ color: tokens.foreground }}>
477
477
  {label}
478
478
  </Text>
479
479
  </View>
@@ -15,7 +15,7 @@ import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
15
15
  import { useCommonMessages } from '../locale/common-messages';
16
16
  import type { SkeletonRegionProps } from './types';
17
17
 
18
- import { useTheme } from '../theme/use-theme';
18
+ import { useColorTokens } from '../theme/color-tokens';
19
19
  import { borderRadius } from '../styles/tokens';
20
20
  import { SUPPORTS_NATIVE_DRIVER } from '../styles/native-driver';
21
21
  import { adoptStyleSheet } from '../styles/adopt-style-sheet';
@@ -156,7 +156,7 @@ export function Region({ children, label, testID, style }: SkeletonRegionProps)
156
156
  Region.displayName = 'Skeleton.Region';
157
157
 
158
158
  export function Text({ blend, style }: { style?: TextStyle | TextStyle[]; blend?: boolean }) {
159
- const { colors } = useTheme();
159
+ const tokens = useColorTokens();
160
160
  const motion = useShapeMotion(blend);
161
161
  const flattened = StyleSheet.flatten(style);
162
162
  const width = (flattened as ViewStyle)?.width;
@@ -176,7 +176,7 @@ export function Text({ blend, style }: { style?: TextStyle | TextStyle[]; blend?
176
176
  style={[
177
177
  styles.textInner,
178
178
  {
179
- backgroundColor: colors.contrast50,
179
+ backgroundColor: tokens.muted,
180
180
  height: lineHeight * 0.7,
181
181
  },
182
182
  ]}
@@ -197,7 +197,7 @@ export function Circle({
197
197
  blend?: boolean;
198
198
  style?: ViewStyle | ViewStyle[];
199
199
  }) {
200
- const { colors } = useTheme();
200
+ const tokens = useColorTokens();
201
201
  const motion = useShapeMotion(blend, style);
202
202
 
203
203
  return (
@@ -207,7 +207,7 @@ export function Circle({
207
207
  style={[
208
208
  styles.circle,
209
209
  {
210
- backgroundColor: colors.contrast50,
210
+ backgroundColor: tokens.muted,
211
211
  width: size,
212
212
  height: size,
213
213
  },
@@ -229,7 +229,7 @@ export function Pill({
229
229
  blend?: boolean;
230
230
  style?: ViewStyle | ViewStyle[];
231
231
  }) {
232
- const { colors } = useTheme();
232
+ const tokens = useColorTokens();
233
233
  const motion = useShapeMotion(blend, style);
234
234
 
235
235
  return (
@@ -239,7 +239,7 @@ export function Pill({
239
239
  style={[
240
240
  styles.pill,
241
241
  {
242
- backgroundColor: colors.contrast50,
242
+ backgroundColor: tokens.muted,
243
243
  width: size * 1.618,
244
244
  height: size,
245
245
  },
@@ -276,7 +276,7 @@ export function Box({
276
276
  blend?: boolean;
277
277
  style?: ViewStyle | ViewStyle[];
278
278
  }) {
279
- const { colors } = useTheme();
279
+ const tokens = useColorTokens();
280
280
  const motion = useShapeMotion(blend, style);
281
281
 
282
282
  return (
@@ -285,7 +285,7 @@ export function Box({
285
285
  motion={motion}
286
286
  style={[
287
287
  {
288
- backgroundColor: colors.contrast50,
288
+ backgroundColor: tokens.muted,
289
289
  width,
290
290
  height,
291
291
  borderRadius,
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
2
2
  import { View } from 'react-native';
3
3
 
4
4
  import { DatePicker } from '../date-picker';
5
- import { useTheme } from '../theme/use-theme';
5
+ import { useColorTokens } from '../theme/color-tokens';
6
6
  import { Text } from '../typography';
7
7
  import { SwitchFilterRow } from './SwitchFilterRow';
8
8
  import { useMessages } from '../locale/messages';
@@ -39,7 +39,7 @@ function AvailabilityFilterComponent({
39
39
  const availableNowDescription = availableNowDescriptionProp ?? messages.availableNowDescription;
40
40
  const dateLabel = dateLabelProp ?? messages.availableFrom;
41
41
  const datePlaceholder = datePlaceholderProp ?? messages.anyDate;
42
- const theme = useTheme();
42
+ const tokens = useColorTokens();
43
43
  return (
44
44
  <View testID={testID} style={[{ gap: 24 }, style]}>
45
45
  <SwitchFilterRow
@@ -56,7 +56,7 @@ function AvailabilityFilterComponent({
56
56
  style={{
57
57
  flex: 1,
58
58
  minWidth: 0,
59
- color: availableNow ? theme.colors.textSecondary : theme.colors.text,
59
+ color: availableNow ? tokens.mutedForeground : tokens.foreground,
60
60
  }}
61
61
  >
62
62
  {dateLabel}
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
2
2
  import { View } from 'react-native';
3
3
 
4
4
  import { ChipRow } from '../chip';
5
- import { useTheme } from '../theme/use-theme';
5
+ import { useColorTokens } from '../theme/color-tokens';
6
6
  import { Text } from '../typography';
7
7
  import { FilterChip } from './FilterChip';
8
8
  import { useMessages } from '../locale/messages';
@@ -39,7 +39,7 @@ function CountFilterComponent({
39
39
  }: CountFilterProps) {
40
40
  const { messages } = useMessages(STAY_FILTERS_MESSAGES);
41
41
  const anyLabel = anyLabelProp ?? messages.any;
42
- const theme = useTheme();
42
+ const tokens = useColorTokens();
43
43
  const name = accessibilityLabel ?? (typeof title === 'string' ? title : undefined);
44
44
  const counts: number[] = [];
45
45
  for (let n = min; n <= max; n += 1) counts.push(n);
@@ -47,7 +47,7 @@ function CountFilterComponent({
47
47
  return (
48
48
  <View testID={testID} style={[{ gap: 16 }, style]}>
49
49
  {typeof title === 'string' ? (
50
- <Text variant="body-regular" style={{ color: theme.colors.text }}>
50
+ <Text variant="body-regular" style={{ color: tokens.foreground }}>
51
51
  {title}
52
52
  </Text>
53
53
  ) : (
@@ -3,7 +3,7 @@ import { View } from 'react-native';
3
3
 
4
4
  import { Button } from '../button';
5
5
 
6
- import { useTheme } from '../theme/use-theme';
6
+ import { useColorTokens } from '../theme/color-tokens';
7
7
  import { useMessages } from '../locale/messages';
8
8
  import { STAY_FILTERS_MESSAGES } from './messages';
9
9
  import type { FilterFooterProps } from './types';
@@ -34,7 +34,7 @@ function FilterFooterComponent({
34
34
  }: FilterFooterProps) {
35
35
  const { messages } = useMessages(STAY_FILTERS_MESSAGES);
36
36
  const clearLabel = clearLabelProp ?? messages.clearAll;
37
- const theme = useTheme();
37
+ const tokens = useColorTokens();
38
38
 
39
39
  return (
40
40
  <View
@@ -50,8 +50,8 @@ function FilterFooterComponent({
50
50
  paddingLeft: 24,
51
51
  paddingRight: 24,
52
52
  borderTopWidth: 1,
53
- borderTopColor: theme.colors.border,
54
- backgroundColor: theme.colors.background,
53
+ borderTopColor: tokens.border,
54
+ backgroundColor: tokens.background,
55
55
  },
56
56
  style,
57
57
  ]}
@@ -2,7 +2,7 @@ import React, { memo, useMemo } from 'react';
2
2
  import { View } from 'react-native';
3
3
 
4
4
  import { resolveButtonRamps } from '../button/shared';
5
- import { useTheme } from '../theme/use-theme';
5
+ import { useColorTokens } from '../theme/color-tokens';
6
6
  import { Text } from '../typography';
7
7
  import type { FilterSectionProps } from './types';
8
8
 
@@ -28,7 +28,7 @@ function FilterSectionComponent({
28
28
  style,
29
29
  testID,
30
30
  }: FilterSectionProps) {
31
- const theme = useTheme();
31
+ const tokens = useColorTokens();
32
32
  const name = accessibilityLabel ?? (typeof title === 'string' ? title : undefined);
33
33
 
34
34
  return (
@@ -42,7 +42,7 @@ function FilterSectionComponent({
42
42
  paddingTop: 32,
43
43
  paddingBottom: 32,
44
44
  borderBottomWidth: divider ? 1 : 0,
45
- borderBottomColor: theme.colors.border,
45
+ borderBottomColor: tokens.border,
46
46
  },
47
47
  style,
48
48
  ]}
@@ -53,7 +53,7 @@ function FilterSectionComponent({
53
53
  variant="headline-semibold"
54
54
  role="heading"
55
55
  aria-level={3}
56
- style={{ color: theme.colors.text }}
56
+ style={{ color: tokens.foreground }}
57
57
  >
58
58
  {title}
59
59
  </Text>
@@ -61,7 +61,7 @@ function FilterSectionComponent({
61
61
  title
62
62
  )}
63
63
  {description == null ? null : typeof description === 'string' ? (
64
- <Text variant="body-regular" style={{ color: theme.colors.textSecondary }}>
64
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
65
65
  {description}
66
66
  </Text>
67
67
  ) : (
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
2
2
  import { View } from 'react-native';
3
3
 
4
4
  import { Switch } from '../switch';
5
- import { useTheme } from '../theme/use-theme';
5
+ import { useColorTokens } from '../theme/color-tokens';
6
6
  import { Text } from '../typography';
7
7
  import type { SwitchFilterRowProps } from './types';
8
8
 
@@ -24,21 +24,21 @@ function SwitchFilterRowComponent({
24
24
  style,
25
25
  testID,
26
26
  }: SwitchFilterRowProps) {
27
- const theme = useTheme();
27
+ const tokens = useColorTokens();
28
28
  const name = accessibilityLabel ?? (typeof title === 'string' ? title : undefined);
29
29
 
30
30
  return (
31
31
  <View style={[{ flexDirection: 'row', alignItems: 'center', gap: 16 }, style]}>
32
32
  <View style={{ flex: 1, minWidth: 0, gap: 2 }}>
33
33
  {typeof title === 'string' ? (
34
- <Text variant="body-medium" style={{ color: theme.colors.text }}>
34
+ <Text variant="body-medium" style={{ color: tokens.foreground }}>
35
35
  {title}
36
36
  </Text>
37
37
  ) : (
38
38
  title
39
39
  )}
40
40
  {description == null ? null : typeof description === 'string' ? (
41
- <Text variant="body-regular" style={{ color: theme.colors.textSecondary }}>
41
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
42
42
  {description}
43
43
  </Text>
44
44
  ) : (
@@ -4,7 +4,7 @@ import { View } from 'react-native';
4
4
  import { Button } from '../button';
5
5
 
6
6
  import { StepperRow } from '../stepper';
7
- import { useTheme } from '../theme/use-theme';
7
+ import { useColorTokens } from '../theme/color-tokens';
8
8
  import { Text } from '../typography';
9
9
  import { GUEST_KINDS } from './constants';
10
10
  import { STAY_SEARCH_MESSAGES } from './messages';
@@ -55,7 +55,7 @@ function GuestPickerComponent({
55
55
  const common = useCommonMessages();
56
56
  const { messages } = useMessages(STAY_SEARCH_MESSAGES);
57
57
  const closeLabel = closeLabelProp ?? common.close;
58
- const theme = useTheme();
58
+ const tokens = useColorTokens();
59
59
  const contextClose = useGuestPickerClose();
60
60
  const close = onClose ?? contextClose;
61
61
  const counted = COUNTED.reduce((sum, kind) => sum + value[kind], 0);
@@ -95,10 +95,7 @@ function GuestPickerComponent({
95
95
  })}
96
96
  {note != null ? (
97
97
  typeof note === 'string' ? (
98
- <Text
99
- variant="body-2-regular"
100
- style={{ color: theme.colors.textSecondary, paddingTop: 8 }}
101
- >
98
+ <Text variant="body-2-regular" style={{ color: tokens.mutedForeground, paddingTop: 8 }}>
102
99
  {note}
103
100
  </Text>
104
101
  ) : (
@@ -14,6 +14,7 @@ import { RiSubtractLine } from '../icons/remix/RiSubtractLine';
14
14
  import { useRingOffsetStyle } from '../styles/surface-levels';
15
15
  import { interactiveWebCss, useInteractiveWebCss } from '../styles/interactive-web-css';
16
16
  import type { WebCssStyle } from '../styles/web-view-style';
17
+ import { useColorTokens } from '../theme/color-tokens';
17
18
  import { useTheme } from '../theme/use-theme';
18
19
  import { Text } from '../typography';
19
20
  import type { TypeScaleVariant } from '../typography/scale';
@@ -185,7 +186,7 @@ function StepperComponent({
185
186
  const decrementLabel = decrementLabelProp ?? messages.decrease;
186
187
  const incrementLabel = incrementLabelProp ?? messages.increase;
187
188
  const removeLabel = removeLabelProp ?? common.remove;
188
- const theme = useTheme();
189
+ const tokens = useColorTokens();
189
190
  const ringOffset = useRingOffsetStyle();
190
191
  // The digits are not a name, so the stepper is named by a prop or by the
191
192
  // enclosing `Field` — and the warning has to see the resolved name, or a
@@ -280,7 +281,7 @@ function StepperComponent({
280
281
  borderRadius: 8,
281
282
  alignItems: 'center',
282
283
  justifyContent: 'center',
283
- '--bloom-stepper-ring': theme.colors.primary,
284
+ '--bloom-stepper-ring': tokens.primary,
284
285
  ...ringOffset,
285
286
  };
286
287
 
@@ -303,8 +304,8 @@ function StepperComponent({
303
304
  paddingRight: 8,
304
305
  borderWidth: 1,
305
306
  borderRadius: 9999,
306
- borderColor: theme.colors.border,
307
- backgroundColor: theme.colors.background,
307
+ borderColor: tokens.border,
308
+ backgroundColor: tokens.background,
308
309
  },
309
310
  style,
310
311
  ]}
@@ -348,7 +349,7 @@ function StepperComponent({
348
349
  numberOfLines={1}
349
350
  style={{
350
351
  ...(outlined ? { fontSize: outlineFontSize, lineHeight: 18 } : null),
351
- color: disabled ? theme.colors.textTertiary : theme.colors.text,
352
+ color: disabled ? tokens.faintForeground : tokens.foreground,
352
353
  fontVariant: ['tabular-nums'],
353
354
  textAlign: 'center',
354
355
  }}
@@ -1,7 +1,7 @@
1
1
  import React, { memo, useMemo } from 'react';
2
2
  import { View } from 'react-native';
3
3
 
4
- import { useTheme } from '../theme/use-theme';
4
+ import { useColorTokens } from '../theme/color-tokens';
5
5
  import { Text } from '../typography';
6
6
  import { Stepper } from './Stepper';
7
7
  import type { StepperRowProps } from './types';
@@ -22,7 +22,7 @@ function StepperRowComponent({
22
22
  stepperStyle,
23
23
  ...stepper
24
24
  }: StepperRowProps) {
25
- const theme = useTheme();
25
+ const tokens = useColorTokens();
26
26
  const name = accessibilityLabel ?? (typeof title === 'string' ? title : '');
27
27
 
28
28
  return (
@@ -37,21 +37,21 @@ function StepperRowComponent({
37
37
  borderBottomWidth: divider ? 1 : 0,
38
38
  // neutral-700 in dark, not 800: 800 is the floating surface (a popover, a
39
39
  // sheet) these rows usually sit on, where an 800 hairline disappears.
40
- borderBottomColor: theme.colors.borderLight,
40
+ borderBottomColor: tokens.input,
41
41
  },
42
42
  style,
43
43
  ]}
44
44
  >
45
45
  <View style={{ flex: 1, minWidth: 0, gap: 2 }}>
46
46
  {typeof title === 'string' ? (
47
- <Text variant="headline-medium" style={{ color: theme.colors.text }}>
47
+ <Text variant="headline-medium" style={{ color: tokens.foreground }}>
48
48
  {title}
49
49
  </Text>
50
50
  ) : (
51
51
  title
52
52
  )}
53
53
  {description == null ? null : typeof description === 'string' ? (
54
- <Text variant="body-regular" style={{ color: theme.colors.textSecondary }}>
54
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
55
55
  {description}
56
56
  </Text>
57
57
  ) : (
@@ -13,7 +13,7 @@ import { EdgeScrim } from '../page-header/EdgeScrim';
13
13
  import { useSurfaceFill } from '../styles/surface-levels';
14
14
  import type { WebCssStyle } from '../styles/web-view-style';
15
15
  import { pointerEventsStyles } from '../styles/pointer-events';
16
- import { useTheme } from '../theme/use-theme';
16
+ import { useColorTokens } from '../theme/color-tokens';
17
17
  import { SubscriptionPrice } from './SubscriptionPrice';
18
18
  import type { SubscriptionPlansProps } from './types';
19
19
 
@@ -35,7 +35,7 @@ export function SubscriptionPlans({
35
35
  style,
36
36
  testID,
37
37
  }: SubscriptionPlansProps) {
38
- const theme = useTheme();
38
+ const tokens = useColorTokens();
39
39
  const surfaceFill = useSurfaceFill();
40
40
  const selected = plans.find((plan) => plan.id === value);
41
41
  const actionDisabled =
@@ -67,7 +67,7 @@ export function SubscriptionPlans({
67
67
  {selected ? (
68
68
  <>
69
69
  {' '}
70
- <Text variant="display-4-semibold" style={{ color: theme.colors.primary }}>
70
+ <Text variant="display-4-semibold" style={{ color: tokens.primary }}>
71
71
  {selected.label}
72
72
  </Text>
73
73
  </>
@@ -89,7 +89,7 @@ export function SubscriptionPlans({
89
89
  style={[
90
90
  typeScale('title-2-regular'),
91
91
  styles.centered,
92
- { color: theme.colors.textSecondary },
92
+ { color: tokens.mutedForeground },
93
93
  ]}
94
94
  >
95
95
  {selected.price}
@@ -139,7 +139,7 @@ export function SubscriptionPlans({
139
139
  <View style={styles.benefitCopy}>
140
140
  <Title variant="headline-semibold">{benefit.title}</Title>
141
141
  {benefit.description ? (
142
- <Text variant="body-regular" style={{ color: theme.colors.textSecondary }}>
142
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
143
143
  {benefit.description}
144
144
  </Text>
145
145
  ) : null}
@@ -165,7 +165,7 @@ export function SubscriptionPlans({
165
165
  {terms != null ? (
166
166
  <Text
167
167
  variant="caption-1-regular"
168
- style={[styles.centered, { color: theme.colors.textSecondary }]}
168
+ style={[styles.centered, { color: tokens.mutedForeground }]}
169
169
  >
170
170
  {terms}
171
171
  </Text>
@@ -7,7 +7,7 @@ import Animated, {
7
7
  withTiming,
8
8
  } from 'react-native-reanimated';
9
9
  import { Text, typeScale } from '../typography';
10
- import { useTheme } from '../theme/use-theme';
10
+ import { useColorTokens } from '../theme/color-tokens';
11
11
  import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
12
12
  import { useResolvedBloomLocale } from '../locale/context';
13
13
  import { formatCurrency } from '../locale/format-number';
@@ -23,7 +23,7 @@ export function SubscriptionPrice({
23
23
  suffix,
24
24
  description,
25
25
  }: SubscriptionPriceValue) {
26
- const theme = useTheme();
26
+ const tokens = useColorTokens();
27
27
  const reduced = usePrefersReducedMotion();
28
28
  // The price's own locale, else the app's (`BloomProvider locale`).
29
29
  const resolvedLocale = useResolvedBloomLocale(locale);
@@ -61,7 +61,7 @@ export function SubscriptionPrice({
61
61
  <Animated.View style={copyStyle}>
62
62
  <Text
63
63
  variant="body-2-regular"
64
- style={[styles.description, { color: theme.colors.textSecondary }]}
64
+ style={[styles.description, { color: tokens.mutedForeground }]}
65
65
  >
66
66
  {description}
67
67
  </Text>
@@ -21,8 +21,7 @@ import {
21
21
  import { RiArrowDownSLine } from '../icons/remix/RiArrowDownSLine';
22
22
  import { adoptStyleSheet } from '../styles/adopt-style-sheet';
23
23
  import type { WebCssStyle } from '../styles/web-view-style';
24
- import type { Theme } from '../theme/types';
25
- import { useTheme } from '../theme/use-theme';
24
+ import { type ColorTokens, useColorTokens } from '../theme/color-tokens';
26
25
  import { useCommonMessages } from '../locale/common-messages';
27
26
  import { Text } from '../typography';
28
27
  import type { TaskListChip, TaskListProps, TaskListStep, TaskListTask } from './types';
@@ -76,19 +75,18 @@ export interface TaskListPalette {
76
75
  ring: string;
77
76
  }
78
77
 
79
- /** Canonical theme surfaces, foregrounds and focus roles. */
80
- export function resolveTaskListPalette(theme: Theme): TaskListPalette {
81
- const c = theme.colors;
78
+ /** The colour tokens it paints: surfaces, foregrounds and focus roles. */
79
+ export function resolveTaskListPalette(t: ColorTokens): TaskListPalette {
82
80
  return {
83
- textPrimary: c.text,
84
- textSecondary: c.textSecondary,
85
- iconSecondary: c.textSecondary,
86
- iconTertiary: c.textTertiary,
87
- ring: c.primary,
88
- chipBorder: c.borderLight,
89
- chipBorderHover: c.border,
90
- chipSurface: c.backgroundSecondary,
91
- chipSurfaceHover: c.backgroundTertiary,
81
+ textPrimary: t.foreground,
82
+ textSecondary: t.mutedForeground,
83
+ iconSecondary: t.mutedForeground,
84
+ iconTertiary: t.faintForeground,
85
+ ring: t.primary,
86
+ chipBorder: t.input,
87
+ chipBorderHover: t.border,
88
+ chipSurface: t.surface,
89
+ chipSurfaceHover: t.popover,
92
90
  };
93
91
  }
94
92
 
@@ -575,8 +573,8 @@ function TaskListComponent({
575
573
  }: TaskListProps) {
576
574
  const common = useCommonMessages();
577
575
  const working = workingProp ?? common.working;
578
- const theme = useTheme();
579
- const palette = useMemo(() => resolveTaskListPalette(theme), [theme]);
576
+ const tokens = useColorTokens();
577
+ const palette = useMemo(() => resolveTaskListPalette(tokens), [tokens]);
580
578
  const systemReduce = useAgentLogMotion();
581
579
  const reduce = reduceProp ?? systemReduce;
582
580