@deriv-com/dds-marketing 1.1.3 → 1.2.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 (289) hide show
  1. package/.llm/components/accordion.md +6 -0
  2. package/.llm/components/accordionitem.md +6 -0
  3. package/.llm/components/aspectratio.md +6 -0
  4. package/.llm/components/awards.md +6 -0
  5. package/.llm/components/background.md +49 -10
  6. package/.llm/components/badge.md +6 -0
  7. package/.llm/components/bottomsheet.md +6 -0
  8. package/.llm/components/breadcrumb.md +6 -0
  9. package/.llm/components/breadcrumbitem.md +6 -0
  10. package/.llm/components/button.md +9 -3
  11. package/.llm/components/buttonicon.md +7 -1
  12. package/.llm/components/card.md +6 -0
  13. package/.llm/components/cardbody.md +7 -1
  14. package/.llm/components/cardbutton.md +6 -0
  15. package/.llm/components/checkbox.md +6 -0
  16. package/.llm/components/comparisoncards.md +9 -3
  17. package/.llm/components/comparisontable.md +6 -0
  18. package/.llm/components/ctabanner.md +6 -0
  19. package/.llm/components/ctabannerslider.md +6 -0
  20. package/.llm/components/datatable.md +6 -0
  21. package/.llm/components/divider.md +6 -0
  22. package/.llm/components/documentlink.md +237 -0
  23. package/.llm/components/documents.md +268 -0
  24. package/.llm/components/downloadbanner.md +7 -1
  25. package/.llm/components/dropdownmenu.md +6 -0
  26. package/.llm/components/estimator.md +6 -0
  27. package/.llm/components/faqaccordion.md +6 -0
  28. package/.llm/components/featurebullets.md +6 -0
  29. package/.llm/components/featurecards.md +42 -2
  30. package/.llm/components/featurecardscarousel.md +7 -1
  31. package/.llm/components/featurescroll.md +6 -0
  32. package/.llm/components/featuresplit.md +6 -0
  33. package/.llm/components/featurestack.md +6 -0
  34. package/.llm/components/featuretabs.md +369 -0
  35. package/.llm/components/filterchip.md +6 -0
  36. package/.llm/components/footer.md +6 -0
  37. package/.llm/components/footergroup.md +6 -0
  38. package/.llm/components/grid.md +30 -1
  39. package/.llm/components/icon.md +6 -0
  40. package/.llm/components/illustrationcard.md +52 -2
  41. package/.llm/components/illustrationcheck.md +193 -0
  42. package/.llm/components/illustrationchoice.md +187 -0
  43. package/.llm/components/illustrationcode.md +192 -0
  44. package/.llm/components/illustrationlist.md +175 -0
  45. package/.llm/components/illustrationscene.md +29 -3
  46. package/.llm/components/imagebanner.md +30 -5
  47. package/.llm/components/landinghero.md +6 -0
  48. package/.llm/components/link.md +7 -1
  49. package/.llm/components/logocolumns.md +7 -1
  50. package/.llm/components/logorows.md +42 -2
  51. package/.llm/components/menuitem.md +6 -0
  52. package/.llm/components/navbar.md +6 -0
  53. package/.llm/components/navbaritem.md +6 -0
  54. package/.llm/components/navbarmenu.md +6 -0
  55. package/.llm/components/navbarmenugroup.md +6 -0
  56. package/.llm/components/navbarpanel.md +6 -0
  57. package/.llm/components/navbarswitcher.md +6 -0
  58. package/.llm/components/navbarswitcheroption.md +6 -0
  59. package/.llm/components/option.md +6 -0
  60. package/.llm/components/pageheader.md +6 -0
  61. package/.llm/components/pagination.md +6 -0
  62. package/.llm/components/paginationdots.md +6 -0
  63. package/.llm/components/producthero.md +6 -0
  64. package/.llm/components/progressbar.md +305 -0
  65. package/.llm/components/removablechip.md +6 -0
  66. package/.llm/components/resourcebanner.md +6 -0
  67. package/.llm/components/row.md +6 -0
  68. package/.llm/components/scenescroll.md +38 -24
  69. package/.llm/components/scenescrollword.md +267 -0
  70. package/.llm/components/scroller.md +6 -0
  71. package/.llm/components/searchinput.md +6 -0
  72. package/.llm/components/segmentedcontrol.md +28 -1
  73. package/.llm/components/segmentedcontrolitem.md +6 -0
  74. package/.llm/components/select.md +6 -0
  75. package/.llm/components/selectchip.md +6 -0
  76. package/.llm/components/spinner.md +6 -0
  77. package/.llm/components/stack.md +6 -0
  78. package/.llm/components/stats.md +46 -1
  79. package/.llm/components/statscarousel.md +227 -0
  80. package/.llm/components/statusdot.md +41 -1
  81. package/.llm/components/steps.md +6 -0
  82. package/.llm/components/stickycards.md +6 -0
  83. package/.llm/components/subdomainnavbar.md +6 -0
  84. package/.llm/components/tab.md +6 -0
  85. package/.llm/components/table.md +6 -0
  86. package/.llm/components/tablebody.md +6 -0
  87. package/.llm/components/tablecell.md +6 -0
  88. package/.llm/components/tablehead.md +6 -0
  89. package/.llm/components/tableheadercell.md +6 -0
  90. package/.llm/components/tablerow.md +6 -0
  91. package/.llm/components/tablist.md +6 -0
  92. package/.llm/components/teamgrid.md +6 -0
  93. package/.llm/components/testimonialrow.md +43 -3
  94. package/.llm/components/testimonialslider.md +8 -2
  95. package/.llm/components/textarea.md +6 -0
  96. package/.llm/components/textinput.md +6 -0
  97. package/.llm/components/textscroll.md +6 -0
  98. package/.llm/components/tiers.md +13 -7
  99. package/.llm/components/tooltip.md +6 -0
  100. package/.llm/components/typography.md +63 -1
  101. package/.llm/digest/background.md +14 -6
  102. package/.llm/digest/button.md +1 -1
  103. package/.llm/digest/buttonicon.md +1 -1
  104. package/.llm/digest/documentlink.md +52 -0
  105. package/.llm/digest/documents.md +51 -0
  106. package/.llm/digest/downloadbanner.md +1 -1
  107. package/.llm/digest/featurecards.md +7 -0
  108. package/.llm/digest/featuretabs.md +50 -0
  109. package/.llm/digest/grid.md +1 -0
  110. package/.llm/digest/illustrationcard.md +6 -1
  111. package/.llm/digest/illustrationcheck.md +42 -0
  112. package/.llm/digest/illustrationchoice.md +43 -0
  113. package/.llm/digest/illustrationcode.md +41 -0
  114. package/.llm/digest/illustrationlist.md +38 -0
  115. package/.llm/digest/illustrationscene.md +4 -2
  116. package/.llm/digest/imagebanner.md +9 -3
  117. package/.llm/digest/logocolumns.md +1 -1
  118. package/.llm/digest/logorows.md +8 -1
  119. package/.llm/digest/progressbar.md +56 -0
  120. package/.llm/digest/scenescroll.md +6 -5
  121. package/.llm/digest/scenescrollword.md +56 -0
  122. package/.llm/digest/segmentedcontrol.md +3 -0
  123. package/.llm/digest/stats.md +8 -0
  124. package/.llm/digest/statscarousel.md +48 -0
  125. package/.llm/digest/statusdot.md +7 -0
  126. package/.llm/digest/testimonialrow.md +8 -1
  127. package/.llm/digest/testimonialslider.md +1 -1
  128. package/.llm/digest/typography.md +18 -0
  129. package/.llm/index.md +14 -4
  130. package/.llm/rules.md +10 -0
  131. package/.llm/tokens.md +12 -3
  132. package/AGENTS.md +13 -2
  133. package/dist/components/arrival.d.ts +32 -0
  134. package/dist/components/arrival.js +140 -0
  135. package/dist/components/arrives.d.ts +17 -0
  136. package/dist/components/arrives.js +14 -0
  137. package/dist/components/blocks/awards/Awards.js +2 -27
  138. package/dist/components/blocks/block-pattern.css +23 -0
  139. package/dist/components/blocks/comparison-cards/comparison-cards-impl.css +29 -0
  140. package/dist/components/blocks/documents/Documents.css +90 -0
  141. package/dist/components/blocks/documents/Documents.d.ts +22 -0
  142. package/dist/components/blocks/documents/Documents.js +30 -0
  143. package/dist/components/blocks/documents/Documents.types.d.ts +37 -0
  144. package/dist/components/blocks/documents/Documents.types.js +14 -0
  145. package/dist/components/blocks/documents/documents-impl.css +103 -0
  146. package/dist/components/blocks/download-banner/DownloadBanner.css +1 -1
  147. package/dist/components/blocks/download-banner/DownloadBanner.types.d.ts +1 -1
  148. package/dist/components/blocks/feature-cards/FeatureCards.d.ts +2 -1
  149. package/dist/components/blocks/feature-cards/FeatureCards.js +10 -7
  150. package/dist/components/blocks/feature-cards/FeatureCards.types.d.ts +9 -1
  151. package/dist/components/blocks/feature-cards/feature-cards-impl.css +15 -3
  152. package/dist/components/blocks/feature-cards-carousel/FeatureCardsCarousel.types.d.ts +1 -1
  153. package/dist/components/blocks/feature-cards-carousel/feature-cards-carousel-impl.css +12 -0
  154. package/dist/components/blocks/feature-tabs/FeatureTabs.css +100 -0
  155. package/dist/components/blocks/feature-tabs/FeatureTabs.d.ts +23 -0
  156. package/dist/components/blocks/feature-tabs/FeatureTabs.js +38 -0
  157. package/dist/components/blocks/feature-tabs/FeatureTabs.types.d.ts +35 -0
  158. package/dist/components/blocks/feature-tabs/FeatureTabs.types.js +14 -0
  159. package/dist/components/blocks/feature-tabs/feature-tabs-impl.css +53 -0
  160. package/dist/components/blocks/image-banner/ImageBanner.css +1 -1
  161. package/dist/components/blocks/image-banner/ImageBanner.d.ts +1 -1
  162. package/dist/components/blocks/image-banner/ImageBanner.js +2 -2
  163. package/dist/components/blocks/image-banner/ImageBanner.types.d.ts +9 -7
  164. package/dist/components/blocks/image-banner/ImageBanner.types.js +1 -1
  165. package/dist/components/blocks/image-banner/image-banner-impl.css +107 -29
  166. package/dist/components/blocks/laurel.d.ts +16 -0
  167. package/dist/components/blocks/laurel.js +28 -0
  168. package/dist/components/blocks/logo-columns/LogoColumns.css +1 -1
  169. package/dist/components/blocks/logo-columns/LogoColumns.types.d.ts +1 -1
  170. package/dist/components/blocks/logo-rows/LogoRows.css +1 -1
  171. package/dist/components/blocks/logo-rows/LogoRows.d.ts +2 -1
  172. package/dist/components/blocks/logo-rows/LogoRows.js +7 -4
  173. package/dist/components/blocks/logo-rows/LogoRows.types.d.ts +9 -1
  174. package/dist/components/blocks/pattern-tone.d.ts +11 -0
  175. package/dist/components/blocks/pattern-tone.js +7 -0
  176. package/dist/components/blocks/resource-banner/ResourceBanner.css +1 -1
  177. package/dist/components/blocks/scene-scroll/SceneScroll.css +1 -1
  178. package/dist/components/blocks/scene-scroll/SceneScroll.d.ts +7 -5
  179. package/dist/components/blocks/scene-scroll/SceneScroll.js +9 -7
  180. package/dist/components/blocks/scene-scroll/SceneScroll.types.d.ts +5 -5
  181. package/dist/components/blocks/scene-scroll/SceneScroll.types.js +1 -1
  182. package/dist/components/blocks/scene-scroll/scene-scroll-impl.css +139 -41
  183. package/dist/components/blocks/scene-scroll-word/SceneScrollWord.css +105 -0
  184. package/dist/components/blocks/scene-scroll-word/SceneScrollWord.d.ts +31 -0
  185. package/dist/components/blocks/scene-scroll-word/SceneScrollWord.js +67 -0
  186. package/dist/components/blocks/scene-scroll-word/SceneScrollWord.types.d.ts +39 -0
  187. package/dist/components/blocks/scene-scroll-word/SceneScrollWord.types.js +18 -0
  188. package/dist/components/blocks/scene-scroll-word/scene-scroll-word-impl.css +370 -0
  189. package/dist/components/blocks/stats/Stats.d.ts +2 -1
  190. package/dist/components/blocks/stats/Stats.js +17 -14
  191. package/dist/components/blocks/stats/Stats.types.d.ts +8 -0
  192. package/dist/components/blocks/stats/stats-impl.css +31 -2
  193. package/dist/components/blocks/stats/use-wheel.d.ts +1 -1
  194. package/dist/components/blocks/stats/use-wheel.js +8 -4
  195. package/dist/components/blocks/stats-carousel/StatsCarousel.css +209 -0
  196. package/dist/components/blocks/stats-carousel/StatsCarousel.d.ts +20 -0
  197. package/dist/components/blocks/stats-carousel/StatsCarousel.js +48 -0
  198. package/dist/components/blocks/stats-carousel/StatsCarousel.types.d.ts +43 -0
  199. package/dist/components/blocks/stats-carousel/StatsCarousel.types.js +23 -0
  200. package/dist/components/blocks/stats-carousel/stats-carousel-impl.css +233 -0
  201. package/dist/components/blocks/sticky-cards/sticky-cards-impl.css +8 -0
  202. package/dist/components/blocks/testimonial-row/TestimonialRow.css +1 -1
  203. package/dist/components/blocks/testimonial-row/TestimonialRow.d.ts +2 -1
  204. package/dist/components/blocks/testimonial-row/TestimonialRow.js +16 -13
  205. package/dist/components/blocks/testimonial-row/TestimonialRow.types.d.ts +9 -1
  206. package/dist/components/blocks/testimonial-slider/TestimonialSlider.css +1 -1
  207. package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.d.ts +1 -1
  208. package/dist/components/blocks/tiers/Tiers.types.d.ts +1 -1
  209. package/dist/components/core/background/Background.css +19 -0
  210. package/dist/components/core/background/Background.types.d.ts +2 -1
  211. package/dist/components/core/background/background-impl.css +47 -15
  212. package/dist/components/core/background/halftone.js +1 -1
  213. package/dist/components/core/button/Button.css +5 -5
  214. package/dist/components/core/button-icon/ButtonIcon.types.d.ts +1 -1
  215. package/dist/components/core/card-body/CardBody.css +5 -0
  216. package/dist/components/core/card-body/CardBody.types.d.ts +1 -1
  217. package/dist/components/core/document-link/DocumentLink.css +59 -0
  218. package/dist/components/core/document-link/DocumentLink.d.ts +19 -0
  219. package/dist/components/core/document-link/DocumentLink.js +21 -0
  220. package/dist/components/core/document-link/DocumentLink.types.d.ts +41 -0
  221. package/dist/components/core/document-link/DocumentLink.types.js +11 -0
  222. package/dist/components/core/document-link/document-link-impl.css +23 -0
  223. package/dist/components/core/illustration-card/IllustrationCard.css +7 -0
  224. package/dist/components/core/illustration-card/IllustrationCard.d.ts +5 -1
  225. package/dist/components/core/illustration-card/IllustrationCard.js +34 -8
  226. package/dist/components/core/illustration-card/IllustrationCard.types.d.ts +8 -1
  227. package/dist/components/core/illustration-card/IllustrationCard.types.js +1 -0
  228. package/dist/components/core/illustration-card/illustration-card-impl.css +117 -3
  229. package/dist/components/core/illustration-check/IllustrationCheck.css +25 -0
  230. package/dist/components/core/illustration-check/IllustrationCheck.d.ts +16 -0
  231. package/dist/components/core/illustration-check/IllustrationCheck.js +22 -0
  232. package/dist/components/core/illustration-check/IllustrationCheck.types.d.ts +25 -0
  233. package/dist/components/core/illustration-check/IllustrationCheck.types.js +9 -0
  234. package/dist/components/core/illustration-check/illustration-check-impl.css +76 -0
  235. package/dist/components/core/illustration-choice/IllustrationChoice.css +62 -0
  236. package/dist/components/core/illustration-choice/IllustrationChoice.d.ts +16 -0
  237. package/dist/components/core/illustration-choice/IllustrationChoice.js +31 -0
  238. package/dist/components/core/illustration-choice/IllustrationChoice.types.d.ts +25 -0
  239. package/dist/components/core/illustration-choice/IllustrationChoice.types.js +11 -0
  240. package/dist/components/core/illustration-choice/illustration-choice-impl.css +103 -0
  241. package/dist/components/core/illustration-code/IllustrationCode.css +25 -0
  242. package/dist/components/core/illustration-code/IllustrationCode.d.ts +12 -0
  243. package/dist/components/core/illustration-code/IllustrationCode.js +20 -0
  244. package/dist/components/core/illustration-code/IllustrationCode.types.d.ts +23 -0
  245. package/dist/components/core/illustration-code/IllustrationCode.types.js +8 -0
  246. package/dist/components/core/illustration-code/illustration-code-impl.css +42 -0
  247. package/dist/components/core/illustration-list/IllustrationList.css +19 -0
  248. package/dist/components/core/illustration-list/IllustrationList.d.ts +16 -0
  249. package/dist/components/core/illustration-list/IllustrationList.js +18 -0
  250. package/dist/components/core/illustration-list/IllustrationList.types.d.ts +15 -0
  251. package/dist/components/core/illustration-list/IllustrationList.types.js +6 -0
  252. package/dist/components/core/illustration-list/illustration-list-impl.css +52 -0
  253. package/dist/components/core/illustration-scene/IllustrationScene.css +6 -0
  254. package/dist/components/core/illustration-scene/IllustrationScene.d.ts +3 -2
  255. package/dist/components/core/illustration-scene/IllustrationScene.js +4 -3
  256. package/dist/components/core/illustration-scene/IllustrationScene.types.d.ts +5 -1
  257. package/dist/components/core/illustration-scene/IllustrationScene.types.js +2 -1
  258. package/dist/components/core/illustration-scene/illustration-scene-impl.css +65 -0
  259. package/dist/components/core/link/link-impl.css +5 -19
  260. package/dist/components/core/progress-bar/ProgressBar.css +101 -0
  261. package/dist/components/core/progress-bar/ProgressBar.d.ts +5 -0
  262. package/dist/components/core/progress-bar/ProgressBar.js +34 -0
  263. package/dist/components/core/progress-bar/ProgressBar.types.d.ts +52 -0
  264. package/dist/components/core/progress-bar/ProgressBar.types.js +12 -0
  265. package/dist/components/core/progress-bar/progress-bar-impl.css +45 -0
  266. package/dist/components/core/segmented-control/SegmentedControl.d.ts +1 -1
  267. package/dist/components/core/segmented-control/SegmentedControl.js +13 -5
  268. package/dist/components/core/segmented-control/SegmentedControl.types.d.ts +5 -1
  269. package/dist/components/core/segmented-control/segmented-control-impl.css +35 -0
  270. package/dist/components/core/status-dot/StatusDot.d.ts +1 -1
  271. package/dist/components/core/status-dot/StatusDot.js +7 -4
  272. package/dist/components/core/status-dot/StatusDot.types.d.ts +9 -1
  273. package/dist/components/core/status-dot/status-dot-impl.css +101 -0
  274. package/dist/components/core/typography/Typography.d.ts +3 -283
  275. package/dist/components/core/typography/Typography.js +9 -1
  276. package/dist/components/core/typography/Typography.types.d.ts +9 -15
  277. package/dist/components/core/typography/TypographyMotion.d.ts +28 -0
  278. package/dist/components/core/typography/TypographyMotion.js +43 -0
  279. package/dist/components/core/typography/typography-impl.css +106 -0
  280. package/dist/components/illustration-data.d.ts +15 -0
  281. package/dist/components/illustration-data.js +7 -0
  282. package/dist/components/index.d.ts +22 -1
  283. package/dist/components/index.js +20 -0
  284. package/dist/components/layout/grid/Grid.css +5 -0
  285. package/dist/components/layout/grid/Grid.types.d.ts +2 -1
  286. package/dist/components/scene-scroll-data.d.ts +35 -0
  287. package/dist/components/tiers-data.d.ts +3 -2
  288. package/dist/marketing.css +24 -6
  289. package/package.json +1 -1
@@ -0,0 +1,267 @@
1
+ <!-- GENERATED from scene-scroll-word.contract.json. Do not edit. -->
2
+
3
+ # SceneScrollWord
4
+
5
+ Two full-screen photo scenes that cross-fade as the reader scrolls, under one title whose last word changes.
6
+
7
+ ## Why it is built this way
8
+
9
+ SceneScroll's change-over told as one claim with one word changed — "Trade all day", then "Trade all night". The screen holds still while the second photograph dissolves in over the first; the words around the changing one stay where they are, the word gives way to the second scene's, and the line under it changes with it. The reference design's inline day-and-night headline, made generic.
10
+
11
+ The same track, pin and view timeline as SceneScroll, run by the stylesheet alone, forward as the reader scrolls down and back as they scroll up. Each scene still has a heading of its own, the shared words and its own word together, so the outline, a screen reader and a reader with no scroll timeline get both whole: without one, for a reader who asked for less motion, and before any script, the two scenes are drawn one after the other, each a screen tall, "Trade all day" and then "Trade all night".
12
+
13
+ The changing word can fall anywhere in the title, because where it falls is the language's decision rather than the block's: last in "Trade all day", first in Japanese "一日中取引", before the verb in German "Den ganzen Tag handeln". So the shared words are given as what comes before the word and what comes after it, either or both, and the block adds no space of its own — a language written without spaces between words has none to add, and one that has them writes them into the strings.
14
+
15
+ ## Use when
16
+
17
+ - Two states of one thing that one claim covers with one word changed — trade all day and all night, markets open and markets closed, before and after
18
+ - One immersive moment on a product or campaign page, where the claim is the argument and the two photographs show its two halves
19
+ - The opening band of a campaign page built around that claim, at headingLevel h1
20
+
21
+ ## Do not use
22
+
23
+ - The two scenes say different things, each with a title of its own → `SceneScroll`
24
+ - The two scenes are one claim with one word changed — "Trade all day", "Trade all night" → `SceneScrollWord`
25
+ - There is one photograph, not two states of something → `ImageBanner`
26
+ - Three or more things to show, each with a picture → `FeatureScroll`
27
+ - The page's opening band, with an action to take → `LandingHero`
28
+ - One statement on its own, revealed as the reader scrolls → `TextScroll`
29
+ - Two titles that only happen to share words. The shared words have to be a claim both words complete; one that reads as a sentence with the second word bolted on is two scenes' worth of title, which SceneScroll draws
30
+ - Words a reader must not miss — a price, a disclaimer, a legal line. Each scene's words are on screen for only part of the pass
31
+ - Two of these on one page, or one beside another pinned section. Each holds the screen for a screen and a half of scrolling, and two make the page feel stuck
32
+ - Photographs with words in them. The words are the headings and the lines, where a screen reader and a translation reach them; a photograph saying them is cropped to fill and has the scene's words set over it
33
+ - Words over a busy or mid-toned stretch of photograph. Nothing lies between the words and the photograph, so the photograph has to leave the words a calm, light or dark stretch to sit on, and the scene's ink has to name which
34
+
35
+ ## Anatomy
36
+
37
+ SceneScrollWord renders 12 elements. A token binding names the part it applies to.
38
+
39
+ - `root` — `<section>`, class `dds-scenescrollword`. The section, a region named by the first scene's title. Where the scroll drives the change-over it is the track: two and a half screens tall, and the view timeline the dissolve runs down. Elsewhere it is as tall as the two scenes it holds. It paints color.bg.brand-strong under the photographs, which shows only before they load, and sets color.fg.on-brand-strong, white in both modes, as the ink a scene takes unless it names another. It clips with `overflow: clip` if it ever clips, never `hidden`, which would make it a scroll container and freeze the timeline and the pin.
40
+ - `stage` — `<div>`, class `dds-scenescrollword__stage`. What the reader sees. Where the scroll drives the change-over it is a screen tall and pinned to the top of the window for the length of the track, with both scenes stacked in its one cell. Elsewhere it is a column of the two scenes, one after the other with nothing between them.
41
+ - `scene` — `<div>`, class `dds-scenescrollword__scene`. One scene, drawn twice — `data-scene` says which. A screen tall, the photograph behind and the words over it, inset by the section's air and the page's gutter. Isolated, so the second scene's photograph covers the first scene's words as well as its photograph as it dissolves in. Its ink is the one the scene names — color.fg.on-media-light, near-black in both modes, over a light photograph; color.fg.on-brand-strong, white, over a dark one.
42
+ - `media` — `<div>`, class `dds-scenescrollword__media`. The scene's photograph, filling the scene edge to edge and square-cornered, with nothing laid over it: the words sit straight on the photograph, in the ink the scene names for it. The second scene's photograph dissolves in over the first's.
43
+ - `image` — `<img>`, class `dds-scenescrollword__image`. The photograph, drawn from the scene's `image` and cropped to fill the scene. Its `alt` is the scene's own: empty for a photograph that is decoration, which most are here.
44
+ - `content` — `<div>`, class `dds-scenescrollword__content`. The scene's words — its title and the line under it — over the photograph. At the start on every screen, held to the heading group's measure — and from 62rem to half the stage, whichever is narrower — and to the page's content column, so the far side of the photograph is left to its subject: at the top of the stage below 62rem, under the room a navigation bar takes, and centred down the stage from 62rem. Where the scroll drives the change-over both scenes' words lie in one place, the second heading exactly over the first; the first scene's line fades out, the words cross, and the second scene's line fades in. Both are in the DOM and read in order the whole time.
45
+ - `title` — `<h2>`, class `dds-scenescrollword__title`. The scene's title: the shared words before the changing one, the scene's word, and the shared words after it, so each scene's heading is whole. The first scene's is at `headingLevel` and names the section; the second's is one level under it. Both drawn at the size `headingLevel` names, font.h2 or font.h1.
46
+ - `before` — `<span>`, class `dds-scenescrollword__before`. The shared words before the changing one, as written, with no space added. The first scene's hold still through the change-over; the second scene's lie exactly under them and are never drawn while the scroll drives the change-over, so they read as one set of words that never moves. Kept in the DOM and never hidden from assistive technology, so the second heading is read whole. Rendered only when `titleBefore` is set.
47
+ - `word` — `<span>`, class `dds-scenescrollword__word`. The slot the scene's word sits in, between the shared words: as wide as the wider of the two scenes' words, because the other scene's word sits in the same cell undrawn and kept from assistive technology. So both titles wrap alike, and the second's word lands exactly where the first's was. Where the scroll drives the change-over the first scene's word fades out as the second's fades in, in the middle of the pass while neither line is showing, so the claim changes by one word while the photographs dissolve under it.
48
+ - `after` — `<span>`, class `dds-scenescrollword__after`. The shared words after the changing one, as written, with no space added. Drawn and kept still as the words before it are: the first scene's hold, the second scene's lie under them undrawn. The word's slot is as wide as the wider word, so these never move as one word replaces the other. Rendered only when `titleAfter` is set.
49
+ - `description` — `<p>`, class `dds-scenescrollword__description`. The line under a scene's title, at the large body step and the description measure. Drawn only for a scene that has one.
50
+ - `action` — `<div>`, class `dds-scenescrollword__action`. The section's one thing to do, right under the words. While the scenes change over, both scenes' words share one area of the stage, as tall as the taller of them, and the action is the row under it — under the text on every screen, and still while the text changes. At the start with the words on every screen: at the top of the stage below 62rem, centred down it with them from 62rem. In the plain fallback, where the scenes stack, it follows the second. Rendered only when `action` is set.
51
+
52
+ Apply these classes from the generated `sceneScrollWordParts` constant rather than writing the strings by hand.
53
+
54
+ ## Composition
55
+
56
+ - Takes no children. Everything it renders comes from props
57
+ - Never contains: `SceneScrollWord`, `SceneScroll`, `FeatureScroll`, `LandingHero`, `ProductHero`, `PageHeader`, `Footer`, `Navbar` — in children or in any prop that takes a node
58
+
59
+ ## Props
60
+
61
+ ### headingLevel — `h2` | `h1` (default `h2`)
62
+
63
+ - `h2` — The default: the section sits under the page's own h1, and the scenes' titles are drawn at font.h2
64
+ - `h1` — The section opens a campaign page and the first scene's title is the page's heading — the reference design's hero use. Drawn at font.h1, the opening band's size
65
+
66
+ Use when: Where the first scene's title sits in the page's outline. The second scene's title takes the level under it — h2 under an h1, h3 under an h2 — because it is the second half of the section the first one names, not a section of its own. Both are drawn at the same size, the one this names: a scene is a screen of photograph, and an h2 sized as a card title would be lost on it.
67
+ Never for: Making a mid-page section look like a hero. h1 is the page's heading, and a page has one.
68
+
69
+ ### titleBefore — `string`
70
+
71
+ Use when: The words of the title that come before the changing word, the same in both scenes — "Trade all ", for "Trade all day" and "Trade all night". With the space that separates them from the word written in, where the language uses one: the block adds none. Give this, `titleAfter`, or both; a title with neither is SceneScroll's.
72
+ Never for: Words that change between the scenes. Where the grammar makes a shared word agree with the changing one — Spanish "todo el día" and "toda la noche" — the agreeing words are part of each scene's `word`, not of what is shared.
73
+
74
+ ### titleAfter — `string`
75
+
76
+ Use when: The words of the title that come after the changing word, the same in both scenes — " handeln", for German "Den ganzen Tag handeln" and "Die ganze Nacht handeln"; "取引" for Japanese "一日中取引" and "夜通し取引", with no space. With the space written in where the language uses one: the block adds none.
77
+ Never for: Punctuation alone. A heading takes no full stop, and a mark after the word holds still while the word changes before it, which reads as the mark belonging to neither.
78
+
79
+ ### first — `data` `SceneScrollWordScene` **Required.**
80
+
81
+ Use when: Always. The scene the section opens on: the word that completes the title, a line under it where the title needs one, and the photograph filling the band behind them. With the shared words around it, it names the section. Give its `ink` — `dark` over a light photograph, `light` over a dark one — and the photograph's width and height; `alt` empty unless it shows something the words do not.
82
+ Never for: A word that does not complete the shared words. Read together they are the heading; a word that only makes sense beside the other scene's is not one.
83
+
84
+ ### second — `data` `SceneScrollWordScene` **Required.**
85
+
86
+ Use when: Always. The scene the section changes over to, in the same shape as the first. A word of about the same length as the first, so the words after it do not move as one replaces the other, and a photograph of the same composition where there is one, so the dissolve reads as one place changing rather than a cut. Its `ink` is its own, so a daylight first scene in dark words can change over to a night one in white.
87
+ Never for: The first scene's word again with a different picture. The changed word is the argument; two scenes that agree have nothing to change between.
88
+
89
+ ### action — `node`
90
+
91
+ Accepts: Button, Link
92
+ Use when: One thing for the reader to do or a way on — "Trade now", "See trading hours" — under the words. It belongs to the section rather than to either scene, so it holds still through the change-over and never fades while the reader is reaching for it. A primary Button, or a standalone Link at its brand tone: either reads over both photographs, where a Link taking the ink around it would take the band's white over a light photograph.
93
+ Never for: Two actions, or a different one per scene. One thing to do for the section; something to press that changed under the pointer would be the one thing a reader could not rely on.
94
+
95
+ ## Accessibility
96
+
97
+ Guaranteed by the component. Write none of it by hand: the ids these attributes point at are generated per instance, so an attribute set from outside either says the same thing twice or points at nothing.
98
+
99
+ - Announced as: `region`
100
+ - `Tab` — Moves past the section. Nothing in it is operable — the scenes are read, not used — so there is nothing here to land on.
101
+ - The section is a region named by the first scene's title, through aria-labelledby, so a reader can jump to it and past it. Named by a heading already on the page rather than a hidden label of its own, so what is announced is what is shown
102
+ - Both scenes' headings are in the DOM, in order and whole — the shared words with the first scene's word, then with the second's — with each line after its heading, whatever the scroll has faded. The visual change-over never hides either from assistive technology, never removes them, and never re-orders them. The only thing kept from assistive technology is the other scene's word sitting undrawn in the word's slot, a duplicate of a heading read in full
103
+ - The words over each photograph are drawn in the ink its scene names, near-black over a light photograph and white over a dark one, and the author answers for AA contrast against the part of the photograph they sit on. Nothing lies between the two, so no check here can see the pair; the scene's ink is what a reviewer reads
104
+ - Without a scroll timeline, for a reader who asked for less motion, and before any script, nothing is faded and nothing is pinned: the two scenes are drawn one after the other, each with its words at full strength
105
+ - Each photograph's alt is the one its scene was given — empty for a photograph that is decoration
106
+
107
+ ## Rules
108
+
109
+ - **On a phone a section's actions stack and each fills the width, including when there is only one** — On a phone a page's actions stack, and each one fills the width. Not most of it, and not the width its label happens to need — the whole column.
110
+
111
+ Two side by side is what this replaces. On the narrowest screen each gets half a column minus the gap, which is rarely enough for a real label: the words wrap inside the pills, the two buttons come out different heights, and the pair reads as a broken row rather than as a choice. Stacked, each has the whole width and neither has to shorten its words to fit.
112
+
113
+ A single action fills too, and that is the part worth saying, because it is the one that looks unnecessary. A lone button has the room to sit at its natural width and still should not: a full-width control is the phone's convention for the thing the screen is asking you to do, and a pill hugging its label reads as one option among others that are not there. It also makes the target predictable — the whole width, wherever the thumb lands — which a centred pill does not.
114
+
115
+ Filling is the row's job rather than the button's. A button has no width of its own and is not given one; the row it sits in becomes a column and stretches its children, so nothing about the control changes and the same button is full width here and its own size on a desktop.
116
+
117
+ This is the phone's breakpoint, size.breakpoint.md, and not the wider one that decides whether a heading is centred. Those are different questions and they break at different widths: a heading stops being centred when the measure is the screen, while a button stops being full width much sooner than that — stretched across a tablet it is a long way from its own label, and a label centred in a metre of pill is harder to hit than one in a pill the size of the words.
118
+
119
+ What this is not about is every row of controls. A set of filter chips, a pagination strip, a toolbar, a link sitting after a sentence — none of these is the page asking for something, and stacking them to full width would turn a strip the eye skims into a list it has to read. The test is whether the row is the call to action the section was written for.
120
+ Guidance only — cannot be checked automatically.
121
+ - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
122
+ Guidance only — cannot be checked automatically.
123
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
124
+
125
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
126
+
127
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
128
+ Guidance only — cannot be checked automatically.
129
+ - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
130
+
131
+ color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
132
+
133
+ color.bg.strong is not a section ground. It is the inverted fill for an action that has to outrank what surrounds it, and the components that paint it — Button and ButtonIcon in their inverse form — already set both halves in one rule, which is the pattern a hand-painted section has to copy.
134
+ Guidance only — cannot be checked automatically.
135
+ - **Every gap inside a section names the relationship it expresses, and the same relationship keeps its measure when it turns on its side** — A section's spacing is named by the relationship it expresses, not chosen by size. Every gap in a section has a role token, and reaching for a step off the generic scale because it happens to be the right number is how two sections written by two people stop lining up: the numbers agree today and drift the first time one of them is tuned.
136
+
137
+ The heading group is three steps, not one gap. An eyebrow sits nearer its title than the title sits to its description, and the actions sit further from the description than either — space.heading.eyebrow-title, space.heading.title-description, space.heading.description-actions, in that order. A single `gap` on the group cannot say this; it sets all three the same and the block reads as evenly spaced lines rather than as a mark, a name and a paragraph. The eyebrow has to identify itself for this to work, because a group that opens with a title must not give its description the eyebrow's tighter step.
138
+
139
+ The step between a title and its description follows the size of the title, which is why there are two of it. What a reader sees is not the gap but the gap plus the leading above it, and leading scales with the type: under a display title the leading is most of the space, under a card's title it is half as deep. One value for both makes a card look loose at the size that made a section look right. So space.heading.title-description is the display step and space.heading.title-description-compact is the step at a card's size, and the choice is made by how big the title is rather than by what kind of block it sits in.
140
+
141
+ Every one of those steps is smaller than the gap below the group, and that ordering is what holds the group together as one thing. space.heading.content is the step between a heading group and the content it introduces, and it is the widest measure inside a section: the one gap the eye reads as a change of subject rather than as a continuation.
142
+
143
+ That step is the same whether the content is under the heading or beside it. A split is the same relationship turned on its side — a heading group and the content it introduces — so the space between the two halves is space.heading.content, not a gutter. When the split collapses to one column on a phone the gap becomes vertical again, which is where it started, and nothing has to change for that to be right.
144
+
145
+ space.grid.gutter is between two things of the same kind. Two cards in a row are the same kind; the two halves of a split are not, which is why the gutter is the wrong measure there even when the number would have looked acceptable. The gutter runs on both axes, so a grid reads as an even field rather than as rows with a seam down them.
146
+
147
+ space.inset.card is the card's, not the page's. A row of cards padded differently is a row of different cards, and the fill is the only edge they have. A page composing a row does not get to choose it.
148
+
149
+ Column count is not a breakpoint decision. A row holds as many columns as fit before a column would be narrower than size.grid.column-min, and drops one when they would not. Written as a fixed count that collapses at a breakpoint, a four-up row keeps four columns at every width above the phone and sets its copy two or three words to a line through the whole of the tablet range — and on a narrow desktop, which no breakpoint sits on at all. The threshold is a property of the row rather than of a card: a card fills whatever cell it is given.
150
+
151
+ What this does not cover is the space above and below a section, which is space.section.default and space.section.compact, and the page's own side margin, which is space.inset.page. Those are the section's outside; everything here is its inside.
152
+ Guidance only — cannot be checked automatically.
153
+ - **A section's title is centred over stacked content, starts beside content in columns, and starts on a phone** — Two arrangements, and the title's alignment is decided by which one it is introducing rather than chosen per section.
154
+
155
+ Content stacked under the title — a row of cards, an accordion, a set of steps — takes a centred title. The heading group and the block below it share one axis, so a centred title is symmetric with the thing it names, and the eye drops from the middle of the words to the middle of the set. A title starting at the left over a centred or full-width block reads as belonging to the first column rather than to all of them.
156
+
157
+ Content beside the title — a split, a picture in the other half, anything laid out in columns — takes a title that starts where its content starts. The two share a left edge, and that edge is what says they are one thing read across rather than two stacked. Centring the title there breaks the only alignment the reader has to hold the halves together, and it drifts further from its content the wider the page gets.
158
+
159
+ The heading group is what carries this, not the heading alone. An eyebrow, a title and a description are read as one block and align together; aligning the title without them leaves a centred heading over start-aligned copy, which reads as a mistake rather than as a choice.
160
+
161
+ Centred means all of it, not just the words. A badge, a row of actions, a picture — these are flex children, and a flex child is placed by align-items rather than by text-align, so a block that only sets the text leaves everything that is not text at the start. A hero is the case that shows it: its title and copy centred while its badge and its buttons did not.
162
+
163
+ A capped block centres itself as well as its words. A heading group takes size.heading-group.max, and a cap that is not centred leaves the measure at the start of the column with the words centred inside it — composed, and a long way left of the middle it appears to be in.
164
+
165
+ Both arrangements go to the start on a phone. A centred block reverts below the breakpoint, and the reason is the measure: on a phone the measure is the screen, so a centred title wraps to three or four ragged lines and the eye loses the left edge it was tracking — the same symmetry that reads as composure on a desktop is what makes it hard to scan on a phone. Centring there has to be asked for twice, and a section title is not one of the things that asks: it is centred because there is room for it, and on a phone there is not. Going back to the start means all of it too, and a capped block is the one that hides a leftover: its words go to the start while its measure stays in the middle of the column, which reads as a title still centred over a badge and buttons that are not — the box in the middle and the line inside it at the edge.
166
+
167
+ A hero is a section like any other: its badge, title, copy and actions are one stacked block, so it is centred on a desktop and starts on a phone with everything else.
168
+
169
+ What this is not about is a page whose body is a form or a document. A title over a sign-up form or a guide is not introducing a set of content — it is the first line of the thing itself, and it keeps the alignment the body has, which for running text is the start. The distinction is whether the block below is content the title names or content the title is part of.
170
+ Guidance only — cannot be checked automatically.
171
+ - **Anything a pointer has to hit is at least 24px in both directions** — A control sized by its contents is as big as its contents, and a glyph is chosen for how it reads rather than for how easily it is hit. An icon-only button with no padding is a 16px target — smaller than the pad of a finger, and smaller than the tremor of a hand using a mouse.
172
+
173
+ WCAG 2.2 asks for 24 by 24 CSS pixels at AA. The exceptions are narrower than they look: inline targets inside a sentence are exempt, and so is a small target with 24px of clear space around it — but a clear button sits against the field it empties, and a field is itself a target, so the spacing exemption does not apply to the case that keeps arising.
174
+
175
+ The target and the mark are separate decisions, and conflating them is what produces both faults. Growing the glyph to 24px makes it shout; leaving the button at 16px makes it hard to hit. So the glyph keeps the size that reads correctly beside its text, and the box around it declares a minimum of its own — which is what size.target.min is for.
176
+
177
+ Declared rather than emergent. Padding plus contents does clear 24px in several components today, and it is the weaker statement: it is a size nobody wrote down, so it moves when the type scale or the glyph does, and nothing says it was meant to be a target at all.
178
+ Guidance only — cannot be checked automatically.
179
+ - **A component is written along the reading axis, not along the page's left and right** — Every measure, inset and placement in this package names an axis rather than a side: inline-size and block-size, padding-inline and padding-block, inset-inline-start and inset-block-end, margin-inline: auto, text-align: start. Written that way a component follows whichever direction the page is read in, and a band whose claim ranges to the leading edge with its subject on the trailing one is the same composition in Arabic as in English, mirrored, with nothing restated. Written as left and right it is the same pixels in both, which is a layout nobody designed for the second language.
180
+
181
+ The enum values follow the same rule and for the same reason. A prop that names where a picture sits takes start and end, never left and right — FeatureSplit, FeatureBullets and FeatureScroll all declare mediaPosition that way, and the flex directions they generate flip on their own because row already means the reading order. A value called left would have to be re-read as right by every author working in a mirrored page, which is a translation this system should be doing rather than asking for.
182
+
183
+ The guidance a contract carries is part of the component, so it follows too. Describing a claim as ranging left is describing one of the two languages, and it was written that way here for a while: three of the opening bands said so in their own intent. A reader in a mirrored page meets that sentence and has to decide whether the component is wrong or the sentence is, and neither answer is one documentation should force.
184
+
185
+ Two things genuinely have no logical form and are not covered by this. A CSS gradient takes a physical direction — there is no to inline-end — so a pattern that must mirror has to be stated twice under a direction query, and one that is periodic and centred, like PageHeader's rule grid, does not need to. A glyph that points the way onward is the other: an arrow is a picture of a direction, and mirroring it belongs to the icon set rather than to the component holding it.
186
+ Guidance only — cannot be checked automatically.
187
+
188
+ ## Anti-examples
189
+
190
+ ❌ SceneScrollWord for: The two scenes say different things, each with a title of its own
191
+ SceneScroll gives way from one scene's whole words to the other's; here the claim holds and only its last word changes
192
+ → use `SceneScroll` instead.
193
+
194
+ ❌ SceneScrollWord for: The two scenes are one claim with one word changed — "Trade all day", "Trade all night"
195
+ SceneScrollWord holds the claim still and changes the one word; here each scene's words are whole and give way to each other
196
+ → use `SceneScrollWord` instead.
197
+
198
+ ❌ SceneScrollWord for: There is one photograph, not two states of something
199
+ One photograph with words over it is a cover banner; a scene that never changes over is a section a screen tall for nothing
200
+ → use `ImageBanner` instead.
201
+
202
+ ❌ SceneScrollWord for: Three or more things to show, each with a picture
203
+ FeatureScroll pins a picture beside a list of stops a reader moves through; this is exactly two full-screen scenes and the change between them
204
+ → use `FeatureScroll` instead.
205
+
206
+ ❌ SceneScrollWord for: The page's opening band, with an action to take
207
+ An opening band leads into the rest of the page from its claim; this holds the screen for a screen and a half of scrolling before the page goes on, which an opening band asking for something cannot afford
208
+ → use `LandingHero` instead.
209
+
210
+ ❌ SceneScrollWord for: One statement on its own, revealed as the reader scrolls
211
+ A sentence brightening word by word is the moment there; here the photographs are
212
+ → use `TextScroll` instead.
213
+
214
+ ## Example
215
+
216
+ ```tsx
217
+ import { SceneScrollWord, Button } from '@deriv-com/dds-marketing'
218
+
219
+ <SceneScrollWord titleBefore="Trade all " first={{"word":"day","description":"Forex, stocks and commodities, from the first bell to the last.","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"night","description":"Derived indices run every hour of every day, weekends included.","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} action={<Button href="/signup">Trade now</Button>} />
220
+ ```
221
+
222
+ ## In use
223
+
224
+ ### Where it sits in the page's outline
225
+
226
+ h2 under the page's own heading, or h1 when the section opens a campaign page. The second title is always one level under the first.
227
+
228
+ ```tsx
229
+ import { SceneScrollWord } from '@deriv-com/dds-marketing'
230
+
231
+ // h2 — a section of the page, the default
232
+ <SceneScrollWord titleBefore="Trade all " first={{"word":"day","description":"Forex, stocks and commodities, from the first bell to the last.","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"night","description":"Derived indices run every hour of every day, weekends included.","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} />
233
+
234
+ // h1 — the opening band of a campaign page
235
+ <SceneScrollWord titleBefore="Trade all " first={{"word":"day","description":"Forex, stocks and commodities, from the first bell to the last.","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"night","description":"Derived indices run every hour of every day, weekends included.","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} headingLevel="h1" />
236
+ ```
237
+
238
+ ### Where the word falls
239
+
240
+ The changing word sits where the language puts it. Shared words go before it, after it, or both, with any spaces written in.
241
+
242
+ ```tsx
243
+ import { SceneScrollWord } from '@deriv-com/dds-marketing'
244
+
245
+ // Before the word — English
246
+ <SceneScrollWord titleBefore="Trade all " first={{"word":"day","description":"Forex, stocks and commodities, from the first bell to the last.","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"night","description":"Derived indices run every hour of every day, weekends included.","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} />
247
+
248
+ // After the word — German, article inside the word
249
+ <SceneScrollWord titleAfter=" handeln" first={{"word":"Den ganzen Tag","description":"Devisen, Aktien und Rohstoffe, von der ersten bis zur letzten Glocke.","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"Die ganze Nacht","description":"Derived Indices laufen rund um die Uhr, auch am Wochenende.","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} />
250
+
251
+ // After the word, no space — Japanese
252
+ <SceneScrollWord titleAfter="取引" first={{"word":"一日中","description":"FX、株式、商品を、取引開始から終了まで。","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"夜通し","description":"デリバティブ指数は週末も含め、24時間いつでも。","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} />
253
+ ```
254
+
255
+ ### With something to do
256
+
257
+ One action for the section, under the words: a primary Button, or a Link at its brand tone. It belongs to neither scene, so it holds still while the words change over it.
258
+
259
+ ```tsx
260
+ import { Button, Link, SceneScrollWord } from '@deriv-com/dds-marketing'
261
+
262
+ // A button under the words
263
+ <SceneScrollWord titleBefore="Trade all " first={{"word":"day","description":"Forex, stocks and commodities, from the first bell to the last.","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"night","description":"Derived indices run every hour of every day, weekends included.","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} action={<Button href="/signup">Trade now</Button>} />
264
+
265
+ // A link under the words
266
+ <SceneScrollWord titleBefore="Trade all " first={{"word":"day","description":"Forex, stocks and commodities, from the first bell to the last.","image":{"src":"/sample-banner-art.svg","alt":"","width":1200,"height":300},"ink":"dark"}} second={{"word":"night","description":"Derived indices run every hour of every day, weekends included.","image":{"src":"/sample-stop-blue.svg","alt":"","width":800,"height":600},"ink":"light"}} action={<Link href="/hours">See trading hours</Link>} />
267
+ ```
@@ -139,6 +139,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
139
139
  Guidance only — cannot be checked automatically.
140
140
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
141
141
  Guidance only — cannot be checked automatically.
142
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
143
+
144
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
145
+
146
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
147
+ Guidance only — cannot be checked automatically.
142
148
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
143
149
 
144
150
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -139,6 +139,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
139
139
  Guidance only — cannot be checked automatically.
140
140
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
141
141
  Guidance only — cannot be checked automatically.
142
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
143
+
144
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
145
+
146
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
147
+ Guidance only — cannot be checked automatically.
142
148
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
143
149
 
144
150
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -54,7 +54,7 @@ SegmentedControl renders 2 elements. A token binding names the part it applies t
54
54
 
55
55
  It is also what dims when the row is closed, with one `opacity.disabled` over the whole groove rather than a mark on each segment. That is what keeps the chosen segment legal: a row that barred every segment would put disabled on the one holding the value, and the item refuses that pair. A segment barred on its own still dims itself; the two never coincide, because a row that is closed has nothing left to bar.
56
56
 
57
- It stops answering the pointer while it is closed, so no segment takes a hover tint inside a control that refuses the press. That is a structural rule rather than a token — nothing about it varies by brand or mode — and it belongs to the row rather than to any segment, because a segment barred on its own is still a segment the pointer may rest on.
57
+ It stops answering the pointer while it is closed, so no segment takes a hover tint inside a control that refuses the press. That is a structural rule rather than a token — nothing about it varies by brand or mode — and it belongs to the row rather than to any segment, because a segment barred on its own is still a segment the pointer may rest on. Under `motion="slide"` it moves once on arrival (`data-arrival`), the pill sliding from the first segment to the chosen one.
58
58
  - `indicator` — `<span>`, class `dds-segmentedcontrol__indicator`. A single pill serving the whole row, moved to whichever segment is chosen rather than one pill per segment switched on and off.
59
59
 
60
60
  Only that arrangement lets it travel, and travelling is the point: two pills cross-fading always reads as two pills, while one pill has to be positioned — which means something has to know where the chosen segment sits. No selector can supply that answer and no container query reaches it either, the question being about a sibling's position rather than a box's own width. This is therefore the only measured thing in the component.
@@ -116,6 +116,13 @@ Never for: Half of a controlled row. A value passed with no onChange to move it
116
116
  Use when: Whenever value is — together they are how a page holds the choice. It is called with the chosen segment's value after that segment's own onSelect, so a segment that reports its own presses keeps doing so inside a row
117
117
  Never for: Side effects a choice should not have. This says which value is in force; a row that also navigated, submitted or fetched on it would be doing the thing its intent says it does not
118
118
 
119
+ ### motion — `slide`
120
+
121
+ - `slide` — The pill starts on the first segment and slides to the chosen one once, on arrival — a trade ticket set to Sell showing it was Buy first. It holds for motion.duration.hold, then slides over motion.duration.shift
122
+
123
+ Use when: The row moves once, on arrival — in an IllustrationCard when the pane has landed, otherwise when it is well into view. For a row shown as a picture of the product making a choice. Pair it with Typography's `from` on the words the choice changes, so the content follows the pill. At rest, and for a reader who asked for less movement, the pill is on the chosen segment
124
+ Never for: A row the reader is about to use. A live control that moves on its own before anyone touches it looks like it has been chosen for them
125
+
119
126
  Also accepts everything from `HTMLAttributes<HTMLDivElement>`.
120
127
 
121
128
  ## Accessibility
@@ -153,6 +160,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
153
160
  Guidance only — cannot be checked automatically.
154
161
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
155
162
  Guidance only — cannot be checked automatically.
163
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
164
+
165
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
166
+
167
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
168
+ Guidance only — cannot be checked automatically.
156
169
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
157
170
 
158
171
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -368,3 +381,17 @@ import { ChartCandlestickRegularIcon, GlobeRegularIcon } from '@deriv-com/dds-ma
368
381
  <SegmentedControlItem value="transfer" label="Transfer" icon={<ChartCandlestickRegularIcon />} onSelect={(value) => { /* your handler */ }} />
369
382
  </SegmentedControl>
370
383
  ```
384
+
385
+ ### Sliding once on arrival
386
+
387
+ The pill starts on the first segment and slides to the chosen one, once, as a picture of the product making a choice.
388
+
389
+ ```tsx
390
+ import { SegmentedControl, SegmentedControlItem } from '@deriv-com/dds-marketing'
391
+
392
+ // motion="slide" — Buy to Sell
393
+ <SegmentedControl label="Trade direction" motion="slide">
394
+ <SegmentedControlItem value="buy" label="Buy" onSelect={(value) => { /* your handler */ }} />
395
+ <SegmentedControlItem value="sell" label="Sell" selected onSelect={(value) => { /* your handler */ }} />
396
+ </SegmentedControl>
397
+ ```
@@ -134,6 +134,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
134
134
  Guidance only — cannot be checked automatically.
135
135
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
136
136
  Guidance only — cannot be checked automatically.
137
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
138
+
139
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
140
+
141
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
142
+ Guidance only — cannot be checked automatically.
137
143
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
138
144
 
139
145
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -291,6 +291,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
291
291
  Guidance only — cannot be checked automatically.
292
292
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
293
293
  Guidance only — cannot be checked automatically.
294
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
295
+
296
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
297
+
298
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
299
+ Guidance only — cannot be checked automatically.
294
300
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
295
301
 
296
302
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -159,6 +159,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
159
159
  Guidance only — cannot be checked automatically.
160
160
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
161
161
  Guidance only — cannot be checked automatically.
162
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
163
+
164
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
165
+
166
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
167
+ Guidance only — cannot be checked automatically.
162
168
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
163
169
 
164
170
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -100,6 +100,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
100
100
  Guidance only — cannot be checked automatically.
101
101
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
102
102
  Guidance only — cannot be checked automatically.
103
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
104
+
105
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
106
+
107
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
108
+ Guidance only — cannot be checked automatically.
103
109
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
104
110
 
105
111
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -123,6 +123,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
123
123
  Guidance only — cannot be checked automatically.
124
124
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
125
125
  Guidance only — cannot be checked automatically.
126
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
127
+
128
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
129
+
130
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
131
+ Guidance only — cannot be checked automatically.
126
132
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
127
133
 
128
134
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -17,6 +17,7 @@ The reference design's StatsSimple. The figure is written in the page's first HT
17
17
 
18
18
  ## Do not use
19
19
 
20
+ - Each figure is a moment rather than a column to compare, beside the awards behind it → `StatsCarousel`
20
21
  - Each item needs a sentence of its own, or a picture → `FeatureCards`
21
22
  - The number is part of a claim the page is making in words → `FeatureSplit`
22
23
  - Numbers that change while the page is open — a price, a live count. The figures are written once and counted once. The phone's wheel turns between them, but no figure changes once written — a value that does is a ticker this does not draw
@@ -27,7 +28,7 @@ The reference design's StatsSimple. The figure is written in the page's first HT
27
28
 
28
29
  Stats renders 13 elements. A token binding names the part it applies to.
29
30
 
30
- - `root` — `<section>`, class `dds-stats`. The section. It paints the ground and the ink to go with it — see `ground` — and asks its own width, so the row folds on the section's measure rather than the window's. A region named by its heading.
31
+ - `root` — `<section>`, class `dds-stats`. The section. It paints the ground and the ink to go with it — see `ground` — and asks its own width, so the row folds on the section's measure rather than the window's. A region named by its heading. Given `background`, it draws the page's one patterned band: a Background as its first layer, under everything it holds, in the tone of its ground.
31
32
  - `inner` — `<div>`, class `dds-stats__inner`. The measure and the gutter, the same column every band holds its content in, and the step from the heading to the figures: space.heading.content.
32
33
  - `header` — `<div>`, class `dds-stats__header`. The heading and the line under it, FeatureCards' header and its arrangement: ranged to the start on a phone and centred from the fold. It sets no gap: each part's own margin is the step, so a heading with no line under it closes up.
33
34
  - `title` — `<h2>`, class `dds-stats__title`. What the numbers prove. `h2` because a section sits under the page's own heading.
@@ -59,6 +60,17 @@ Apply these classes from the generated `statsParts` constant rather than writing
59
60
  Use when: Which of the page's three grounds this section paints, FeatureCards' axis and its reason: a band that wants to be seen as a band takes one of the other two, and the page decides the rhythm. The ink follows the ground — the heading and the figures in the band's own ink, the labels in its quieter one.
60
61
  Never for: Marking importance. Every section on a page painted a ground is a page with no emphasis left. And never the brand's own coral, which is not offered: that ground belongs to the band that asks a reader to do something.
61
62
 
63
+ ### background — `halftone` | `aurora` | `mesh` | `grid` | `rings`
64
+
65
+ - `halftone` — A field of coral dots that grow towards a soft glow at the band's foot and settle to a fine screen away from it.
66
+ - `aurora` — Curtains of the brand's light rising from the band's foot and swaying slowly.
67
+ - `mesh` — The band in the brand's reds folded into one another like a liquid — the loudest of the five, for a dark band.
68
+ - `grid` — Hairlines a pitch apart rising from a soft bloom at the band's foot — the quietest, and the one to reach for first.
69
+ - `rings` — Hairline circles spreading out from the middle of the band's foot.
70
+
71
+ Use when: The page's one patterned band, between its hero and its closing call to action — a band a reader should stop at. The pattern is drawn by Background as the section's first layer, under its content and over nothing, in the tone of the ground: the light pattern on `page`, the same on the grey of `subtle`, the dark one on `strong`. Every pattern rises from the band's foot, which this block leaves open under its content. Leave it out and the band is its flat ground, as most bands on a page are.
72
+ Never for: More than one band on a page, or a band that is already the hero or the call to action — those carry their own patterns. One pattern is what makes a band the one a reader remembers; two make neither, and a page of them is noise. Never wrap this block in a Background instead: it paints its own ground over whatever is behind it, so the pattern would be hidden, and the pattern belongs under the content, not around it.
73
+
62
74
  ### title — `string` **Required.**
63
75
 
64
76
  Use when: Always. What the numbers prove, in the fewest words — "Trade with confidence", "Deriv in numbers".
@@ -101,6 +113,12 @@ What this is not about is every row of controls. A set of filter chips, a pagina
101
113
  Guidance only — cannot be checked automatically.
102
114
  - **Never nest one interactive element inside another** — Nested interactive elements produce ambiguous hit targets and an unreachable inner control for keyboard and screen-reader users. This is why the rule cannot live on any single component — it constrains Button, Link, CardButton and TextInput simultaneously.
103
115
  Guidance only — cannot be checked automatically.
116
+ - **A page has at most one patterned band, between its hero and its closing call to action** — A patterned ground — the halftone, the aurora, the mesh, the grid or the rings — is what makes a band the one a reader stops at, and it only works by being the exception. So a page has at most one, placed between its hero and its closing call to action; the hero's and the call to action's own patterns are theirs and do not count, and the band never goes on either of them.
117
+
118
+ The pattern is the band's first layer, under its content and over nothing. A block that can carry one says so with its own `background` prop — FeatureCards, Stats, TestimonialRow and LogoRows — and draws it there; a section built by hand places a Background with nothing in it as its first child. Never wrap a block in a Background: the block paints its own ground over the pattern and hides it.
119
+
120
+ Only a band whose content is stacked can carry one. Every pattern rises from the band's foot, so the band needs a heading over what it introduces, centred, with the foot left open. A band whose content runs side by side — words beside a picture, a split, columns reaching the foot — puts the glow behind the picture or under the words; it stays on its flat ground.
121
+ Guidance only — cannot be checked automatically.
104
122
  - **A section that paints a ground sets the ink to go with it** — A page sits on color.bg.page, and a section that separates itself from it takes one of three grounds. color.bg.subtle is the light one and needs nothing further — the page's own ink still reads on it. The other two are dark and do not: color.bg.brand-strong takes color.fg.on-brand-strong, and color.bg.brand takes color.fg.on-solid. Both are white, and both are written as the role rather than the white they resolve to. Set one of those backgrounds without its ink and the text inherits whatever the page was already using, which is near-black on a dark band — legible to nobody, and invisible to every check here, because each pair passes contrast on its own and nothing can tell whether a section used both.
105
123
 
106
124
  color.bg.brand carries a second limit that is not about forgetting. Its ink measures 3.39:1, which clears the 3:1 a heading needs and misses the 4.5:1 running copy needs. A coral band may carry a headline and a call to action; a paragraph on one is text the reader has to work through at a ratio the waiver on that role does not cover — the waiver says so itself. A section with copy in it takes color.bg.brand-strong, which is near-black and carries white at full contrast.
@@ -162,6 +180,10 @@ Two things genuinely have no logical form and are not covered by this. A CSS gra
162
180
 
163
181
  ## Anti-examples
164
182
 
183
+ ❌ Stats for: Each figure is a moment rather than a column to compare, beside the awards behind it
184
+ StatsCarousel turns through the figures one at a time in a card, with awards beside it — the reference design's Stats; this is a row read all at once
185
+ → use `StatsCarousel` instead.
186
+
165
187
  ❌ Stats for: Each item needs a sentence of its own, or a picture
166
188
  A figure is read at a glance; something that needs explaining is a card
167
189
  → use `FeatureCards` instead.
@@ -221,3 +243,26 @@ import { Stats } from '@deriv-com/dds-marketing'
221
243
  // Prefixes, suffixes and decimals
222
244
  <Stats title="Deriv at a glance" stats={[{"value":"$1.2B","label":"Paid out to traders"},{"value":"99.9%","label":"Platform uptime"},{"value":"24/7","label":"Synthetic markets open"}]} />
223
245
  ```
246
+
247
+ ### The page's one patterned band
248
+
249
+ One band per page, between the hero and the closing call to action, its pattern drawn under the content in the tone of its ground.
250
+
251
+ ```tsx
252
+ import { Stats } from '@deriv-com/dds-marketing'
253
+
254
+ // grid on page
255
+ <Stats title="Trade with confidence" description="For over 25 years, a trusted partner of traders worldwide." stats={[{"value":"3M+","label":"Traders worldwide"},{"value":"250+","label":"Markets to trade"},{"value":"24/7","label":"Support in your language"},{"value":"$5","label":"Minimum deposit"}]} background="grid" ground="page" />
256
+
257
+ // rings on subtle
258
+ <Stats title="Trade with confidence" description="For over 25 years, a trusted partner of traders worldwide." stats={[{"value":"3M+","label":"Traders worldwide"},{"value":"250+","label":"Markets to trade"},{"value":"24/7","label":"Support in your language"},{"value":"$5","label":"Minimum deposit"}]} background="rings" ground="subtle" />
259
+
260
+ // halftone on strong
261
+ <Stats title="Trade with confidence" description="For over 25 years, a trusted partner of traders worldwide." stats={[{"value":"3M+","label":"Traders worldwide"},{"value":"250+","label":"Markets to trade"},{"value":"24/7","label":"Support in your language"},{"value":"$5","label":"Minimum deposit"}]} background="halftone" ground="strong" />
262
+
263
+ // aurora on strong
264
+ <Stats title="Trade with confidence" description="For over 25 years, a trusted partner of traders worldwide." stats={[{"value":"3M+","label":"Traders worldwide"},{"value":"250+","label":"Markets to trade"},{"value":"24/7","label":"Support in your language"},{"value":"$5","label":"Minimum deposit"}]} background="aurora" ground="strong" />
265
+
266
+ // mesh on strong
267
+ <Stats title="Trade with confidence" description="For over 25 years, a trusted partner of traders worldwide." stats={[{"value":"3M+","label":"Traders worldwide"},{"value":"250+","label":"Markets to trade"},{"value":"24/7","label":"Support in your language"},{"value":"$5","label":"Minimum deposit"}]} background="mesh" ground="strong" />
268
+ ```