@oxy.so/bloom 23.8.1 → 23.9.1

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 (593) hide show
  1. package/docs/bloom-language-classnames.mdx +14 -14
  2. package/docs/bloom-language-codemod.mdx +40 -5
  3. package/docs/bloom-language-for-agents.mdx +3 -1
  4. package/docs/bloom-language-from-jsx.mdx +1 -0
  5. package/docs/bloom-language-modifiers.mdx +231 -84
  6. package/docs/bloom-language-nodes.mdx +48 -26
  7. package/docs/bloom-language-tokens.mdx +71 -14
  8. package/docs/bloom-language.mdx +251 -68
  9. package/docs/design-tokens.mdx +12 -2
  10. package/docs/no-nativewind.mdx +5 -4
  11. package/docs/task-catalog.json +1 -1
  12. package/docs/task-catalog.mdx +1 -1
  13. package/docs/theme.mdx +22 -6
  14. package/lib/commonjs/accordion/Accordion.js +12 -12
  15. package/lib/commonjs/accordion/Accordion.js.map +1 -1
  16. package/lib/commonjs/accordion/Accordion.web.js +8 -8
  17. package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
  18. package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
  19. package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
  20. package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
  21. package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
  22. package/lib/commonjs/agent-log/AgentLog.js +131 -174
  23. package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
  24. package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
  25. package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
  26. package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
  27. package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
  28. package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
  29. package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
  30. package/lib/commonjs/app-shell/AppShell.js +5 -7
  31. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  32. package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
  33. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  34. package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
  35. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  36. package/lib/commonjs/app-shell/NotificationBell.js +9 -9
  37. package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
  38. package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
  39. package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
  40. package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
  41. package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
  42. package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
  43. package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
  44. package/lib/commonjs/choice-list/ChoiceList.js +5 -5
  45. package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
  46. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
  47. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  48. package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
  49. package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
  50. package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
  51. package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
  52. package/lib/commonjs/cover-header/CoverHeader.js +3 -3
  53. package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
  54. package/lib/commonjs/data-table/DataTable.js +10 -11
  55. package/lib/commonjs/data-table/DataTable.js.map +1 -1
  56. package/lib/commonjs/data-table/DataTableSelect.js +8 -8
  57. package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
  58. package/lib/commonjs/design-tokens/theme.css +1 -0
  59. package/lib/commonjs/design-tokens/tokens.json +390 -0
  60. package/lib/commonjs/dialog/DialogContent.js +5 -4
  61. package/lib/commonjs/dialog/DialogContent.js.map +1 -1
  62. package/lib/commonjs/dialog/DialogHeader.js +6 -5
  63. package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
  64. package/lib/commonjs/dialog/SheetShell.js +5 -4
  65. package/lib/commonjs/dialog/SheetShell.js.map +1 -1
  66. package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
  67. package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
  68. package/lib/commonjs/floating/lens/lens-cover.js +56 -0
  69. package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
  70. package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
  71. package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
  72. package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
  73. package/lib/commonjs/home-search/BudgetPicker.js +8 -8
  74. package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
  75. package/lib/commonjs/home-search/MoveInPicker.js +7 -7
  76. package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
  77. package/lib/commonjs/icon-circle/IconCircle.js +14 -16
  78. package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
  79. package/lib/commonjs/icons/shared.js +3 -5
  80. package/lib/commonjs/icons/shared.js.map +1 -1
  81. package/lib/commonjs/image/BloomImage.js +3 -0
  82. package/lib/commonjs/image/BloomImage.js.map +1 -1
  83. package/lib/commonjs/kbd/Kbd.js +8 -8
  84. package/lib/commonjs/kbd/Kbd.js.map +1 -1
  85. package/lib/commonjs/layout/ResizeHandle.js +6 -5
  86. package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
  87. package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
  88. package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
  89. package/lib/commonjs/list/ListBase.js +3 -3
  90. package/lib/commonjs/list/ListBase.js.map +1 -1
  91. package/lib/commonjs/list/ListPerson.js +3 -3
  92. package/lib/commonjs/list/ListPerson.js.map +1 -1
  93. package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
  94. package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
  95. package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
  96. package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
  97. package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
  98. package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
  99. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
  100. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  101. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
  102. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  103. package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
  104. package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
  105. package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
  106. package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
  107. package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
  108. package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
  109. package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
  110. package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
  111. package/lib/commonjs/panel-routing/expo-router/StackScene.js +42 -24
  112. package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
  113. package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
  114. package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
  115. package/lib/commonjs/project-board/MemberAvatars.js +7 -9
  116. package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
  117. package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
  118. package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
  119. package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
  120. package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
  121. package/lib/commonjs/project-board/styles.js +2 -5
  122. package/lib/commonjs/project-board/styles.js.map +1 -1
  123. package/lib/commonjs/radio/RadioSwatch.js +5 -5
  124. package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
  125. package/lib/commonjs/rating/Rating.js +7 -7
  126. package/lib/commonjs/rating/Rating.js.map +1 -1
  127. package/lib/commonjs/rating/RatingBar.js +8 -8
  128. package/lib/commonjs/rating/RatingBar.js.map +1 -1
  129. package/lib/commonjs/rating/RatingBar.web.js +5 -5
  130. package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
  131. package/lib/commonjs/rating/RatingInput.js +9 -9
  132. package/lib/commonjs/rating/RatingInput.js.map +1 -1
  133. package/lib/commonjs/rating/RatingSummary.js +6 -6
  134. package/lib/commonjs/rating/RatingSummary.js.map +1 -1
  135. package/lib/commonjs/row-actions/RowActions.js +5 -5
  136. package/lib/commonjs/row-actions/RowActions.js.map +1 -1
  137. package/lib/commonjs/select/Select.js +5 -5
  138. package/lib/commonjs/select/Select.js.map +1 -1
  139. package/lib/commonjs/skeleton/Skeleton.js +22 -30
  140. package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
  141. package/lib/commonjs/stat-bar/StatBar.js +41 -43
  142. package/lib/commonjs/stat-bar/StatBar.js.map +1 -1
  143. package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
  144. package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
  145. package/lib/commonjs/stay-filters/CountFilter.js +3 -3
  146. package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
  147. package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
  148. package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
  149. package/lib/commonjs/stay-filters/FilterSection.js +12 -12
  150. package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
  151. package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
  152. package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
  153. package/lib/commonjs/stay-search/GuestPicker.js +5 -5
  154. package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
  155. package/lib/commonjs/stepper/Stepper.js +11 -10
  156. package/lib/commonjs/stepper/Stepper.js.map +1 -1
  157. package/lib/commonjs/stepper/StepperRow.js +12 -12
  158. package/lib/commonjs/stepper/StepperRow.js.map +1 -1
  159. package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
  160. package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
  161. package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
  162. package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
  163. package/lib/commonjs/task-list/TaskList.js +14 -15
  164. package/lib/commonjs/task-list/TaskList.js.map +1 -1
  165. package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
  166. package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
  167. package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
  168. package/lib/commonjs/theme/build-theme.js +39 -9
  169. package/lib/commonjs/theme/build-theme.js.map +1 -1
  170. package/lib/commonjs/theme/canonical-tokens.js +40 -0
  171. package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
  172. package/lib/commonjs/theme/color-policy.js +3 -0
  173. package/lib/commonjs/theme/color-policy.js.map +1 -1
  174. package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
  175. package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
  176. package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
  177. package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
  178. package/lib/commonjs/theme/color-tokens.js +32 -10
  179. package/lib/commonjs/theme/color-tokens.js.map +1 -1
  180. package/lib/commonjs/theme/color-utils.js +4 -0
  181. package/lib/commonjs/theme/color-utils.js.map +1 -1
  182. package/lib/commonjs/theme/default-token-vars.js +92 -0
  183. package/lib/commonjs/theme/default-token-vars.js.map +1 -0
  184. package/lib/commonjs/theme/index.js +6 -0
  185. package/lib/commonjs/theme/index.js.map +1 -1
  186. package/lib/commonjs/theme/index.web.js +6 -0
  187. package/lib/commonjs/theme/index.web.js.map +1 -1
  188. package/lib/commonjs/theme/prepaint-palettes.js +1 -5
  189. package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
  190. package/lib/commonjs/theme/token-registry.js +7 -28
  191. package/lib/commonjs/theme/token-registry.js.map +1 -1
  192. package/lib/commonjs/theme/use-theme-paint.js +28 -0
  193. package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
  194. package/lib/commonjs/typography/Typography.js +27 -27
  195. package/lib/commonjs/typography/Typography.js.map +1 -1
  196. package/lib/commonjs/web-search/WebSearch.js +18 -19
  197. package/lib/commonjs/web-search/WebSearch.js.map +1 -1
  198. package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
  199. package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
  200. package/lib/commonjs/wizard/WizardProgress.js +5 -5
  201. package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
  202. package/lib/module/accordion/Accordion.js +12 -12
  203. package/lib/module/accordion/Accordion.js.map +1 -1
  204. package/lib/module/accordion/Accordion.web.js +8 -8
  205. package/lib/module/accordion/Accordion.web.js.map +1 -1
  206. package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
  207. package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
  208. package/lib/module/agent-creator/EmotionPicker.js +3 -5
  209. package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
  210. package/lib/module/agent-log/AgentLog.js +131 -174
  211. package/lib/module/agent-log/AgentLog.js.map +1 -1
  212. package/lib/module/agent-reply/AgentProfile.js +7 -10
  213. package/lib/module/agent-reply/AgentProfile.js.map +1 -1
  214. package/lib/module/agent-thinking/AgentThinking.js +8 -7
  215. package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
  216. package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
  217. package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
  218. package/lib/module/app-shell/AppShell.js +5 -7
  219. package/lib/module/app-shell/AppShell.js.map +1 -1
  220. package/lib/module/app-shell/AppShellEngine.js +73 -29
  221. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  222. package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
  223. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  224. package/lib/module/app-shell/NotificationBell.js +9 -9
  225. package/lib/module/app-shell/NotificationBell.js.map +1 -1
  226. package/lib/module/app-shell/PanelReorderHandle.js +4 -6
  227. package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
  228. package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
  229. package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
  230. package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
  231. package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
  232. package/lib/module/choice-list/ChoiceList.js +5 -5
  233. package/lib/module/choice-list/ChoiceList.js.map +1 -1
  234. package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
  235. package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  236. package/lib/module/connection-dots/ConnectionDots.js +4 -4
  237. package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
  238. package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
  239. package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
  240. package/lib/module/cover-header/CoverHeader.js +3 -3
  241. package/lib/module/cover-header/CoverHeader.js.map +1 -1
  242. package/lib/module/data-table/DataTable.js +10 -11
  243. package/lib/module/data-table/DataTable.js.map +1 -1
  244. package/lib/module/data-table/DataTableSelect.js +8 -8
  245. package/lib/module/data-table/DataTableSelect.js.map +1 -1
  246. package/lib/module/design-tokens/theme.css +1 -0
  247. package/lib/module/design-tokens/tokens.json +390 -0
  248. package/lib/module/dialog/DialogContent.js +5 -4
  249. package/lib/module/dialog/DialogContent.js.map +1 -1
  250. package/lib/module/dialog/DialogHeader.js +6 -5
  251. package/lib/module/dialog/DialogHeader.js.map +1 -1
  252. package/lib/module/dialog/SheetShell.js +5 -4
  253. package/lib/module/dialog/SheetShell.js.map +1 -1
  254. package/lib/module/expandable-text/ExpandableText.js +3 -3
  255. package/lib/module/expandable-text/ExpandableText.js.map +1 -1
  256. package/lib/module/floating/lens/lens-cover.js +51 -0
  257. package/lib/module/floating/lens/lens-cover.js.map +1 -0
  258. package/lib/module/floating/lens/native-lens.js.map +1 -1
  259. package/lib/module/grouped-section/GroupedSection.js +16 -15
  260. package/lib/module/grouped-section/GroupedSection.js.map +1 -1
  261. package/lib/module/home-search/BudgetPicker.js +8 -8
  262. package/lib/module/home-search/BudgetPicker.js.map +1 -1
  263. package/lib/module/home-search/MoveInPicker.js +7 -7
  264. package/lib/module/home-search/MoveInPicker.js.map +1 -1
  265. package/lib/module/icon-circle/IconCircle.js +14 -16
  266. package/lib/module/icon-circle/IconCircle.js.map +1 -1
  267. package/lib/module/icons/shared.js +3 -5
  268. package/lib/module/icons/shared.js.map +1 -1
  269. package/lib/module/image/BloomImage.js +3 -0
  270. package/lib/module/image/BloomImage.js.map +1 -1
  271. package/lib/module/kbd/Kbd.js +8 -8
  272. package/lib/module/kbd/Kbd.js.map +1 -1
  273. package/lib/module/layout/ResizeHandle.js +6 -5
  274. package/lib/module/layout/ResizeHandle.js.map +1 -1
  275. package/lib/module/link-preview/LinkPreviewCard.js +24 -26
  276. package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
  277. package/lib/module/list/ListBase.js +3 -3
  278. package/lib/module/list/ListBase.js.map +1 -1
  279. package/lib/module/list/ListPerson.js +3 -3
  280. package/lib/module/list/ListPerson.js.map +1 -1
  281. package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
  282. package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
  283. package/lib/module/markdown/InlineMarkdown.js +9 -11
  284. package/lib/module/markdown/InlineMarkdown.js.map +1 -1
  285. package/lib/module/markdown/MarkdownBlocks.js +35 -43
  286. package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
  287. package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
  288. package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  289. package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
  290. package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  291. package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
  292. package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
  293. package/lib/module/notifications/NotificationsScreen.js +21 -27
  294. package/lib/module/notifications/NotificationsScreen.js.map +1 -1
  295. package/lib/module/overlay/OverlayInertBoundary.js +33 -12
  296. package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
  297. package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
  298. package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
  299. package/lib/module/panel-routing/expo-router/StackScene.js +42 -24
  300. package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
  301. package/lib/module/phone-input/CountryCodeSelect.js +4 -4
  302. package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
  303. package/lib/module/project-board/MemberAvatars.js +7 -9
  304. package/lib/module/project-board/MemberAvatars.js.map +1 -1
  305. package/lib/module/project-board/ProjectBoardBase.js +4 -7
  306. package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
  307. package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
  308. package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
  309. package/lib/module/project-board/styles.js +3 -6
  310. package/lib/module/project-board/styles.js.map +1 -1
  311. package/lib/module/radio/RadioSwatch.js +5 -5
  312. package/lib/module/radio/RadioSwatch.js.map +1 -1
  313. package/lib/module/rating/Rating.js +7 -7
  314. package/lib/module/rating/Rating.js.map +1 -1
  315. package/lib/module/rating/RatingBar.js +8 -8
  316. package/lib/module/rating/RatingBar.js.map +1 -1
  317. package/lib/module/rating/RatingBar.web.js +5 -5
  318. package/lib/module/rating/RatingBar.web.js.map +1 -1
  319. package/lib/module/rating/RatingInput.js +9 -9
  320. package/lib/module/rating/RatingInput.js.map +1 -1
  321. package/lib/module/rating/RatingSummary.js +6 -6
  322. package/lib/module/rating/RatingSummary.js.map +1 -1
  323. package/lib/module/row-actions/RowActions.js +5 -5
  324. package/lib/module/row-actions/RowActions.js.map +1 -1
  325. package/lib/module/select/Select.js +5 -5
  326. package/lib/module/select/Select.js.map +1 -1
  327. package/lib/module/skeleton/Skeleton.js +22 -30
  328. package/lib/module/skeleton/Skeleton.js.map +1 -1
  329. package/lib/module/stat-bar/StatBar.js +41 -43
  330. package/lib/module/stat-bar/StatBar.js.map +1 -1
  331. package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
  332. package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
  333. package/lib/module/stay-filters/CountFilter.js +3 -3
  334. package/lib/module/stay-filters/CountFilter.js.map +1 -1
  335. package/lib/module/stay-filters/FilterFooter.js +7 -7
  336. package/lib/module/stay-filters/FilterFooter.js.map +1 -1
  337. package/lib/module/stay-filters/FilterSection.js +12 -12
  338. package/lib/module/stay-filters/FilterSection.js.map +1 -1
  339. package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
  340. package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
  341. package/lib/module/stay-search/GuestPicker.js +5 -5
  342. package/lib/module/stay-search/GuestPicker.js.map +1 -1
  343. package/lib/module/stepper/Stepper.js +11 -10
  344. package/lib/module/stepper/Stepper.js.map +1 -1
  345. package/lib/module/stepper/StepperRow.js +12 -12
  346. package/lib/module/stepper/StepperRow.js.map +1 -1
  347. package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
  348. package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
  349. package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
  350. package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
  351. package/lib/module/task-list/TaskList.js +14 -15
  352. package/lib/module/task-list/TaskList.js.map +1 -1
  353. package/lib/module/theme/BloomThemeProvider.js +208 -224
  354. package/lib/module/theme/BloomThemeProvider.js.map +1 -1
  355. package/lib/module/theme/build-theme-from-seed.js +1 -1
  356. package/lib/module/theme/build-theme.js +38 -9
  357. package/lib/module/theme/build-theme.js.map +1 -1
  358. package/lib/module/theme/canonical-tokens.js +36 -0
  359. package/lib/module/theme/canonical-tokens.js.map +1 -0
  360. package/lib/module/theme/color-policy.js +3 -0
  361. package/lib/module/theme/color-policy.js.map +1 -1
  362. package/lib/module/theme/color-scope/resolve-scope.js +46 -5
  363. package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
  364. package/lib/module/theme/color-scope/use-scope.js +2 -6
  365. package/lib/module/theme/color-scope/use-scope.js.map +1 -1
  366. package/lib/module/theme/color-tokens.js +30 -8
  367. package/lib/module/theme/color-tokens.js.map +1 -1
  368. package/lib/module/theme/color-utils.js +4 -0
  369. package/lib/module/theme/color-utils.js.map +1 -1
  370. package/lib/module/theme/default-token-vars.js +88 -0
  371. package/lib/module/theme/default-token-vars.js.map +1 -0
  372. package/lib/module/theme/index.js +1 -1
  373. package/lib/module/theme/index.js.map +1 -1
  374. package/lib/module/theme/index.web.js +1 -1
  375. package/lib/module/theme/index.web.js.map +1 -1
  376. package/lib/module/theme/prepaint-palettes.js +2 -6
  377. package/lib/module/theme/prepaint-palettes.js.map +1 -1
  378. package/lib/module/theme/token-registry.js +1 -27
  379. package/lib/module/theme/token-registry.js.map +1 -1
  380. package/lib/module/theme/use-theme-paint.js +30 -3
  381. package/lib/module/theme/use-theme-paint.js.map +1 -1
  382. package/lib/module/typography/Typography.js +27 -27
  383. package/lib/module/typography/Typography.js.map +1 -1
  384. package/lib/module/web-search/WebSearch.js +18 -19
  385. package/lib/module/web-search/WebSearch.js.map +1 -1
  386. package/lib/module/wizard/WizardFooterBase.js +10 -10
  387. package/lib/module/wizard/WizardFooterBase.js.map +1 -1
  388. package/lib/module/wizard/WizardProgress.js +5 -5
  389. package/lib/module/wizard/WizardProgress.js.map +1 -1
  390. package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  391. package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
  393. package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  395. package/lib/typescript/commonjs/data-table/DataTable.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
  397. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
  399. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
  400. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
  401. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
  402. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
  403. package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
  404. package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
  406. package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  408. package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
  409. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
  410. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  411. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
  412. package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
  413. package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
  414. package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
  415. package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
  416. package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
  417. package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
  418. package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
  419. package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
  420. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
  421. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
  422. package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
  423. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
  424. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
  425. package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
  426. package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
  427. package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
  428. package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
  429. package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
  430. package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
  431. package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
  432. package/lib/typescript/commonjs/theme/index.d.ts +1 -1
  433. package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
  434. package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
  435. package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
  436. package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
  438. package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
  439. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
  440. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
  441. package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
  442. package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
  443. package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  444. package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
  445. package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
  446. package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
  447. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  448. package/lib/typescript/module/data-table/DataTable.d.ts.map +1 -1
  449. package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
  450. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
  451. package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
  452. package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
  453. package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
  454. package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
  455. package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
  456. package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
  457. package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
  458. package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
  459. package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
  460. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  461. package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
  462. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
  463. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  464. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
  465. package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
  466. package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
  467. package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
  468. package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
  469. package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
  470. package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
  471. package/lib/typescript/module/theme/build-theme.d.ts +9 -0
  472. package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
  473. package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
  474. package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
  475. package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
  476. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
  477. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
  478. package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
  479. package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
  480. package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
  481. package/lib/typescript/module/theme/color-utils.d.ts +3 -0
  482. package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
  483. package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
  484. package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
  485. package/lib/typescript/module/theme/index.d.ts +1 -1
  486. package/lib/typescript/module/theme/index.d.ts.map +1 -1
  487. package/lib/typescript/module/theme/index.web.d.ts +1 -1
  488. package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
  489. package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
  490. package/lib/typescript/module/theme/token-registry.d.ts +1 -16
  491. package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
  492. package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
  493. package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
  494. package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
  495. package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
  496. package/package.json +2 -1
  497. package/src/accordion/Accordion.tsx +6 -6
  498. package/src/accordion/Accordion.web.tsx +6 -6
  499. package/src/agent-creator/AgentCreatorSection.tsx +4 -6
  500. package/src/agent-creator/EmotionPicker.tsx +3 -3
  501. package/src/agent-log/AgentLog.tsx +8 -21
  502. package/src/agent-reply/AgentProfile.tsx +4 -5
  503. package/src/agent-thinking/AgentThinking.tsx +4 -3
  504. package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
  505. package/src/app-shell/AppShell.tsx +3 -3
  506. package/src/app-shell/AppShellEngine.tsx +67 -19
  507. package/src/app-shell/AppShellPanelLayout.tsx +3 -3
  508. package/src/app-shell/NotificationBell.tsx +6 -6
  509. package/src/app-shell/PanelReorderHandle.tsx +4 -4
  510. package/src/avatar-group/AvatarGroupBase.tsx +6 -6
  511. package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
  512. package/src/choice-list/ChoiceList.tsx +3 -3
  513. package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
  514. package/src/connection-dots/ConnectionDots.tsx +4 -4
  515. package/src/connection-dots/ConnectionDots.web.tsx +4 -4
  516. package/src/cover-header/CoverHeader.tsx +3 -3
  517. package/src/data-table/DataTable.tsx +8 -10
  518. package/src/data-table/DataTableSelect.tsx +4 -4
  519. package/src/design-tokens/theme.css +1 -0
  520. package/src/design-tokens/tokens.json +390 -0
  521. package/src/dialog/DialogContent.tsx +3 -2
  522. package/src/dialog/DialogHeader.tsx +6 -5
  523. package/src/dialog/SheetShell.tsx +3 -2
  524. package/src/expandable-text/ExpandableText.tsx +3 -3
  525. package/src/floating/lens/lens-cover.tsx +29 -0
  526. package/src/floating/lens/native-lens.ts +2 -0
  527. package/src/grouped-section/GroupedSection.tsx +7 -6
  528. package/src/home-search/BudgetPicker.tsx +4 -4
  529. package/src/home-search/MoveInPicker.tsx +3 -3
  530. package/src/icon-circle/IconCircle.tsx +5 -5
  531. package/src/icons/shared.tsx +3 -3
  532. package/src/image/BloomImage.tsx +3 -0
  533. package/src/kbd/Kbd.tsx +4 -4
  534. package/src/layout/ResizeHandle.tsx +7 -5
  535. package/src/link-preview/LinkPreviewCard.tsx +7 -7
  536. package/src/list/ListBase.tsx +3 -6
  537. package/src/list/ListPerson.tsx +3 -3
  538. package/src/listing-editor/ListingPreviewPane.tsx +13 -13
  539. package/src/markdown/InlineMarkdown.tsx +3 -3
  540. package/src/markdown/MarkdownBlocks.tsx +14 -14
  541. package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
  542. package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
  543. package/src/notifications/NotificationPermissionSheet.tsx +3 -3
  544. package/src/notifications/NotificationsScreen.tsx +9 -9
  545. package/src/overlay/OverlayInertBoundary.tsx +10 -1
  546. package/src/page-header/PageHeaderTitleInput.tsx +4 -4
  547. package/src/panel-routing/expo-router/StackScene.tsx +7 -2
  548. package/src/phone-input/CountryCodeSelect.tsx +4 -4
  549. package/src/project-board/MemberAvatars.tsx +3 -3
  550. package/src/project-board/ProjectBoardBase.tsx +4 -5
  551. package/src/project-board/ProjectBoardCanvas.tsx +2 -2
  552. package/src/project-board/styles.ts +3 -4
  553. package/src/radio/RadioSwatch.tsx +3 -3
  554. package/src/rating/Rating.tsx +5 -5
  555. package/src/rating/RatingBar.tsx +4 -4
  556. package/src/rating/RatingBar.web.tsx +3 -3
  557. package/src/rating/RatingInput.tsx +5 -5
  558. package/src/rating/RatingSummary.tsx +4 -4
  559. package/src/row-actions/RowActions.tsx +3 -3
  560. package/src/select/Select.tsx +3 -3
  561. package/src/skeleton/Skeleton.tsx +9 -9
  562. package/src/stat-bar/StatBar.tsx +14 -14
  563. package/src/stay-filters/AvailabilityFilter.tsx +3 -3
  564. package/src/stay-filters/CountFilter.tsx +3 -3
  565. package/src/stay-filters/FilterFooter.tsx +4 -4
  566. package/src/stay-filters/FilterSection.tsx +5 -5
  567. package/src/stay-filters/SwitchFilterRow.tsx +4 -4
  568. package/src/stay-search/GuestPicker.tsx +3 -6
  569. package/src/stepper/Stepper.tsx +6 -5
  570. package/src/stepper/StepperRow.tsx +5 -5
  571. package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
  572. package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
  573. package/src/task-list/TaskList.tsx +14 -16
  574. package/src/theme/BloomThemeProvider.tsx +33 -33
  575. package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
  576. package/src/theme/build-theme-from-seed.ts +1 -1
  577. package/src/theme/build-theme.ts +52 -11
  578. package/src/theme/canonical-tokens.ts +108 -0
  579. package/src/theme/color-policy.ts +3 -0
  580. package/src/theme/color-scope/resolve-scope.ts +47 -8
  581. package/src/theme/color-scope/use-scope.ts +2 -6
  582. package/src/theme/color-tokens.ts +7 -7
  583. package/src/theme/color-utils.ts +4 -0
  584. package/src/theme/default-token-vars.ts +86 -0
  585. package/src/theme/index.ts +1 -1
  586. package/src/theme/index.web.ts +1 -1
  587. package/src/theme/prepaint-palettes.ts +2 -3
  588. package/src/theme/token-registry.ts +1 -101
  589. package/src/theme/use-theme-paint.ts +26 -3
  590. package/src/typography/Typography.tsx +12 -12
  591. package/src/web-search/WebSearch.tsx +16 -18
  592. package/src/wizard/WizardFooterBase.tsx +5 -5
  593. package/src/wizard/WizardProgress.tsx +5 -5
@@ -13,7 +13,7 @@ import {
13
13
  SegmentedControlItem,
14
14
  SegmentedControlItemText,
15
15
  } from '../segmented-control';
16
- import { useTheme } from '../theme/use-theme';
16
+ import { useColorTokens } from '../theme/color-tokens';
17
17
  import { useMessages } from '../locale/messages';
18
18
  import { Text } from '../typography';
19
19
  import { LISTING_EDITOR_MESSAGES, type ListingEditorMessages } from './messages';
@@ -60,7 +60,7 @@ function ListingPreviewPaneComponent({
60
60
  const cardLabel = cardLabelProp ?? messages.card;
61
61
  const pageLabel = pageLabelProp ?? messages.page;
62
62
  const toggleLabel = toggleLabelProp ?? messages.previewAs;
63
- const theme = useTheme();
63
+ const tokens = useColorTokens();
64
64
  const [mode, setMode] = useControllableState<ListingPreviewMode>({
65
65
  value: modeProp,
66
66
  defaultValue: defaultMode,
@@ -78,17 +78,17 @@ function ListingPreviewPaneComponent({
78
78
  paddingLeft: 20,
79
79
  paddingRight: 20,
80
80
  borderRadius: 20,
81
- backgroundColor: theme.colors.backgroundSecondary,
81
+ backgroundColor: tokens.surface,
82
82
  },
83
83
  style,
84
84
  ]}
85
85
  >
86
86
  <View style={{ gap: 2 }}>
87
- <Text variant="headline-semibold" style={{ color: theme.colors.text }}>
87
+ <Text variant="headline-semibold" style={{ color: tokens.foreground }}>
88
88
  {title}
89
89
  </Text>
90
90
  {description ? (
91
- <Text variant="body-2-regular" style={{ color: theme.colors.textSecondary }}>
91
+ <Text variant="body-2-regular" style={{ color: tokens.mutedForeground }}>
92
92
  {description}
93
93
  </Text>
94
94
  ) : null}
@@ -134,12 +134,12 @@ function reviewsLabel(messages: ListingEditorMessages, count: number | string):
134
134
 
135
135
  function PagePreview({ listing }: { listing: ListingPreviewData }) {
136
136
  const { messages } = useMessages(LISTING_EDITOR_MESSAGES);
137
- const theme = useTheme();
137
+ const tokens = useColorTokens();
138
138
  const resolver = useImageResolver();
139
139
  const cover = listing.photos[0]
140
140
  ? resolvePhoto(listing.photos[0], resolver, listing.photoVariant)
141
141
  : undefined;
142
- const hairline = theme.colors.border;
142
+ const hairline = tokens.border;
143
143
 
144
144
  return (
145
145
  <View
@@ -149,7 +149,7 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
149
149
  borderRadius: 20,
150
150
  borderWidth: 1,
151
151
  borderColor: hairline,
152
- backgroundColor: theme.colors.background,
152
+ backgroundColor: tokens.background,
153
153
  overflow: 'hidden',
154
154
  }}
155
155
  >
@@ -157,7 +157,7 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
157
157
  style={{
158
158
  width: '100%',
159
159
  aspectRatio: 4 / 3,
160
- backgroundColor: theme.colors.backgroundSecondary,
160
+ backgroundColor: tokens.surface,
161
161
  }}
162
162
  >
163
163
  {cover ? (
@@ -183,12 +183,12 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
183
183
  location={listing.location}
184
184
  />
185
185
  {listing.facts && listing.facts.length > 0 ? (
186
- <Text variant="body-2-regular" style={{ color: theme.colors.textSecondary }}>
186
+ <Text variant="body-2-regular" style={{ color: tokens.mutedForeground }}>
187
187
  {listing.facts.map((fact) => fact.accessibilityLabel ?? fact.label).join(' · ')}
188
188
  </Text>
189
189
  ) : null}
190
190
  {listing.description ? (
191
- <Text variant="body-regular" numberOfLines={6} style={{ color: theme.colors.text }}>
191
+ <Text variant="body-regular" numberOfLines={6} style={{ color: tokens.foreground }}>
192
192
  {listing.description}
193
193
  </Text>
194
194
  ) : null}
@@ -207,11 +207,11 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
207
207
  paddingRight: 16,
208
208
  }}
209
209
  >
210
- <Text variant="headline-semibold" style={{ color: theme.colors.text }}>
210
+ <Text variant="headline-semibold" style={{ color: tokens.foreground }}>
211
211
  {listing.price ?? listing.total}
212
212
  </Text>
213
213
  {listing.price && listing.priceUnit ? (
214
- <Text variant="body-regular" style={{ color: theme.colors.textSecondary }}>
214
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
215
215
  {listing.priceUnit}
216
216
  </Text>
217
217
  ) : null}
@@ -4,7 +4,7 @@ import { openExternal } from '../hooks/link-activation';
4
4
 
5
5
  import { Code } from '../code';
6
6
  import { IS_WEB } from '../styles/platform';
7
- import { useTheme } from '../theme/use-theme';
7
+ import { useColorTokens } from '../theme/color-tokens';
8
8
  import { parseInline } from './parse-inline';
9
9
  import type { InlineMarkdownProps, MarkdownInline } from './types';
10
10
  import { safeUrl } from './safe-url';
@@ -22,7 +22,7 @@ export const InlineMarkdown = memo(function InlineMarkdown({
22
22
  renderLink,
23
23
  suffix,
24
24
  }: InlineMarkdownProps) {
25
- const { colors } = useTheme();
25
+ const tokens = useColorTokens();
26
26
  const nodes = useMemo(
27
27
  () => suppliedNodes ?? parseInline(source ?? '', streaming),
28
28
  [suppliedNodes, source, streaming],
@@ -89,7 +89,7 @@ export const InlineMarkdown = memo(function InlineMarkdown({
89
89
  key={index}
90
90
  role="link"
91
91
  onPress={press(url)}
92
- style={{ color: colors.primary, textDecorationLine: 'underline' }}
92
+ style={{ color: tokens.primary, textDecorationLine: 'underline' }}
93
93
  {...webLink}
94
94
  >
95
95
  {children}
@@ -6,7 +6,7 @@ import { CodeBlock } from '../code';
6
6
  import { RiCheckLine } from '../icons/remix/RiCheckLine';
7
7
  import { useMessages } from '../locale/messages';
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 type { TypeScaleVariant } from '../typography/scale';
12
12
  import { useMarkdownContext } from './context';
@@ -98,7 +98,7 @@ interface BlockProps {
98
98
 
99
99
  const MarkdownBlockView = memo(function MarkdownBlockView({ block, streaming, depth }: BlockProps) {
100
100
  const { size, renderCodeBlock } = useMarkdownContext();
101
- const { colors } = useTheme();
101
+ const tokens = useColorTokens();
102
102
 
103
103
  switch (block.type) {
104
104
  case 'paragraph':
@@ -124,12 +124,12 @@ const MarkdownBlockView = memo(function MarkdownBlockView({ block, streaming, de
124
124
  );
125
125
  case 'quote':
126
126
  return (
127
- <View style={{ borderStartWidth: 3, borderStartColor: colors.border, paddingStart: 12 }}>
127
+ <View style={{ borderStartWidth: 3, borderStartColor: tokens.border, paddingStart: 12 }}>
128
128
  <MarkdownBlocks blocks={block.children} streaming={streaming} depth={depth} />
129
129
  </View>
130
130
  );
131
131
  case 'rule':
132
- return <View role="separator" style={{ height: 1, backgroundColor: colors.border }} />;
132
+ return <View role="separator" style={{ height: 1, backgroundColor: tokens.border }} />;
133
133
  case 'list':
134
134
  return (
135
135
  <View collapsable={false} role="list" style={{ gap: ITEM_GAP }}>
@@ -169,7 +169,7 @@ interface ListItemProps {
169
169
 
170
170
  function MarkdownListItemView({ item, marker, ordered, streaming, depth }: ListItemProps) {
171
171
  const { size } = useMarkdownContext();
172
- const { colors } = useTheme();
172
+ const tokens = useColorTokens();
173
173
  const lineHeight = BODY_LINE_HEIGHT[size];
174
174
  // The marker column is as wide as the widest number, so the text hangs in line.
175
175
  const width = ordered ? 9 * marker.length + 6 : 18;
@@ -191,7 +191,7 @@ function MarkdownListItemView({ item, marker, ordered, streaming, depth }: ListI
191
191
  {item.checked !== undefined ? (
192
192
  <TaskBox checked={item.checked} />
193
193
  ) : (
194
- <Text variant={BODY[size]} style={[BODY_STYLE[size], { color: colors.textSecondary }]}>
194
+ <Text variant={BODY[size]} style={[BODY_STYLE[size], { color: tokens.mutedForeground }]}>
195
195
  {marker}
196
196
  </Text>
197
197
  )}
@@ -210,7 +210,7 @@ function MarkdownListItemView({ item, marker, ordered, streaming, depth }: ListI
210
210
 
211
211
  /** A task item's box. Read-only: the document is not a form. */
212
212
  function TaskBox({ checked }: { checked: boolean }) {
213
- const { colors } = useTheme();
213
+ const tokens = useColorTokens();
214
214
  const { messages } = useMessages(MARKDOWN_MESSAGES);
215
215
  return (
216
216
  <View
@@ -221,13 +221,13 @@ function TaskBox({ checked }: { checked: boolean }) {
221
221
  height: TASK_BOX,
222
222
  borderRadius: 4,
223
223
  borderWidth: 1.5,
224
- borderColor: checked ? colors.primary : colors.border,
225
- backgroundColor: checked ? colors.primary : 'transparent',
224
+ borderColor: checked ? tokens.primary : tokens.border,
225
+ backgroundColor: checked ? tokens.primary : 'transparent',
226
226
  alignItems: 'center',
227
227
  justifyContent: 'center',
228
228
  }}
229
229
  >
230
- {checked ? <RiCheckLine width={12} height={12} fill={colors.primaryForeground} /> : null}
230
+ {checked ? <RiCheckLine width={12} height={12} fill={tokens.primaryForeground} /> : null}
231
231
  </View>
232
232
  );
233
233
  }
@@ -243,7 +243,7 @@ const MIN_COLUMN = 96;
243
243
 
244
244
  function MarkdownTable({ align, header, rows, streaming }: TableProps) {
245
245
  const { size } = useMarkdownContext();
246
- const { colors } = useTheme();
246
+ const tokens = useColorTokens();
247
247
 
248
248
  const cells = (values: string[], isHeader: boolean, isLast: boolean) =>
249
249
  values.map((value, column) => {
@@ -273,7 +273,7 @@ function MarkdownTable({ align, header, rows, streaming }: TableProps) {
273
273
  style={{
274
274
  flexGrow: 1,
275
275
  borderWidth: 1,
276
- borderColor: colors.border,
276
+ borderColor: tokens.border,
277
277
  borderRadius: 8,
278
278
  overflow: 'hidden',
279
279
  }}
@@ -281,7 +281,7 @@ function MarkdownTable({ align, header, rows, streaming }: TableProps) {
281
281
  <View
282
282
  collapsable={false}
283
283
  role="row"
284
- style={{ flexDirection: 'row', backgroundColor: colors.backgroundSecondary }}
284
+ style={{ flexDirection: 'row', backgroundColor: tokens.surface }}
285
285
  >
286
286
  {cells(header, true, false)}
287
287
  </View>
@@ -290,7 +290,7 @@ function MarkdownTable({ align, header, rows, streaming }: TableProps) {
290
290
  collapsable={false}
291
291
  key={index}
292
292
  role="row"
293
- style={{ flexDirection: 'row', borderTopWidth: 1, borderTopColor: colors.border }}
293
+ style={{ flexDirection: 'row', borderTopWidth: 1, borderTopColor: tokens.border }}
294
294
  >
295
295
  {cells(row, false, index === rows.length - 1)}
296
296
  </View>
@@ -48,8 +48,7 @@ import { OverlayRoot, TOAST_LAYER_Z } from '../overlay';
48
48
  import { IS_WEB } from '../styles/platform';
49
49
  import { ROUNDED_FULL } from '../styles/rounded-full';
50
50
  import { TextFieldInput } from '../text-field';
51
- import { createTokenStyles } from '../theme/color-tokens';
52
- import { useTheme } from '../theme/use-theme';
51
+ import { createTokenStyles, useColorTokens } from '../theme/color-tokens';
53
52
  import { Text } from '../typography';
54
53
  import { stepLineHeight, WEB_TRANSITION_COLORS } from './web-css';
55
54
  import { SupportCopy } from './SupportCopy';
@@ -114,7 +113,7 @@ export function MultiAgentChatBase(props: MultiAgentChatProps) {
114
113
  AgentCreator,
115
114
  Dropdown: D,
116
115
  } = useChatComponents();
117
- const { colors } = useTheme();
116
+ const tokens = useColorTokens();
118
117
  const tokenStyles = useTokenStyles();
119
118
  const directionProps = useDirectionProps();
120
119
  const flights = useAvatarFlights();
@@ -628,7 +627,7 @@ export function MultiAgentChatBase(props: MultiAgentChatProps) {
628
627
  style={{
629
628
  maxWidth: 420,
630
629
  textAlign: 'center',
631
- color: colors.textSecondary,
630
+ color: tokens.mutedForeground,
632
631
  }}
633
632
  >
634
633
  {participants.length > 1
@@ -757,7 +756,7 @@ export function MultiAgentChatBase(props: MultiAgentChatProps) {
757
756
  >
758
757
  <View pointerEvents="none" style={tokenStyles.notice}>
759
758
  <View style={styles.noticeRow}>
760
- <RiCheckLine width={16} height={16} fill={colors.textSecondary} />
759
+ <RiCheckLine width={16} height={16} fill={tokens.mutedForeground} />
761
760
  {/* A confirmation: a polite `status` (RN's Text drops `aria-live`
762
761
  on native; the role is what reaches it). */}
763
762
  <Text role="status" style={tokenStyles.noticeText}>
@@ -865,10 +864,8 @@ export function MultiAgentChatBase(props: MultiAgentChatProps) {
865
864
  borderRadius: 999,
866
865
  borderStyle: 'solid',
867
866
  borderWidth: 1,
868
- borderColor: picked ? colors.textSecondary : 'transparent',
869
- backgroundColor: picked
870
- ? colors.backgroundTertiary
871
- : colors.backgroundSecondary,
867
+ borderColor: picked ? tokens.mutedForeground : 'transparent',
868
+ backgroundColor: picked ? tokens.popover : tokens.surface,
872
869
  boxShadow: 'none',
873
870
  paddingInline: 8,
874
871
  paddingStart: 8,
@@ -11,7 +11,7 @@ import { AvatarSnapshotObserver } from '../agent-avatar/context';
11
11
  import type { AvatarFlights } from '../avatar-flight';
12
12
  import { RiGroupLine } from '../icons/remix/RiGroupLine';
13
13
  import { useMessages, formatMessage } from '../locale/messages';
14
- import { useTheme } from '../theme/use-theme';
14
+ import { useColorTokens } from '../theme/color-tokens';
15
15
  import { Text } from '../typography';
16
16
  import { agentCharacter, type Agent } from './data';
17
17
  import { MULTI_AGENT_CHAT_MESSAGES } from './messages';
@@ -105,7 +105,7 @@ export function SelectedAgentPreview({
105
105
  caption?: boolean;
106
106
  }) {
107
107
  const { messages } = useMessages(MULTI_AGENT_CHAT_MESSAGES);
108
- const { colors } = useTheme();
108
+ const tokens = useColorTokens();
109
109
  return (
110
110
  <View style={[styles.preview, { paddingBottom: caption ? 20 : 0 }]}>
111
111
  <View
@@ -119,7 +119,7 @@ export function SelectedAgentPreview({
119
119
  >
120
120
  {!agents.length && (
121
121
  <View style={styles.empty}>
122
- <RiGroupLine size="3xl" fill={colors.textTertiary} />
122
+ <RiGroupLine size="3xl" fill={tokens.faintForeground} />
123
123
  </View>
124
124
  )}
125
125
  {agents.map((agent, index) => (
@@ -134,7 +134,7 @@ export function SelectedAgentPreview({
134
134
  ))}
135
135
  </View>
136
136
  {caption && (
137
- <Text variant="body-regular" style={{ color: colors.textSecondary }}>
137
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
138
138
  {messages.chooseWhoSJoiningTheConversation}
139
139
  </Text>
140
140
  )}
@@ -6,7 +6,7 @@ import { IconCircle } from '../icon-circle';
6
6
  import { RiNotification3Line } from '../icons/remix/RiNotification3Line';
7
7
  import { useMessages } from '../locale/messages';
8
8
  import type { SurfaceControls } from '../surfaces';
9
- import { useTheme } from '../theme/use-theme';
9
+ import { useColorTokens } from '../theme/color-tokens';
10
10
  import { Text } from '../typography';
11
11
  import { NOTIFICATIONS_MESSAGES } from './messages';
12
12
  import type { NotificationPermissionCopy, NotificationPermissionAdapter } from './types';
@@ -40,7 +40,7 @@ export function NotificationPermissionSheet({
40
40
  laterLabel,
41
41
  }: NotificationPermissionSheetProps) {
42
42
  const { messages } = useMessages(NOTIFICATIONS_MESSAGES);
43
- const { colors } = useTheme();
43
+ const tokens = useColorTokens();
44
44
  const [requesting, setRequesting] = useState(false);
45
45
 
46
46
  const enable = async () => {
@@ -65,7 +65,7 @@ export function NotificationPermissionSheet({
65
65
  <Text variant="title-3-semibold" accessibilityRole="header" style={styles.centered}>
66
66
  {title ?? messages.permissionTitle}
67
67
  </Text>
68
- <Text variant="body-regular" style={[styles.centered, { color: colors.textSecondary }]}>
68
+ <Text variant="body-regular" style={[styles.centered, { color: tokens.mutedForeground }]}>
69
69
  {body ?? messages.permissionBody}
70
70
  </Text>
71
71
  </View>
@@ -18,7 +18,7 @@ import { useMessages } from '../locale/messages';
18
18
  import { NOTIFICATION_CENTER_MESSAGES } from '../notification-center/messages';
19
19
  import type { NotificationCenterStatus } from '../notification-center/types';
20
20
  import { Switch } from '../switch';
21
- import { useTheme } from '../theme/use-theme';
21
+ import { useColorTokens } from '../theme/color-tokens';
22
22
  import { Text } from '../typography';
23
23
  import { NOTIFICATIONS_MESSAGES } from './messages';
24
24
  import type {
@@ -41,7 +41,7 @@ function NotificationRow({
41
41
  item: NotificationsScreenItem;
42
42
  onPress?: (id: string) => void;
43
43
  }) {
44
- const { colors } = useTheme();
44
+ const tokens = useColorTokens();
45
45
  const { messages } = useMessages(NOTIFICATION_CENTER_MESSAGES);
46
46
  const name =
47
47
  item.accessibilityLabel ??
@@ -75,13 +75,13 @@ function NotificationRow({
75
75
  {item.title}
76
76
  </Text>
77
77
  {item.timestamp ? (
78
- <Text variant="caption-1-medium" style={{ color: colors.textTertiary }}>
78
+ <Text variant="caption-1-medium" style={{ color: tokens.faintForeground }}>
79
79
  {item.timestamp}
80
80
  </Text>
81
81
  ) : null}
82
82
  </View>
83
83
  {item.description ? (
84
- <Text variant="body-regular" style={{ color: colors.textSecondary }} numberOfLines={3}>
84
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }} numberOfLines={3}>
85
85
  {item.description}
86
86
  </Text>
87
87
  ) : null}
@@ -89,7 +89,7 @@ function NotificationRow({
89
89
  {item.unread ? (
90
90
  <View
91
91
  testID={`notification-${item.id}-unread`}
92
- style={[styles.dot, { backgroundColor: colors.primary }]}
92
+ style={[styles.dot, { backgroundColor: tokens.primary }]}
93
93
  />
94
94
  ) : null}
95
95
  </Pressable>
@@ -97,7 +97,7 @@ function NotificationRow({
97
97
  }
98
98
 
99
99
  function PushRow({ push }: { push: NotificationsScreenPush }) {
100
- const { colors } = useTheme();
100
+ const tokens = useColorTokens();
101
101
  const { messages } = useMessages(NOTIFICATIONS_MESSAGES);
102
102
  const [busy, setBusy] = useState(false);
103
103
  const change = async (next: boolean) => {
@@ -112,7 +112,7 @@ function PushRow({ push }: { push: NotificationsScreenPush }) {
112
112
  <View style={styles.pushRow}>
113
113
  <View style={styles.body}>
114
114
  <Text variant="body-medium">{messages.pushTitle}</Text>
115
- <Text variant="body-regular" style={{ color: colors.textSecondary }}>
115
+ <Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
116
116
  {push.blocked ? messages.pushBlocked : messages.pushDescription}
117
117
  </Text>
118
118
  </View>
@@ -169,7 +169,7 @@ export const NotificationsScreen = memo(function NotificationsScreen({
169
169
  style,
170
170
  testID,
171
171
  }: NotificationsScreenProps) {
172
- const { colors } = useTheme();
172
+ const tokens = useColorTokens();
173
173
  const { messages } = useMessages(NOTIFICATIONS_MESSAGES);
174
174
  const { messages: center } = useMessages(NOTIFICATION_CENTER_MESSAGES);
175
175
  const { messages: common } = useMessages(COMMON_MESSAGES);
@@ -234,7 +234,7 @@ export const NotificationsScreen = memo(function NotificationsScreen({
234
234
  }
235
235
 
236
236
  return (
237
- <View style={[styles.root, { backgroundColor: colors.background }, style]} testID={testID}>
237
+ <View style={[styles.root, { backgroundColor: tokens.background }, style]} testID={testID}>
238
238
  <VirtualList
239
239
  data={items}
240
240
  renderItem={renderItem}
@@ -27,14 +27,21 @@
27
27
  * a `flex: 1` view — the content it wraps already fills the root there — and it
28
28
  * is never collapsed, because flattening a layout-only view would drop the
29
29
  * accessibility prop the moment it is needed.
30
+ *
31
+ * The covered content's lens controls are drawn in their place too, under the
32
+ * overlay (`LensCover`): the window overlay draws a resting lens above
33
+ * everything, and drew Mention's Home header over the settings modal.
30
34
  */
31
35
  import { Platform, StyleSheet, View } from 'react-native';
32
36
 
37
+ import { LensCover } from '../floating/lens/lens-cover';
38
+ import { useOptionalSurfaceFill } from '../styles/surface-levels';
33
39
  import type { OverlayInertBoundaryProps } from './types';
34
40
  import { useModalOverlayActive } from './use-modal-overlay-active';
35
41
 
36
42
  export function OverlayInertBoundary({ children, style, testID }: OverlayInertBoundaryProps) {
37
43
  const active = useModalOverlayActive();
44
+ const fill = useOptionalSurfaceFill();
38
45
 
39
46
  if (Platform.OS === 'web') {
40
47
  return (
@@ -57,7 +64,9 @@ export function OverlayInertBoundary({ children, style, testID }: OverlayInertBo
57
64
  importantForAccessibility={active ? 'no-hide-descendants' : 'auto'}
58
65
  accessibilityElementsHidden={active}
59
66
  >
60
- {children}
67
+ <LensCover covered={active} fill={fill}>
68
+ {children}
69
+ </LensCover>
61
70
  </View>
62
71
  );
63
72
  }
@@ -1,7 +1,7 @@
1
1
  import type React from 'react';
2
2
  import { TextInput, type TextStyle } from 'react-native';
3
3
  import { useFieldMembership } from '../field/membership';
4
- import { useThemePaint } from '../theme/use-theme-paint';
4
+ import { useColorTokens } from '../theme/color-tokens';
5
5
  import { TYPE_SCALE } from '../typography/scale';
6
6
  import { IS_WEB } from '../styles/platform';
7
7
  import type { PageHeaderTitleInputProps } from './types';
@@ -18,7 +18,7 @@ export function PageHeaderTitleInput({
18
18
  style,
19
19
  ...props
20
20
  }: PageHeaderTitleInputProps) {
21
- const colors = useThemePaint();
21
+ const tokens = useColorTokens();
22
22
  const field = useFieldMembership({
23
23
  label,
24
24
  accessibilityLabel,
@@ -41,11 +41,11 @@ export function PageHeaderTitleInput({
41
41
  aria-invalid={field.invalid || undefined}
42
42
  aria-required={field.required || undefined}
43
43
  editable={!field.disabled}
44
- placeholderTextColor={colors.textSecondary}
44
+ placeholderTextColor={tokens.mutedForeground}
45
45
  underlineColorAndroid="transparent"
46
46
  style={[
47
47
  TYPE_SCALE['title-1-bold'],
48
- { color: colors.text, minWidth: 0, padding: 0, borderWidth: 0 },
48
+ { color: tokens.foreground, minWidth: 0, padding: 0, borderWidth: 0 },
49
49
  // Native multiline inputs grow intrinsically. Web's default textarea
50
50
  // reserves two rows and then scrolls unless field sizing owns its height.
51
51
  multiline && { minHeight: TYPE_SCALE['title-1-bold'].lineHeight, textAlignVertical: 'top' },
@@ -1,5 +1,6 @@
1
1
  import { useLayoutEffect, useState, type ReactNode } from 'react';
2
2
  import { StyleSheet, View } from 'react-native';
3
+ import { LensCover } from '../../floating/lens/lens-cover';
3
4
  import { ScreenActivity } from '../../screen/ScreenActivity';
4
5
  import { ScreenEnteredContext } from '../../screen/use-screen-entered';
5
6
  import { useSurfaceFill } from '../../styles/surface-levels';
@@ -38,7 +39,9 @@ export interface StackSceneProps {
38
39
  * And it makes the screens of a covered scene inactive, as the pager does for
39
40
  * its pages: their videos stop, their scroll stops driving the chrome, and their
40
41
  * reselect, status bar and floating action yield to the screen on top — without
41
- * every route passing `active={isFocused}` to its `Screen`.
42
+ * every route passing `active={isFocused}` to its `Screen`. Its controls' lenses
43
+ * are drawn in their place, under the scene on top (`LensCover`), not by the
44
+ * window over it.
42
45
  *
43
46
  * A pushed scene tells its screens when the push transition has ended
44
47
  * (`useScreenEntered`), so what can wait mounts after the slide rather than on
@@ -64,7 +67,9 @@ export function StackScene({ children, navigation, routeKey }: StackSceneProps)
64
67
  accessibilityElementsHidden={!focused}
65
68
  >
66
69
  <ScreenActivity active={focused}>
67
- <ScreenEnteredContext.Provider value={entered}>{children}</ScreenEnteredContext.Provider>
70
+ <LensCover covered={!focused} fill={fill}>
71
+ <ScreenEnteredContext.Provider value={entered}>{children}</ScreenEnteredContext.Provider>
72
+ </LensCover>
68
73
  </ScreenActivity>
69
74
  </View>
70
75
  );
@@ -10,7 +10,7 @@ import {
10
10
  SelectTrigger,
11
11
  SelectValue,
12
12
  } from '../select';
13
- import { useTheme } from '../theme/use-theme';
13
+ import { useColorTokens } from '../theme/color-tokens';
14
14
  import { Text } from '../typography';
15
15
  import { CountryFlag } from './CountryFlag';
16
16
  import { COUNTRIES } from './countries';
@@ -59,12 +59,12 @@ export function CountryCodeSelect({
59
59
  label: labelProp,
60
60
  disabled,
61
61
  }: CountryCodeSelectProps) {
62
- const theme = useTheme();
62
+ const tokens = useColorTokens();
63
63
  const { messages } = useMessages(PHONE_INPUT_MESSAGES);
64
64
  const label = labelProp ?? messages.countryCode;
65
65
  // `text-text-secondary` (value) and `text-text-tertiary` (row dial codes).
66
- const secondary = theme.colors.textSecondary;
67
- const tertiary = theme.colors.textSecondary;
66
+ const secondary = tokens.mutedForeground;
67
+ const tertiary = tokens.mutedForeground;
68
68
 
69
69
  const onChange = useCallback(
70
70
  (next: string) => {
@@ -1,5 +1,5 @@
1
1
  import { AvatarGroup } from '../avatar-group';
2
- import { useTheme } from '../theme/use-theme';
2
+ import { useColorTokens } from '../theme/color-tokens';
3
3
  import type { ProjectMember } from './types';
4
4
 
5
5
  /** A 2px ring of the card's fill around each face. */
@@ -19,7 +19,7 @@ export function MemberAvatars({
19
19
  members: Readonly<Record<string, ProjectMember>>;
20
20
  size: number;
21
21
  }) {
22
- const { colors } = useTheme();
22
+ const tokens = useColorTokens();
23
23
  const items = ids.flatMap((id) => {
24
24
  const member = members[id];
25
25
  return member ? [{ id, uri: member.avatar, name: member.name, initials: member.initials }] : [];
@@ -31,7 +31,7 @@ export function MemberAvatars({
31
31
  size={size + RING * 2}
32
32
  overlap={6}
33
33
  ringWidth={RING}
34
- ringColor={colors.card}
34
+ ringColor={tokens.card}
35
35
  style={{ margin: -RING }}
36
36
  />
37
37
  );
@@ -14,7 +14,6 @@ import { useMessages } from '../locale/messages';
14
14
  import { Chip } from '../chip';
15
15
  import { useWindowBreakpoint } from '../hooks/use-width-class';
16
16
  import { webDataSet } from '../styles/web-data';
17
- import { useTheme } from '../theme/use-theme';
18
17
  import { Text } from '../typography';
19
18
  import { fontFamilyStyle } from '../typography/Typography';
20
19
  import { CreateTicketDialog } from './CreateTicketDialog';
@@ -28,7 +27,7 @@ import { useBoardEngine } from './use-board-engine';
28
27
  import { projectBoardMove } from './board-engine';
29
28
  import { CARD_CHIP, useChipFills, useChipLabels, useProjectChip } from './chips';
30
29
  import { ELLIPSIS, NOWRAP, TYPE, useBoardText, useIconFill } from './styles';
31
- import { createTokenStyles } from '../theme/color-tokens';
30
+ import { createTokenStyles, useColorTokens } from '../theme/color-tokens';
32
31
  import { useProjectBoardWebCss } from './web-css';
33
32
  import { useProjectBoardPlatform } from './context';
34
33
  import { PROJECT_BOARD_MESSAGES } from './messages';
@@ -274,7 +273,7 @@ function TicketProjectBoard({
274
273
  accessibilityLabel,
275
274
  testID = 'project-board',
276
275
  }: ProjectBoardTemplateProps) {
277
- const { colors } = useTheme();
276
+ const tokens = useColorTokens();
278
277
  const text = useBoardText();
279
278
  const breakpoint = useWindowBreakpoint();
280
279
  const sm = breakpoint !== 'base';
@@ -524,7 +523,7 @@ function TicketProjectBoard({
524
523
  renderColumnHeader={(column) => (
525
524
  <View style={styles.columnTitle}>
526
525
  <Text variant="body-medium">{column.title}</Text>
527
- <Text variant="body-medium" style={{ color: colors.textSecondary }}>
526
+ <Text variant="body-medium" style={{ color: tokens.mutedForeground }}>
528
527
  {column.items.length}/{columns.find((source) => source.id === column.id)?.limit}
529
528
  </Text>
530
529
  </View>
@@ -562,7 +561,7 @@ function TicketProjectBoard({
562
561
  style={styles.iconButton}
563
562
  {...webDataSet({ bloomBoardIconButton: '' })}
564
563
  >
565
- <RiAddLine width={20} height={20} fill={colors.icon} />
564
+ <RiAddLine width={20} height={20} fill={tokens.mutedForeground} />
566
565
  </Pressable>
567
566
  </View>
568
567
  )}
@@ -133,7 +133,7 @@ export function ProjectBoardCanvas<Item>({
133
133
  column.items.findIndex((entry) => props.getItemId(entry) === itemId)
134
134
  ? 3
135
135
  : 0,
136
- borderTopColor: colors.primary,
136
+ borderTopColor: tokens.primary,
137
137
  },
138
138
  ]}
139
139
  >
@@ -210,7 +210,7 @@ export function ProjectBoardCanvas<Item>({
210
210
  {engine.allowReorder &&
211
211
  engine.over?.columnId === column.id &&
212
212
  engine.over.index >= column.items.length && (
213
- <View style={{ height: 3, backgroundColor: colors.primary }} />
213
+ <View style={{ height: 3, backgroundColor: tokens.primary }} />
214
214
  )}
215
215
  </>
216
216
  );
@@ -1,7 +1,6 @@
1
1
  import type { TextStyle } from 'react-native';
2
2
  import { IS_WEB } from '../styles/platform';
3
- import { createTokenStyles } from '../theme/color-tokens';
4
- import { useTheme } from '../theme/use-theme';
3
+ import { createTokenStyles, useColorTokens } from '../theme/color-tokens';
5
4
 
6
5
  /**
7
6
  * A type utility's line: its px on native; on the web its ratio to the size
@@ -71,6 +70,6 @@ export const CARD_SHADOW = { offsetX: 0, offsetY: 1, blurRadius: 1, color: '#000
71
70
  * which the icon fills with.
72
71
  */
73
72
  export function useIconFill(): string | undefined {
74
- const { colors } = useTheme();
75
- return IS_WEB ? colors.primary : undefined;
73
+ const tokens = useColorTokens();
74
+ return IS_WEB ? tokens.primary : undefined;
76
75
  }