@coinbase/cds-mcp-server 8.17.2 → 8.17.4

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 (284) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/mcp-docs/mobile/components/Accordion.txt +188 -0
  3. package/mcp-docs/mobile/components/AccordionItem.txt +29 -0
  4. package/mcp-docs/mobile/components/Alert.txt +155 -0
  5. package/mcp-docs/mobile/components/AreaChart.txt +265 -0
  6. package/mcp-docs/mobile/components/Avatar.txt +195 -0
  7. package/mcp-docs/mobile/components/AvatarButton.txt +225 -0
  8. package/mcp-docs/mobile/components/Banner.txt +221 -0
  9. package/mcp-docs/mobile/components/BarChart.txt +815 -0
  10. package/mcp-docs/mobile/components/Box.txt +173 -0
  11. package/mcp-docs/mobile/components/BrowserBar.txt +146 -0
  12. package/mcp-docs/mobile/components/Button.txt +198 -0
  13. package/mcp-docs/mobile/components/ButtonGroup.txt +79 -0
  14. package/mcp-docs/mobile/components/Carousel.txt +1083 -0
  15. package/mcp-docs/mobile/components/CartesianChart.txt +825 -0
  16. package/mcp-docs/mobile/components/CellMedia.txt +70 -0
  17. package/mcp-docs/mobile/components/Checkbox.txt +245 -0
  18. package/mcp-docs/mobile/components/CheckboxCell.txt +201 -0
  19. package/mcp-docs/mobile/components/CheckboxGroup.txt +284 -0
  20. package/mcp-docs/mobile/components/Chip.txt +194 -0
  21. package/mcp-docs/mobile/components/Coachmark.txt +157 -0
  22. package/mcp-docs/mobile/components/Collapsible.txt +104 -0
  23. package/mcp-docs/mobile/components/ContainedAssetCard.txt +134 -0
  24. package/mcp-docs/mobile/components/ContentCard.txt +365 -0
  25. package/mcp-docs/mobile/components/ContentCardBody.txt +135 -0
  26. package/mcp-docs/mobile/components/ContentCardFooter.txt +127 -0
  27. package/mcp-docs/mobile/components/ContentCardHeader.txt +145 -0
  28. package/mcp-docs/mobile/components/ContentCell.txt +226 -0
  29. package/mcp-docs/mobile/components/ControlGroup.txt +443 -0
  30. package/mcp-docs/mobile/components/DatePicker.txt +496 -0
  31. package/mcp-docs/mobile/components/Divider.txt +138 -0
  32. package/mcp-docs/mobile/components/DotCount.txt +145 -0
  33. package/mcp-docs/mobile/components/DotStatusColor.txt +58 -0
  34. package/mcp-docs/mobile/components/DotSymbol.txt +134 -0
  35. package/mcp-docs/mobile/components/Fallback.txt +157 -0
  36. package/mcp-docs/mobile/components/FloatingAssetCard.txt +155 -0
  37. package/mcp-docs/mobile/components/HStack.txt +234 -0
  38. package/mcp-docs/mobile/components/HeroSquare.txt +47 -0
  39. package/mcp-docs/mobile/components/Icon.txt +51 -0
  40. package/mcp-docs/mobile/components/IconButton.txt +268 -0
  41. package/mcp-docs/mobile/components/InputChip.txt +187 -0
  42. package/mcp-docs/mobile/components/Interactable.txt +186 -0
  43. package/mcp-docs/mobile/components/LineChart.txt +1324 -0
  44. package/mcp-docs/mobile/components/Link.txt +291 -0
  45. package/mcp-docs/mobile/components/ListCell.txt +412 -0
  46. package/mcp-docs/mobile/components/LogoMark.txt +84 -0
  47. package/mcp-docs/mobile/components/LogoWordMark.txt +93 -0
  48. package/mcp-docs/mobile/components/Lottie.txt +138 -0
  49. package/mcp-docs/mobile/components/LottieStatusAnimation.txt +46 -0
  50. package/mcp-docs/mobile/components/Modal.txt +83 -0
  51. package/mcp-docs/mobile/components/ModalBody.txt +33 -0
  52. package/mcp-docs/mobile/components/ModalFooter.txt +24 -0
  53. package/mcp-docs/mobile/components/ModalHeader.txt +27 -0
  54. package/mcp-docs/mobile/components/MultiContentModule.txt +379 -0
  55. package/mcp-docs/mobile/components/NavigationTitle.txt +131 -0
  56. package/mcp-docs/mobile/components/NavigationTitleSelect.txt +141 -0
  57. package/mcp-docs/mobile/components/NudgeCard.txt +89 -0
  58. package/mcp-docs/mobile/components/Numpad.txt +340 -0
  59. package/mcp-docs/mobile/components/Overlay.txt +151 -0
  60. package/mcp-docs/mobile/components/PageFooter.txt +160 -0
  61. package/mcp-docs/mobile/components/PageHeader.txt +185 -0
  62. package/mcp-docs/mobile/components/PeriodSelector.txt +407 -0
  63. package/mcp-docs/mobile/components/Pictogram.txt +47 -0
  64. package/mcp-docs/mobile/components/Point.txt +204 -0
  65. package/mcp-docs/mobile/components/PortalProvider.txt +78 -0
  66. package/mcp-docs/mobile/components/Pressable.txt +210 -0
  67. package/mcp-docs/mobile/components/ProgressBar.txt +129 -0
  68. package/mcp-docs/mobile/components/ProgressBarWithFixedLabels.txt +160 -0
  69. package/mcp-docs/mobile/components/ProgressBarWithFloatLabel.txt +137 -0
  70. package/mcp-docs/mobile/components/ProgressCircle.txt +236 -0
  71. package/mcp-docs/mobile/components/Radio.txt +241 -0
  72. package/mcp-docs/mobile/components/RadioCell.txt +201 -0
  73. package/mcp-docs/mobile/components/RadioGroup.txt +281 -0
  74. package/mcp-docs/mobile/components/ReferenceLine.txt +152 -0
  75. package/mcp-docs/mobile/components/RemoteImage.txt +105 -0
  76. package/mcp-docs/mobile/components/RemoteImageGroup.txt +60 -0
  77. package/mcp-docs/mobile/components/RollingNumber.txt +788 -0
  78. package/mcp-docs/mobile/components/Scrubber.txt +203 -0
  79. package/mcp-docs/mobile/components/SearchInput.txt +191 -0
  80. package/mcp-docs/mobile/components/SectionHeader.txt +204 -0
  81. package/mcp-docs/mobile/components/SegmentedTabs.txt +315 -0
  82. package/mcp-docs/mobile/components/Select.txt +211 -0
  83. package/mcp-docs/mobile/components/SelectChip.txt +323 -0
  84. package/mcp-docs/mobile/components/SelectOption.txt +84 -0
  85. package/mcp-docs/mobile/components/SlideButton.txt +330 -0
  86. package/mcp-docs/mobile/components/Spacer.txt +83 -0
  87. package/mcp-docs/mobile/components/Sparkline.txt +122 -0
  88. package/mcp-docs/mobile/components/SparklineGradient.txt +106 -0
  89. package/mcp-docs/mobile/components/SparklineInteractive.txt +156 -0
  90. package/mcp-docs/mobile/components/SparklineInteractiveHeader.txt +72 -0
  91. package/mcp-docs/mobile/components/Spinner.txt +48 -0
  92. package/mcp-docs/mobile/components/SpotIcon.txt +47 -0
  93. package/mcp-docs/mobile/components/SpotRectangle.txt +47 -0
  94. package/mcp-docs/mobile/components/SpotSquare.txt +47 -0
  95. package/mcp-docs/mobile/components/Stepper.txt +527 -0
  96. package/mcp-docs/mobile/components/SubBrandLogoMark.txt +125 -0
  97. package/mcp-docs/mobile/components/SubBrandLogoWordMark.txt +125 -0
  98. package/mcp-docs/mobile/components/Switch.txt +97 -0
  99. package/mcp-docs/mobile/components/TabIndicator.txt +48 -0
  100. package/mcp-docs/mobile/components/TabLabel.txt +153 -0
  101. package/mcp-docs/mobile/components/TabNavigation.txt +146 -0
  102. package/mcp-docs/mobile/components/TabbedChips.txt +142 -0
  103. package/mcp-docs/mobile/components/Tabs.txt +190 -0
  104. package/mcp-docs/mobile/components/Tag.txt +300 -0
  105. package/mcp-docs/mobile/components/Text.txt +211 -0
  106. package/mcp-docs/mobile/components/TextInput.txt +717 -0
  107. package/mcp-docs/mobile/components/ThemeProvider.txt +132 -0
  108. package/mcp-docs/mobile/components/Toast.txt +196 -0
  109. package/mcp-docs/mobile/components/Tooltip.txt +59 -0
  110. package/mcp-docs/mobile/components/TopNavBar.txt +161 -0
  111. package/mcp-docs/mobile/components/Tour.txt +158 -0
  112. package/mcp-docs/mobile/components/Tray.txt +252 -0
  113. package/mcp-docs/mobile/components/UpsellCard.txt +321 -0
  114. package/mcp-docs/mobile/components/VStack.txt +222 -0
  115. package/mcp-docs/mobile/components/XAxis.txt +621 -0
  116. package/mcp-docs/mobile/components/YAxis.txt +567 -0
  117. package/mcp-docs/mobile/getting-started/ai-overview.txt +108 -0
  118. package/mcp-docs/mobile/getting-started/installation.txt +57 -0
  119. package/mcp-docs/mobile/getting-started/introduction.txt +102 -0
  120. package/mcp-docs/mobile/getting-started/playground.txt +28 -0
  121. package/mcp-docs/mobile/getting-started/styling.txt +84 -0
  122. package/mcp-docs/mobile/getting-started/theming.txt +286 -0
  123. package/mcp-docs/mobile/hooks/useDimensions.txt +72 -0
  124. package/mcp-docs/mobile/hooks/useEventHandler.txt +120 -0
  125. package/mcp-docs/mobile/hooks/useMergeRefs.txt +116 -0
  126. package/mcp-docs/mobile/hooks/useOverlayContentContext.txt +280 -0
  127. package/mcp-docs/mobile/hooks/usePreviousValue.txt +74 -0
  128. package/mcp-docs/mobile/hooks/useRefMap.txt +178 -0
  129. package/mcp-docs/mobile/hooks/useTheme.txt +321 -0
  130. package/mcp-docs/mobile/routes.txt +139 -0
  131. package/mcp-docs/web/components/Accordion.txt +189 -0
  132. package/mcp-docs/web/components/AccordionItem.txt +31 -0
  133. package/mcp-docs/web/components/Alert.txt +164 -0
  134. package/mcp-docs/web/components/AreaChart.txt +510 -0
  135. package/mcp-docs/web/components/Avatar.txt +211 -0
  136. package/mcp-docs/web/components/AvatarButton.txt +240 -0
  137. package/mcp-docs/web/components/Banner.txt +226 -0
  138. package/mcp-docs/web/components/BarChart.txt +1267 -0
  139. package/mcp-docs/web/components/Box.txt +175 -0
  140. package/mcp-docs/web/components/Button.txt +212 -0
  141. package/mcp-docs/web/components/ButtonGroup.txt +79 -0
  142. package/mcp-docs/web/components/Calendar.txt +181 -0
  143. package/mcp-docs/web/components/Carousel.txt +1575 -0
  144. package/mcp-docs/web/components/CartesianChart.txt +1044 -0
  145. package/mcp-docs/web/components/CellMedia.txt +56 -0
  146. package/mcp-docs/web/components/Checkbox.txt +188 -0
  147. package/mcp-docs/web/components/CheckboxCell.txt +202 -0
  148. package/mcp-docs/web/components/CheckboxGroup.txt +219 -0
  149. package/mcp-docs/web/components/Chip.txt +196 -0
  150. package/mcp-docs/web/components/Coachmark.txt +188 -0
  151. package/mcp-docs/web/components/Collapsible.txt +119 -0
  152. package/mcp-docs/web/components/ContainedAssetCard.txt +232 -0
  153. package/mcp-docs/web/components/ContentCard.txt +367 -0
  154. package/mcp-docs/web/components/ContentCardBody.txt +137 -0
  155. package/mcp-docs/web/components/ContentCardFooter.txt +129 -0
  156. package/mcp-docs/web/components/ContentCardHeader.txt +147 -0
  157. package/mcp-docs/web/components/ContentCell.txt +219 -0
  158. package/mcp-docs/web/components/ControlGroup.txt +436 -0
  159. package/mcp-docs/web/components/DatePicker.txt +505 -0
  160. package/mcp-docs/web/components/Divider.txt +143 -0
  161. package/mcp-docs/web/components/DotCount.txt +149 -0
  162. package/mcp-docs/web/components/DotStatusColor.txt +58 -0
  163. package/mcp-docs/web/components/DotSymbol.txt +137 -0
  164. package/mcp-docs/web/components/Dropdown.txt +119 -0
  165. package/mcp-docs/web/components/Fallback.txt +163 -0
  166. package/mcp-docs/web/components/FloatingAssetCard.txt +250 -0
  167. package/mcp-docs/web/components/FullscreenAlert.txt +69 -0
  168. package/mcp-docs/web/components/FullscreenModal.txt +145 -0
  169. package/mcp-docs/web/components/FullscreenModalLayout.txt +187 -0
  170. package/mcp-docs/web/components/Grid.txt +236 -0
  171. package/mcp-docs/web/components/GridColumn.txt +209 -0
  172. package/mcp-docs/web/components/HStack.txt +236 -0
  173. package/mcp-docs/web/components/HeroSquare.txt +48 -0
  174. package/mcp-docs/web/components/Icon.txt +145 -0
  175. package/mcp-docs/web/components/IconButton.txt +390 -0
  176. package/mcp-docs/web/components/InputChip.txt +187 -0
  177. package/mcp-docs/web/components/Interactable.txt +193 -0
  178. package/mcp-docs/web/components/LineChart.txt +1576 -0
  179. package/mcp-docs/web/components/Link.txt +243 -0
  180. package/mcp-docs/web/components/ListCell.txt +418 -0
  181. package/mcp-docs/web/components/LogoMark.txt +84 -0
  182. package/mcp-docs/web/components/LogoWordMark.txt +93 -0
  183. package/mcp-docs/web/components/Lottie.txt +157 -0
  184. package/mcp-docs/web/components/LottieStatusAnimation.txt +57 -0
  185. package/mcp-docs/web/components/MediaQueryProvider.txt +108 -0
  186. package/mcp-docs/web/components/Modal.txt +196 -0
  187. package/mcp-docs/web/components/ModalBody.txt +117 -0
  188. package/mcp-docs/web/components/ModalFooter.txt +119 -0
  189. package/mcp-docs/web/components/ModalHeader.txt +123 -0
  190. package/mcp-docs/web/components/MultiContentModule.txt +381 -0
  191. package/mcp-docs/web/components/NavigationBar.txt +102 -0
  192. package/mcp-docs/web/components/NavigationTitle.txt +25 -0
  193. package/mcp-docs/web/components/NavigationTitleSelect.txt +45 -0
  194. package/mcp-docs/web/components/NudgeCard.txt +181 -0
  195. package/mcp-docs/web/components/Overlay.txt +171 -0
  196. package/mcp-docs/web/components/PageFooter.txt +184 -0
  197. package/mcp-docs/web/components/PageHeader.txt +243 -0
  198. package/mcp-docs/web/components/Pagination.txt +499 -0
  199. package/mcp-docs/web/components/PeriodSelector.txt +703 -0
  200. package/mcp-docs/web/components/Pictogram.txt +48 -0
  201. package/mcp-docs/web/components/Point.txt +460 -0
  202. package/mcp-docs/web/components/PortalProvider.txt +76 -0
  203. package/mcp-docs/web/components/Pressable.txt +193 -0
  204. package/mcp-docs/web/components/ProgressBar.txt +163 -0
  205. package/mcp-docs/web/components/ProgressBarWithFixedLabels.txt +212 -0
  206. package/mcp-docs/web/components/ProgressBarWithFloatLabel.txt +181 -0
  207. package/mcp-docs/web/components/ProgressCircle.txt +443 -0
  208. package/mcp-docs/web/components/Radio.txt +219 -0
  209. package/mcp-docs/web/components/RadioCell.txt +215 -0
  210. package/mcp-docs/web/components/RadioGroup.txt +288 -0
  211. package/mcp-docs/web/components/ReferenceLine.txt +451 -0
  212. package/mcp-docs/web/components/RemoteImage.txt +165 -0
  213. package/mcp-docs/web/components/RemoteImageGroup.txt +86 -0
  214. package/mcp-docs/web/components/RollingNumber.txt +1021 -0
  215. package/mcp-docs/web/components/Scrubber.txt +231 -0
  216. package/mcp-docs/web/components/SearchInput.txt +117 -0
  217. package/mcp-docs/web/components/SectionHeader.txt +217 -0
  218. package/mcp-docs/web/components/SegmentedTabs.txt +324 -0
  219. package/mcp-docs/web/components/Select.txt +224 -0
  220. package/mcp-docs/web/components/SelectChip.txt +314 -0
  221. package/mcp-docs/web/components/SelectOption.txt +165 -0
  222. package/mcp-docs/web/components/Sidebar.txt +349 -0
  223. package/mcp-docs/web/components/SidebarItem.txt +131 -0
  224. package/mcp-docs/web/components/SidebarMoreMenu.txt +30 -0
  225. package/mcp-docs/web/components/Spacer.txt +173 -0
  226. package/mcp-docs/web/components/Sparkline.txt +122 -0
  227. package/mcp-docs/web/components/SparklineGradient.txt +106 -0
  228. package/mcp-docs/web/components/SparklineInteractive.txt +153 -0
  229. package/mcp-docs/web/components/SparklineInteractiveHeader.txt +76 -0
  230. package/mcp-docs/web/components/Spinner.txt +128 -0
  231. package/mcp-docs/web/components/SpotIcon.txt +48 -0
  232. package/mcp-docs/web/components/SpotRectangle.txt +48 -0
  233. package/mcp-docs/web/components/SpotSquare.txt +48 -0
  234. package/mcp-docs/web/components/Stepper.txt +682 -0
  235. package/mcp-docs/web/components/SubBrandLogoMark.txt +125 -0
  236. package/mcp-docs/web/components/SubBrandLogoWordMark.txt +125 -0
  237. package/mcp-docs/web/components/Switch.txt +85 -0
  238. package/mcp-docs/web/components/TabIndicator.txt +48 -0
  239. package/mcp-docs/web/components/TabLabel.txt +158 -0
  240. package/mcp-docs/web/components/TabNavigation.txt +159 -0
  241. package/mcp-docs/web/components/TabbedChips.txt +155 -0
  242. package/mcp-docs/web/components/Table.txt +367 -0
  243. package/mcp-docs/web/components/TableBody.txt +83 -0
  244. package/mcp-docs/web/components/TableCaption.txt +102 -0
  245. package/mcp-docs/web/components/TableCell.txt +165 -0
  246. package/mcp-docs/web/components/TableCellFallback.txt +97 -0
  247. package/mcp-docs/web/components/TableFooter.txt +83 -0
  248. package/mcp-docs/web/components/TableHeader.txt +100 -0
  249. package/mcp-docs/web/components/TableRow.txt +140 -0
  250. package/mcp-docs/web/components/Tabs.txt +212 -0
  251. package/mcp-docs/web/components/Tag.txt +304 -0
  252. package/mcp-docs/web/components/Text.txt +232 -0
  253. package/mcp-docs/web/components/TextInput.txt +652 -0
  254. package/mcp-docs/web/components/ThemeProvider.txt +199 -0
  255. package/mcp-docs/web/components/TileButton.txt +158 -0
  256. package/mcp-docs/web/components/Toast.txt +203 -0
  257. package/mcp-docs/web/components/Tooltip.txt +89 -0
  258. package/mcp-docs/web/components/Tour.txt +179 -0
  259. package/mcp-docs/web/components/Tray.txt +288 -0
  260. package/mcp-docs/web/components/UpsellCard.txt +319 -0
  261. package/mcp-docs/web/components/VStack.txt +224 -0
  262. package/mcp-docs/web/components/XAxis.txt +619 -0
  263. package/mcp-docs/web/components/YAxis.txt +548 -0
  264. package/mcp-docs/web/getting-started/ai-overview.txt +108 -0
  265. package/mcp-docs/web/getting-started/installation.txt +103 -0
  266. package/mcp-docs/web/getting-started/introduction.txt +102 -0
  267. package/mcp-docs/web/getting-started/playground.txt +28 -0
  268. package/mcp-docs/web/getting-started/styling.txt +161 -0
  269. package/mcp-docs/web/getting-started/templates.txt +121 -0
  270. package/mcp-docs/web/getting-started/theming.txt +426 -0
  271. package/mcp-docs/web/hooks/useBreakpoints.txt +61 -0
  272. package/mcp-docs/web/hooks/useDimensions.txt +114 -0
  273. package/mcp-docs/web/hooks/useEventHandler.txt +120 -0
  274. package/mcp-docs/web/hooks/useHasMounted.txt +75 -0
  275. package/mcp-docs/web/hooks/useIsoEffect.txt +58 -0
  276. package/mcp-docs/web/hooks/useMediaQuery.txt +114 -0
  277. package/mcp-docs/web/hooks/useMergeRefs.txt +116 -0
  278. package/mcp-docs/web/hooks/useOverlayContentContext.txt +279 -0
  279. package/mcp-docs/web/hooks/usePreviousValue.txt +74 -0
  280. package/mcp-docs/web/hooks/useRefMap.txt +178 -0
  281. package/mcp-docs/web/hooks/useScrollBlocker.txt +82 -0
  282. package/mcp-docs/web/hooks/useTheme.txt +364 -0
  283. package/mcp-docs/web/routes.txt +163 -0
  284. package/package.json +1 -1
@@ -0,0 +1,364 @@
1
+ # useTheme
2
+
3
+ Returns the currently active theme including color schemes, spacing, typography, and other design tokens.
4
+
5
+ ## Import
6
+
7
+ ```tsx
8
+ import { useTheme } from '@coinbase/cds-web'
9
+ ```
10
+
11
+ ## API
12
+
13
+ ### Overview
14
+
15
+ The `useTheme` hook returns the currently active theme based on the `ThemeProvider's` active color scheme. All values are optimized for web usage, with numeric values in rem units and CSS-compatible formats.
16
+
17
+ ### Parameters
18
+
19
+ None. The hook takes no parameters.
20
+
21
+ ### Returns
22
+
23
+ Returns a `Theme` object containing the following categories of design tokens:
24
+
25
+ #### Color Tokens
26
+
27
+ ##### Color Scheme
28
+
29
+ - `colorScheme`: `'light' | 'dark'`
30
+ - `spectrum`: Raw color values in RGB format (e.g., `'245,248,255'` for `blue0`)
31
+
32
+ ##### Semantic Colors
33
+
34
+ - Text Colors
35
+ - `color.fg`: Primary text color (RGB format)
36
+ - `color.fgMuted`: Secondary text color
37
+ - `color.fgInverse`: Inverted text color
38
+ - `color.fgPrimary`: Primary brand text color
39
+ - `color.fgWarning`: Warning text color
40
+ - `color.fgPositive`: Success text color
41
+ - `color.fgNegative`: Error text color
42
+
43
+ - Background Colors
44
+ - `color.bg`: Primary background color
45
+ - `color.bgAlternate`: Secondary background color
46
+ - `color.bgInverse`: Inverted background color
47
+ - `color.bgOverlay`: Semi-transparent overlay
48
+ - `color.bgPrimary`: Primary brand background
49
+ - `color.bgPrimaryWash`: Light primary background
50
+ - `color.bgSecondary`: Secondary background
51
+ - `color.bgTertiary`: Tertiary background
52
+ - `color.bgSecondaryWash`: Light secondary background
53
+ - `color.bgNegative`: Error background
54
+ - `color.bgNegativeWash`: Light error background
55
+ - `color.bgPositive`: Success background
56
+ - `color.bgPositiveWash`: Light success background
57
+ - `color.bgWarning`: Warning background
58
+ - `color.bgWarningWash`: Light warning background
59
+ - `color.currentColor`: Current color context
60
+ - `color.bgElevation1`: First level elevation background
61
+ - `color.bgElevation2`: Second level elevation background
62
+
63
+ - Line Colors
64
+ - `color.bgLine`: Default line color (semi-transparent)
65
+ - `color.bgLineHeavy`: Emphasized line color
66
+ - `color.bgLineInverse`: Inverted line color
67
+ - `color.bgLinePrimary`: Primary brand line color
68
+ - `color.bgLinePrimarySubtle`: Subtle primary line color
69
+
70
+ - Accent Colors
71
+ - `color.accentSubtleGreen`: Subtle green accent
72
+ - `color.accentBoldGreen`: Bold green accent
73
+ - `color.accentSubtleBlue`: Subtle blue accent
74
+ - `color.accentBoldBlue`: Bold blue accent
75
+ - `color.accentSubtlePurple`: Subtle purple accent
76
+ - `color.accentBoldPurple`: Bold purple accent
77
+ - `color.accentSubtleYellow`: Subtle yellow accent
78
+ - `color.accentBoldYellow`: Bold yellow accent
79
+ - `color.accentSubtleRed`: Subtle red accent
80
+ - `color.accentBoldRed`: Bold red accent
81
+ - `color.accentSubtleGray`: Subtle gray accent
82
+ - `color.accentBoldGray`: Bold gray accent
83
+ - `color.transparent`: Transparent color
84
+
85
+ #### Layout Tokens
86
+
87
+ ##### Spacing
88
+
89
+ - `space`: Object containing spacing values from `0` to `10` in rem units
90
+
91
+ ```tsx
92
+ {
93
+ 0: 0,
94
+ '0.25': 2,
95
+ '0.5': 4,
96
+ '0.75': 6,
97
+ 1: 8,
98
+ '1.5': 12,
99
+ 2: 16,
100
+ 3: 24,
101
+ 4: 32,
102
+ 5: 40,
103
+ 6: 48,
104
+ 7: 56,
105
+ 8: 64,
106
+ 9: 72,
107
+ 10: 80
108
+ }
109
+ ```
110
+
111
+ ##### Component Sizes
112
+
113
+ - `iconSize`: `{ xs: 12, s: 16, m: 24, l: 32 }`
114
+ - `avatarSize`: `{ s: 16, m: 24, l: 32, xl: 40, xxl: 48, xxxl: 56 }`
115
+ - `controlSize`: Form control sizes
116
+
117
+ ```tsx
118
+ {
119
+ checkboxSize: 20,
120
+ radioSize: 20,
121
+ switchWidth: 52,
122
+ switchHeight: 32,
123
+ switchThumbSize: 30,
124
+ tileSize: 106
125
+ }
126
+ ```
127
+
128
+ ##### Borders
129
+
130
+ - `borderWidth`: Values from `0` to `500` in pixels
131
+
132
+ ```tsx
133
+ {
134
+ 0: 0,
135
+ 100: 1,
136
+ 200: 2,
137
+ 300: 4,
138
+ 400: 6,
139
+ 500: 8
140
+ }
141
+ ```
142
+
143
+ - `borderRadius`: Values from `0` to `1000` in pixels
144
+
145
+ ```tsx
146
+ {
147
+ 0: 0,
148
+ 100: 4,
149
+ 200: 8,
150
+ 300: 12,
151
+ 400: 16,
152
+ 500: 24,
153
+ 600: 32,
154
+ 700: 40,
155
+ 800: 48,
156
+ 900: 56,
157
+ 1000: 1e5
158
+ }
159
+ ```
160
+
161
+ #### Typography Tokens
162
+
163
+ ##### Font Families
164
+
165
+ - `fontFamily`: Base font families for each text style using CSS variables
166
+
167
+ ```tsx
168
+ {
169
+ display1: 'var(--cds-font-display)',
170
+ display2: 'var(--cds-font-display)',
171
+ display3: 'var(--cds-font-display)',
172
+ title1: 'var(--cds-font-display)',
173
+ // ...and more variants
174
+ }
175
+ ```
176
+
177
+ - `fontFamilyMono`: Monospace font families using CSS variables
178
+
179
+ ```tsx
180
+ {
181
+ display1: 'var(--cds-font-mono)',
182
+ display2: 'var(--cds-font-mono)',
183
+ // ...and more variants
184
+ }
185
+ ```
186
+
187
+ ##### Text Styles
188
+
189
+ - `fontSize`: Font sizes in rem units
190
+
191
+ ```tsx
192
+ {
193
+ display1: '4rem', // 64px
194
+ display2: '3rem', // 48px
195
+ display3: '2.5rem', // 40px
196
+ title1: '1.75rem', // 28px
197
+ title2: '1.75rem', // 28px
198
+ title3: '1.25rem', // 20px
199
+ title4: '1.25rem', // 20px
200
+ headline: '1rem', // 16px
201
+ body: '1rem', // 16px
202
+ label1: '0.875rem', // 14px
203
+ label2: '0.875rem', // 14px
204
+ caption: '0.8125rem', // 13px
205
+ legal: '0.8125rem' // 13px
206
+ }
207
+ ```
208
+
209
+ - `fontWeight`: Font weights as CSS values
210
+
211
+ ```tsx
212
+ {
213
+ display1: '400',
214
+ title1: '600',
215
+ // ...and more variants
216
+ }
217
+ ```
218
+
219
+ - `lineHeight`: Line heights in rem units
220
+
221
+ ```tsx
222
+ {
223
+ display1: '4.5rem', // 72px
224
+ display2: '3.5rem', // 56px
225
+ display3: '3rem', // 48px
226
+ title1: '2.25rem', // 36px
227
+ title2: '2.25rem', // 36px
228
+ title3: '1.75rem', // 28px
229
+ title4: '1.75rem', // 28px
230
+ headline: '1.5rem', // 24px
231
+ body: '1.5rem', // 24px
232
+ label1: '1.25rem', // 20px
233
+ label2: '1.25rem', // 20px
234
+ caption: '1rem', // 16px
235
+ legal: '1rem' // 16px
236
+ }
237
+ ```
238
+
239
+ - `textTransform`: Text transformations as CSS values
240
+
241
+ ```tsx
242
+ {
243
+ caption: 'uppercase',
244
+ body: 'none',
245
+ // ...and more variants
246
+ }
247
+ ```
248
+
249
+ #### Effect Tokens
250
+
251
+ ##### Shadows
252
+
253
+ - `shadow`: CSS box-shadow values
254
+
255
+ ```tsx
256
+ {
257
+ elevation1: '0px 8px 12px rgba(0, 0, 0, 0.12)',
258
+ elevation2: '0px 8px 24px rgba(0, 0, 0, 0.12)'
259
+ }
260
+ ```
261
+
262
+ ### Notes
263
+
264
+ 1. The hook must be used within a `ThemeProvider` component, or it will throw an error.
265
+ 2. All numeric values are in rem units for consistent scaling with browser font size.
266
+ 3. Colors are provided in RGB format for text and background colors, allowing for opacity adjustments.
267
+ 4. Font families use CSS variables (`--cds-font-*`) for dynamic loading and fallback handling.
268
+ 5. All values are CSS-compatible and can be used directly in CSS-in-JS solutions.
269
+ 6. The theme automatically generates CSS variables for all tokens, making them available in stylesheets.
270
+
271
+ ## Examples
272
+
273
+ ### `useTheme` hook
274
+
275
+ The `useTheme` hook provides access to the current `theme` and `activeColorScheme`.
276
+
277
+ The `color` and `spectrum` objects automatically change based on the `activeColorScheme`.
278
+
279
+ ```jsx
280
+ const theme = useTheme();
281
+ theme.activeColorScheme; // "light" or "dark"
282
+ theme.spectrum; // Resolves to lightSpectrum or darkSpectrum, depends on activeColorScheme
283
+ theme.color; // Resolves to lightColor or darkColor, depends on activeColorScheme
284
+ theme.color.bgPrimary; // "rgb(0,82,255)" or "rgb(87,139,250)", depends on activeColorScheme
285
+ theme.space[2]; // 16
286
+ theme.borderRadius[200]; // 8
287
+ theme.fontSize.display3; // "2.5rem"
288
+ ```
289
+
290
+ :::tip
291
+ For best performance, prefer to use CSS Variables instead of the `useTheme` hook whenever possible. [Read more about CSS Variables here →](/components/other/ThemeProvider#themeprovider-css-variables)
292
+ :::
293
+
294
+ ### Basic usage
295
+
296
+ ```tsx live
297
+ function Example() {
298
+ const theme = useTheme();
299
+
300
+ return (
301
+ <VStack gap={2}>
302
+ <Box padding={3} background="bgAlternate" borderRadius={300}>
303
+ <TextHeadline>Current Color Scheme: {theme.activeColorScheme}</TextHeadline>
304
+ </Box>
305
+
306
+ <VStack padding={3} background="bgAlternate" borderRadius={300}>
307
+ <Text font="headline">Theme Colors</Text>
308
+ <Text>Background: {theme.color.bg}</Text>
309
+ <Text>Foreground: {theme.color.fg}</Text>
310
+ <Text>Background Primary: {theme.color.bgPrimary}</Text>
311
+ <Text>Foreground Primary: {theme.color.fgPrimary}</Text>
312
+ </VStack>
313
+ </VStack>
314
+ );
315
+ }
316
+ ```
317
+
318
+ ### Styling with Theme values
319
+
320
+ ```tsx live
321
+ function Example() {
322
+ const theme = useTheme();
323
+
324
+ const styles = {
325
+ container: {
326
+ padding: theme.space[3],
327
+ backgroundColor: theme.color.bgAlternate,
328
+ borderRadius: theme.borderRadius[300],
329
+ boxShadow: theme.shadow.elevation1,
330
+ },
331
+ text: {
332
+ fontSize: theme.fontSize.body,
333
+ lineHeight: theme.lineHeight.body,
334
+ fontFamily: theme.fontFamily.body,
335
+ color: theme.color.fgPrimary,
336
+ },
337
+ };
338
+
339
+ return (
340
+ <Box style={styles.container}>
341
+ <Text style={styles.text}>Styled using theme values</Text>
342
+ </Box>
343
+ );
344
+ }
345
+ ```
346
+
347
+ ### Color scheme detection
348
+
349
+ ```tsx live
350
+ function Example() {
351
+ const theme = useTheme();
352
+ const isDarkMode = theme.activeColorScheme === 'dark';
353
+
354
+ return (
355
+ <Box gap={0.5} borderRadius={300} alignItems="baseline">
356
+ <Text as="span">This box adapts to {isDarkMode ? 'dark' : 'light'} mode</Text>
357
+ <TextHeadline as="span" color={isDarkMode ? 'fgMuted' : 'fgPrimary'}>
358
+ with adaptive text colors
359
+ </TextHeadline>
360
+ </Box>
361
+ );
362
+ }
363
+ ```
364
+
@@ -0,0 +1,163 @@
1
+
2
+ # CDS Routes
3
+
4
+ ## Getting Started
5
+
6
+ - [theming](web/getting-started/theming.txt): The theme contains design tokens like colors, fonts, spacing, and more. The ThemeProvider provides access to these values via CSS Variables for web, and React Context for both web and React Native.
7
+ - [templates](web/getting-started/templates.txt): Get started quickly with pre-built templates for common app architectures. Choose from Next.js, Vite, or Webpack templates, all configured with CDS components and best practices.
8
+ - [styling](web/getting-started/styling.txt): CDS includes powerful and flexible APIs for styling components. Easily access values from the theme, or go rogue with full customization.
9
+ - [playground](web/getting-started/playground.txt)
10
+ - [introduction](web/getting-started/introduction.txt)
11
+ - [installation](web/getting-started/installation.txt): This guide will help you get started with installing CDS in your React project. Follow the instructions below to set up CDS and start building with our cross-platform components.
12
+ - [ai-overview](web/getting-started/ai-overview.txt)
13
+
14
+ ## Components
15
+
16
+ - [Text](web/components/Text.txt): A generic text element.
17
+ - [Tag](web/components/Tag.txt): A small label for categorizing or labeling content.
18
+ - [Link](web/components/Link.txt): A pressable Text component.
19
+ - [Tray](web/components/Tray.txt): An elevated container pinned to the bottom of the screen.
20
+ - [Tooltip](web/components/Tooltip.txt): A component that displays additional information on hover.
21
+ - [Toast](web/components/Toast.txt): A temporary notification that appears at the bottom of the screen.
22
+ - [PortalProvider](web/components/PortalProvider.txt): A component that manages the rendering of portals for overlay components.
23
+ - [Overlay](web/components/Overlay.txt): A semi-transparent layer that covers content.
24
+ - [ModalHeader](web/components/ModalHeader.txt): A component that provides a consistent header section for Modal.
25
+ - [ModalFooter](web/components/ModalFooter.txt): A footer component for Modal.
26
+ - [ModalBody](web/components/ModalBody.txt): A main content area component for Modal.
27
+ - [Modal](web/components/Modal.txt): A component that displays content in a window that requires user interaction.
28
+ - [FullscreenModalLayout](web/components/FullscreenModalLayout.txt): Provides the layout structure, overlay, focus trapping, and animations for fullscreen modals. Intended for internal use within Modal component variants.
29
+ - [FullscreenModal](web/components/FullscreenModal.txt): FullscreenModal is a component that displays content in a full-screen overlay, typically used for immersive experiences or complex interactions.
30
+ - [FullscreenAlert](web/components/FullscreenAlert.txt): A fullscreen alert component for displaying important messages that require user attention.
31
+ - [Alert](web/components/Alert.txt): A dialog that communicates critical information and blocks user interaction.
32
+ - [ThemeProvider](web/components/ThemeProvider.txt): Provides the theme context to all child components, and automatically generates CSS Variables for dynamic theming.
33
+ - [MediaQueryProvider](web/components/MediaQueryProvider.txt): Manages window.matchMedia subscriptions with SSR support.
34
+ - [DotSymbol](web/components/DotSymbol.txt): Dots are component adornments, typically used to communicate a numerical value or indicate the status or identity of a component to the end-user.
35
+ - [DotStatusColor](web/components/DotStatusColor.txt): Dots are component adornments, typically used to communicate a numerical value or indicate the status or identity of a component to the end-user.
36
+ - [DotCount](web/components/DotCount.txt): Dots are component adornments, typically used to communicate a numerical value or indicate the status or identity of a component to the end-user.
37
+ - [DatePicker](web/components/DatePicker.txt): Date Picker allows our global users to input past, present, future and important dates into our interface in a simple and intuitive manner. Date Picker offers both manual and calendar entry options - accommodating both internationalization and accessibility needs while being adaptable across screen platforms.
38
+ - [Calendar](web/components/Calendar.txt): Calendar is a flexible, accessible date grid component for selecting dates, supporting keyboard navigation, disabled/highlighted dates, and custom rendering.
39
+ - [RollingNumber](web/components/RollingNumber.txt): A numeric display that animates value changes with rolling digits.
40
+ - [Tour](web/components/Tour.txt): Creates guided tours of a user interface.
41
+ - [Tabs](web/components/Tabs.txt): Tabs is a flexible, accessible tab navigation component for switching between content sections. It supports custom tab components, animated active indicators, and full keyboard navigation.
42
+ - [TabbedChips](web/components/TabbedChips.txt): Tab chips are to be used in a filter setting where the user is given the ability to refine the data source they are accessing.
43
+ - [TabNavigation](web/components/TabNavigation.txt): Organizes content across different screens or data sets.
44
+ - [TabLabel](web/components/TabLabel.txt): A text label component used within tab navigation.
45
+ - [TabIndicator](web/components/TabIndicator.txt): A visual indicator that shows the active tab position.
46
+ - [Stepper](web/components/Stepper.txt): A component that visualizes states within a multi-step process.
47
+ - [SidebarMoreMenu](web/components/SidebarMoreMenu.txt): SidebarMoreMenu provides a dropdown menu for additional navigation options in the Sidebar.
48
+ - [SidebarItem](web/components/SidebarItem.txt): SidebarItem represents a single navigation item within the Sidebar component.
49
+ - [Sidebar](web/components/Sidebar.txt): A vertical navigation menu for accessing different sections.
50
+ - [SegmentedTabs](web/components/SegmentedTabs.txt): Switches between different views of content.
51
+ - [SectionHeader](web/components/SectionHeader.txt): A header component used to organize and label sections of content, with support for icons, descriptions, and additional content.
52
+ - [Pagination](web/components/Pagination.txt): Pagination is used to navigate through a list of items.
53
+ - [PageHeader](web/components/PageHeader.txt): A flexible header component for pages.
54
+ - [PageFooter](web/components/PageFooter.txt): PageFooter is a layout component that provides a consistent footer area for pages, with responsive padding and justification, typically used for action buttons or navigation elements.
55
+ - [NavigationTitleSelect](web/components/NavigationTitleSelect.txt): A select component styled as a navigation title, allowing users to switch between different views or contexts from the header.
56
+ - [NavigationTitle](web/components/NavigationTitle.txt): Navigation Title is used to display the current page or section title in the Navigation Bar.
57
+ - [NavigationBar](web/components/NavigationBar.txt): A universal header component for navigation and wayfinding.
58
+ - [Coachmark](web/components/Coachmark.txt): Coachmark is a flexible, accessible overlay component for onboarding, feature tours, and contextual help. It supports custom content, actions, and media.
59
+ - [SubBrandLogoWordMark](web/components/SubBrandLogoWordMark.txt): Coinbase sub-brand logo wordmarks for specialized branding.
60
+ - [SubBrandLogoMark](web/components/SubBrandLogoMark.txt): Coinbase sub-brand logo marks for specialized branding.
61
+ - [SpotSquare](web/components/SpotSquare.txt): A square-shaped illustration component for displaying spot graphics.
62
+ - [SpotRectangle](web/components/SpotRectangle.txt): A rectangular illustration component for displaying spot graphics.
63
+ - [SpotIcon](web/components/SpotIcon.txt): An icon-sized illustration component for displaying spot graphics.
64
+ - [RemoteImageGroup](web/components/RemoteImageGroup.txt): A component to display a group of RemoteImage components in a stack.
65
+ - [RemoteImage](web/components/RemoteImage.txt): A React component for displaying different types of images, including network images, static resources, temporary local images, and images from local disk, such as the camera roll.
66
+ - [Pictogram](web/components/Pictogram.txt): Displays elevated product icons.
67
+ - [LogoWordMark](web/components/LogoWordMark.txt): The full Coinbase logo with text for branding.
68
+ - [LogoMark](web/components/LogoMark.txt): The Coinbase logo mark for branding.
69
+ - [Icon](web/components/Icon.txt): Displays icons from the icon font.
70
+ - [HeroSquare](web/components/HeroSquare.txt): Displays a square-shaped hero illustration.
71
+ - [CellMedia](web/components/CellMedia.txt): Displays media within cells.
72
+ - [Avatar](web/components/Avatar.txt): Avatar is a visual representation of a user, company, or entity.
73
+ - [VStack](web/components/VStack.txt): A Box with flexDirection="column" set by default.
74
+ - [Spacer](web/components/Spacer.txt): Creates space between elements.
75
+ - [MultiContentModule](web/components/MultiContentModule.txt): A versatile container designed to streamline user experiences across Critical User Journeys. Accommodates a range of content including an illustration, input fields (text inputs, list cells, etc.), and an action button.
76
+ - [HStack](web/components/HStack.txt): A Box with flexDirection="row" set by default.
77
+ - [GridColumn](web/components/GridColumn.txt): Place children of a Grid between specific grid lines.
78
+ - [Grid](web/components/Grid.txt): A Box with extra props to make it easier to use the CSS grid API.
79
+ - [Dropdown](web/components/Dropdown.txt): An overlay that opens and closes.
80
+ - [Divider](web/components/Divider.txt): Separates content into sections.
81
+ - [Collapsible](web/components/Collapsible.txt): A container that can be expanded or collapsed.
82
+ - [Carousel](web/components/Carousel.txt): A flexible carousel component for displaying sequences of content with navigation and pagination options.
83
+ - [ButtonGroup](web/components/ButtonGroup.txt): Groups buttons with consistent spacing.
84
+ - [Box](web/components/Box.txt): A generic container, like a supercharged div.
85
+ - [AccordionItem](web/components/AccordionItem.txt): An individual collapsible item within an Accordion.
86
+ - [Accordion](web/components/Accordion.txt): A collapsible component for displaying auxiliary content.
87
+ - [TileButton](web/components/TileButton.txt): A pressable tile component that displays a pictogram or custom content with a title and optional count. Used for grid-based navigation and quick actions.
88
+ - [TextInput](web/components/TextInput.txt): A control for entering text.
89
+ - [Switch](web/components/Switch.txt): A control for toggling between on and off.
90
+ - [SelectOption](web/components/SelectOption.txt): A single option of a Select component.
91
+ - [SelectChip](web/components/SelectChip.txt): A Chip and Select control for selecting from a list of options.
92
+ - [Select](web/components/Select.txt): A Dropdown control for selecting from a list of options.
93
+ - [SearchInput](web/components/SearchInput.txt): A control for searching a dataset.
94
+ - [RadioGroup](web/components/RadioGroup.txt): Radio is a control component that allows users to select one option from a set.
95
+ - [RadioCell](web/components/RadioCell.txt): A selectable cell that pairs a radio button with a title and description for single-choice selections.
96
+ - [Radio](web/components/Radio.txt): Radio is a control component that allows users to select one option from a set of mutually exclusive options.
97
+ - [Pressable](web/components/Pressable.txt): Extends the Interactable component to add accessibility support for press interactions.
98
+ - [Interactable](web/components/Interactable.txt): A generic component for creating interactable elements. Provides dynamic styling for hovered, pressed, and disabled states.
99
+ - [InputChip](web/components/InputChip.txt): A Chip used for removable selections.
100
+ - [IconButton](web/components/IconButton.txt): A Button with an Icon for content.
101
+ - [ControlGroup](web/components/ControlGroup.txt): A layout component that arranges and manages a group of related controls, such as radio buttons, switches, or checkboxes.
102
+ - [Chip](web/components/Chip.txt): A compact, interactive content element.
103
+ - [CheckboxGroup](web/components/CheckboxGroup.txt): CheckboxGroup is a control component that allows users to select multiple options from a set of choices. It manages the state and layout of multiple checkbox inputs as a cohesive group.
104
+ - [CheckboxCell](web/components/CheckboxCell.txt): A selectable cell that pairs a checkbox with a title and description for multi-choice selections.
105
+ - [Checkbox](web/components/Checkbox.txt): Checkbox is a type of control component that allows user to select one or more options from a set. They can also be used alone to switch between on and off.
106
+ - [Button](web/components/Button.txt): A pressable button element.
107
+ - [AvatarButton](web/components/AvatarButton.txt): A pressable Avatar.
108
+ - [YAxis](web/components/YAxis.txt): A vertical axis component for CartesianChart. Displays tick marks, labels, gridlines, and supports custom formatting, positioning, and data domains.
109
+ - [XAxis](web/components/XAxis.txt): A horizontal axis component for CartesianChart. Displays tick marks, labels, gridlines, and supports custom formatting and data domains.
110
+ - [SparklineInteractiveHeader](web/components/SparklineInteractiveHeader.txt): The SparklineInteractiveHeader is used to display chart information that changes over time
111
+ - [SparklineInteractive](web/components/SparklineInteractive.txt): The SparklineInteractive is used to display a Sparkline that has multiple time periods
112
+ - [SparklineGradient](web/components/SparklineGradient.txt): A small line chart component with gradient fill below the line.
113
+ - [Sparkline](web/components/Sparkline.txt): A small line chart component for displaying data trends.
114
+ - [Scrubber](web/components/Scrubber.txt): An interactive scrubber component for exploring individual data points in charts. Displays values on hover or drag and supports custom labels and formatting.
115
+ - [ReferenceLine](web/components/ReferenceLine.txt): A horizontal or vertical reference line to mark important values on a chart, such as targets, thresholds, or baseline values.
116
+ - [Point](web/components/Point.txt): Visual markers that highlight specific data values on a chart. Points can be customized with different colors, sizes, and interactivity.
117
+ - [PeriodSelector](web/components/PeriodSelector.txt): A selector component for choosing time periods in charts.
118
+ - [LineChart](web/components/LineChart.txt): A flexible line chart component for displaying data trends over time. Supports multiple series, custom curves, areas, scrubbing, and interactive data exploration.
119
+ - [CartesianChart](web/components/CartesianChart.txt): A flexible, low-level chart component for displaying data in an x/y coordinate space. Provides a foundation for building custom chart visualizations with full control over rendering.
120
+ - [BarChart](web/components/BarChart.txt): A bar chart component for comparing values across categories. Supports horizontal and vertical orientations, stacked bars, and grouped series.
121
+ - [AreaChart](web/components/AreaChart.txt): A chart component that displays data as filled areas beneath lines. Ideal for showing cumulative values, stacked data, or emphasizing volume over time.
122
+ - [Spinner](web/components/Spinner.txt): A component that displays a spinning animation.
123
+ - [ProgressCircle](web/components/ProgressCircle.txt): A circular visual indicator of completion progress.
124
+ - [ProgressBarWithFloatLabel](web/components/ProgressBarWithFloatLabel.txt): A ProgressBar with a floating label that moves with progress.
125
+ - [ProgressBarWithFixedLabels](web/components/ProgressBarWithFixedLabels.txt): A ProgressBar with fixed labels at defined positions.
126
+ - [ProgressBar](web/components/ProgressBar.txt): A visual indicator of completion progress.
127
+ - [Fallback](web/components/Fallback.txt): A component that displays a fallback animation.
128
+ - [Banner](web/components/Banner.txt): Displays important messages and actions to users.
129
+ - [TableRow](web/components/TableRow.txt): Defines rows within a Table.
130
+ - [TableHeader](web/components/TableHeader.txt): Defines the header section of Table.
131
+ - [TableFooter](web/components/TableFooter.txt): Defines the footer section of Table.
132
+ - [TableCellFallback](web/components/TableCellFallback.txt): Shows a loading state for Table cells.
133
+ - [TableCell](web/components/TableCell.txt): Defines individual cells within a Table.
134
+ - [TableCaption](web/components/TableCaption.txt): Sets an accessible title or caption for Table.
135
+ - [TableBody](web/components/TableBody.txt): Defines the body section of Table.
136
+ - [Table](web/components/Table.txt): Displays data in rows and columns.
137
+ - [ListCell](web/components/ListCell.txt): A versatile cell component used for displaying content in a list format, supporting various layouts and interactions.
138
+ - [ContentCell](web/components/ContentCell.txt): A versatile cell component for displaying content with optional metadata.
139
+ - [UpsellCard](web/components/UpsellCard.txt): A card component for promoting new features, products, or actions.
140
+ - [NudgeCard](web/components/NudgeCard.txt): A card component designed to encourage users to take essential actions.
141
+ - [FloatingAssetCard](web/components/FloatingAssetCard.txt): A card component for displaying and managing asset holdings.
142
+ - [ContentCardHeader](web/components/ContentCardHeader.txt): A header component for ContentCard.
143
+ - [ContentCardFooter](web/components/ContentCardFooter.txt): A footer component for ContentCard.
144
+ - [ContentCardBody](web/components/ContentCardBody.txt): A main content area component for ContentCard.
145
+ - [ContentCard](web/components/ContentCard.txt): A flexible card component for displaying content.
146
+ - [ContainedAssetCard](web/components/ContainedAssetCard.txt): A card component for displaying and managing asset holdings.
147
+ - [LottieStatusAnimation](web/components/LottieStatusAnimation.txt): A specialized component for displaying trade status animations.
148
+ - [Lottie](web/components/Lottie.txt): Renders After Effects animations as vectors.
149
+
150
+ ## Hooks
151
+
152
+ - [useTheme](web/hooks/useTheme.txt): Returns the currently active theme including color schemes, spacing, typography, and other design tokens.
153
+ - [useScrollBlocker](web/hooks/useScrollBlocker.txt): Block and unblock page scrolling.
154
+ - [useRefMap](web/hooks/useRefMap.txt): Manages a collection of refs using a key-value map structure, allowing dynamic registration and retrieval of refs by their unique identifiers. Commonly used in components that need to track multiple DOM elements, such as tabs, tours, or complex navigation systems.
155
+ - [usePreviousValue](web/hooks/usePreviousValue.txt): Returns the previous value of a given variable, useful for comparing current and previous states in effects or for tracking changes over time.
156
+ - [useOverlayContentContext](web/hooks/useOverlayContentContext.txt): A React context and hook for detecting if components are rendered inside overlay containers like modals, drawers, tours, and trays.
157
+ - [useMergeRefs](web/hooks/useMergeRefs.txt): Combines multiple refs into a single ref callback, allowing a component to work with multiple ref instances simultaneously. Useful when you need to combine refs from different sources, such as forwarded refs and internal component state.
158
+ - [useMediaQuery](web/hooks/useMediaQuery.txt): Subscribes to window.matchMedia changes with SSR support.
159
+ - [useIsoEffect](web/hooks/useIsoEffect.txt): A safe way of calling useLayoutEffect only on the client. Does nothing on the server.
160
+ - [useHasMounted](web/hooks/useHasMounted.txt): Returns a boolean indicating if the component has mounted.
161
+ - [useEventHandler](web/hooks/useEventHandler.txt): Creates event handlers for components based on the EventHandlerProvider configuration. It enables centralized event handling and analytics tracking by mapping component actions to configured handlers.
162
+ - [useDimensions](web/hooks/useDimensions.txt): Measures an element's dimensions using ResizeObserver.
163
+ - [useBreakpoints](web/hooks/useBreakpoints.txt): Returns an object with a boolean for each breakpoint of the window. Useful for conditionally rendering components or component trees based on the current window breakpoint.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-mcp-server",
3
- "version": "8.17.2",
3
+ "version": "8.17.4",
4
4
  "description": "Coinbase Design System - MCP Server",
5
5
  "repository": {
6
6
  "type": "git",