@deriv-com/dds-marketing 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.llm/components/accordion.md +8 -0
- package/.llm/components/accordionitem.md +8 -0
- package/.llm/components/aspectratio.md +8 -0
- package/.llm/components/badge.md +8 -0
- package/.llm/components/bottomsheet.md +8 -0
- package/.llm/components/breadcrumb.md +8 -0
- package/.llm/components/breadcrumbitem.md +8 -0
- package/.llm/components/button.md +46 -22
- package/.llm/components/buttonicon.md +14 -6
- package/.llm/components/card.md +15 -1
- package/.llm/components/cardbody.md +28 -2
- package/.llm/components/cardbutton.md +15 -1
- package/.llm/components/checkbox.md +8 -0
- package/.llm/components/ctabanner.md +186 -0
- package/.llm/components/ctabannerslider.md +204 -0
- package/.llm/components/divider.md +8 -0
- package/.llm/components/dropdownmenu.md +13 -5
- package/.llm/components/faqaccordion.md +217 -0
- package/.llm/components/featurebullets.md +254 -0
- package/.llm/components/featurecards.md +313 -0
- package/.llm/components/featurescroll.md +284 -0
- package/.llm/components/featuresplit.md +249 -0
- package/.llm/components/filterchip.md +8 -0
- package/.llm/components/footer.md +8 -0
- package/.llm/components/footergroup.md +8 -0
- package/.llm/components/grid.md +8 -0
- package/.llm/components/icon.md +8 -0
- package/.llm/components/landinghero.md +254 -0
- package/.llm/components/link.md +9 -1
- package/.llm/components/logocolumns.md +235 -0
- package/.llm/components/logorows.md +212 -0
- package/.llm/components/menuitem.md +8 -0
- package/.llm/components/navbar.md +79 -15
- package/.llm/components/navbaritem.md +9 -1
- package/.llm/components/navbarmenu.md +8 -0
- package/.llm/components/navbarmenugroup.md +8 -0
- package/.llm/components/navbarpanel.md +9 -1
- package/.llm/components/navbarswitcher.md +9 -1
- package/.llm/components/navbarswitcheroption.md +8 -0
- package/.llm/components/option.md +8 -0
- package/.llm/components/pageheader.md +231 -0
- package/.llm/components/pagination.md +26 -89
- package/.llm/components/paginationdots.md +215 -0
- package/.llm/components/producthero.md +248 -0
- package/.llm/components/removablechip.md +8 -0
- package/.llm/components/row.md +8 -0
- package/.llm/components/scroller.md +8 -0
- package/.llm/components/searchinput.md +8 -0
- package/.llm/components/segmentedcontrol.md +8 -0
- package/.llm/components/segmentedcontrolitem.md +8 -0
- package/.llm/components/select.md +8 -0
- package/.llm/components/selectchip.md +56 -15
- package/.llm/components/spinner.md +8 -0
- package/.llm/components/stack.md +8 -0
- package/.llm/components/statusdot.md +8 -0
- package/.llm/components/subdomainnavbar.md +8 -0
- package/.llm/components/tab.md +8 -0
- package/.llm/components/table.md +8 -0
- package/.llm/components/tablebody.md +8 -0
- package/.llm/components/tablecell.md +8 -0
- package/.llm/components/tablehead.md +8 -0
- package/.llm/components/tableheadercell.md +8 -0
- package/.llm/components/tablerow.md +8 -0
- package/.llm/components/tablist.md +8 -0
- package/.llm/components/testimonialrow.md +235 -0
- package/.llm/components/testimonialslider.md +254 -0
- package/.llm/components/textarea.md +8 -0
- package/.llm/components/textinput.md +8 -0
- package/.llm/components/tooltip.md +8 -0
- package/.llm/components/typography.md +8 -0
- package/.llm/digest/button.md +11 -6
- package/.llm/digest/buttonicon.md +2 -2
- package/.llm/digest/card.md +1 -0
- package/.llm/digest/cardbody.md +3 -1
- package/.llm/digest/cardbutton.md +1 -0
- package/.llm/digest/ctabanner.md +44 -0
- package/.llm/digest/ctabannerslider.md +45 -0
- package/.llm/digest/dropdownmenu.md +1 -1
- package/.llm/digest/faqaccordion.md +43 -0
- package/.llm/digest/featurebullets.md +52 -0
- package/.llm/digest/featurecards.md +49 -0
- package/.llm/digest/featurescroll.md +52 -0
- package/.llm/digest/featuresplit.md +54 -0
- package/.llm/digest/landinghero.md +53 -0
- package/.llm/digest/logocolumns.md +55 -0
- package/.llm/digest/logorows.md +48 -0
- package/.llm/digest/navbar.md +18 -3
- package/.llm/digest/pageheader.md +49 -0
- package/.llm/digest/pagination.md +6 -17
- package/.llm/digest/paginationdots.md +43 -0
- package/.llm/digest/producthero.md +53 -0
- package/.llm/digest/selectchip.md +6 -1
- package/.llm/digest/testimonialrow.md +51 -0
- package/.llm/digest/testimonialslider.md +51 -0
- package/.llm/index.md +24 -3
- package/.llm/rules.md +24 -0
- package/.llm/tokens.md +56 -12
- package/AGENTS.md +28 -3
- package/README.md +41 -21
- package/dist/components/banner-data.d.ts +38 -0
- package/dist/components/banner-data.js +15 -0
- package/dist/components/blocks/block-reveal.css +90 -0
- package/dist/components/blocks/cta-banner/CtaBanner.css +66 -0
- package/dist/components/blocks/cta-banner/CtaBanner.d.ts +22 -0
- package/dist/components/blocks/cta-banner/CtaBanner.js +31 -0
- package/dist/components/blocks/cta-banner/CtaBanner.types.d.ts +29 -0
- package/dist/components/blocks/cta-banner/CtaBanner.types.js +13 -0
- package/dist/components/blocks/cta-banner/cta-banner-impl.css +29 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.css +90 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.d.ts +39 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.js +60 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.d.ts +41 -0
- package/dist/components/blocks/cta-banner-slider/CtaBannerSlider.types.js +15 -0
- package/dist/components/blocks/cta-banner-slider/cta-banner-slider-impl.css +73 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.css +54 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.d.ts +20 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.js +28 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.types.d.ts +25 -0
- package/dist/components/blocks/faq-accordion/FaqAccordion.types.js +10 -0
- package/dist/components/blocks/faq-accordion/faq-accordion-impl.css +54 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.css +139 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.d.ts +31 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.js +55 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.types.d.ts +39 -0
- package/dist/components/blocks/feature-bullets/FeatureBullets.types.js +16 -0
- package/dist/components/blocks/feature-bullets/feature-bullets-impl.css +104 -0
- package/dist/components/blocks/feature-cards/FeatureCards.css +84 -0
- package/dist/components/blocks/feature-cards/FeatureCards.d.ts +24 -0
- package/dist/components/blocks/feature-cards/FeatureCards.js +66 -0
- package/dist/components/blocks/feature-cards/FeatureCards.types.d.ts +33 -0
- package/dist/components/blocks/feature-cards/FeatureCards.types.js +14 -0
- package/dist/components/blocks/feature-cards/feature-cards-impl.css +245 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.css +137 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.d.ts +39 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.js +167 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.types.d.ts +40 -0
- package/dist/components/blocks/feature-scroll/FeatureScroll.types.js +17 -0
- package/dist/components/blocks/feature-scroll/feature-scroll-impl.css +292 -0
- package/dist/components/blocks/feature-split/FeatureSplit.css +95 -0
- package/dist/components/blocks/feature-split/FeatureSplit.d.ts +30 -0
- package/dist/components/blocks/feature-split/FeatureSplit.js +38 -0
- package/dist/components/blocks/feature-split/FeatureSplit.types.d.ts +39 -0
- package/dist/components/blocks/feature-split/FeatureSplit.types.js +14 -0
- package/dist/components/blocks/feature-split/feature-split-impl.css +83 -0
- package/dist/components/blocks/landing-hero/LandingHero.css +85 -0
- package/dist/components/blocks/landing-hero/LandingHero.d.ts +41 -0
- package/dist/components/blocks/landing-hero/LandingHero.js +54 -0
- package/dist/components/blocks/landing-hero/LandingHero.types.d.ts +37 -0
- package/dist/components/blocks/landing-hero/LandingHero.types.js +15 -0
- package/dist/components/blocks/landing-hero/landing-hero-impl.css +355 -0
- package/dist/components/blocks/logo-columns/LogoColumns.css +161 -0
- package/dist/components/blocks/logo-columns/LogoColumns.d.ts +23 -0
- package/dist/components/blocks/logo-columns/LogoColumns.js +46 -0
- package/dist/components/blocks/logo-columns/LogoColumns.types.d.ts +46 -0
- package/dist/components/blocks/logo-columns/LogoColumns.types.js +18 -0
- package/dist/components/blocks/logo-columns/logo-columns-impl.css +188 -0
- package/dist/components/blocks/logo-rows/LogoRows.css +122 -0
- package/dist/components/blocks/logo-rows/LogoRows.d.ts +20 -0
- package/dist/components/blocks/logo-rows/LogoRows.js +43 -0
- package/dist/components/blocks/logo-rows/LogoRows.types.d.ts +36 -0
- package/dist/components/blocks/logo-rows/LogoRows.types.js +16 -0
- package/dist/components/blocks/logo-rows/logo-rows-impl.css +179 -0
- package/dist/components/blocks/page-header/PageHeader.css +79 -0
- package/dist/components/blocks/page-header/PageHeader.d.ts +34 -0
- package/dist/components/blocks/page-header/PageHeader.js +43 -0
- package/dist/components/blocks/page-header/PageHeader.types.d.ts +32 -0
- package/dist/components/blocks/page-header/PageHeader.types.js +14 -0
- package/dist/components/blocks/page-header/page-header-impl.css +176 -0
- package/dist/components/blocks/product-hero/ProductHero.css +86 -0
- package/dist/components/blocks/product-hero/ProductHero.d.ts +35 -0
- package/dist/components/blocks/product-hero/ProductHero.js +48 -0
- package/dist/components/blocks/product-hero/ProductHero.types.d.ts +37 -0
- package/dist/components/blocks/product-hero/ProductHero.types.js +15 -0
- package/dist/components/blocks/product-hero/product-hero-impl.css +354 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.css +245 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.d.ts +20 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.js +128 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.types.d.ts +54 -0
- package/dist/components/blocks/testimonial-row/TestimonialRow.types.js +26 -0
- package/dist/components/blocks/testimonial-row/testimonial-row-impl.css +195 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.css +181 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.d.ts +22 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.js +36 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.d.ts +49 -0
- package/dist/components/blocks/testimonial-slider/TestimonialSlider.types.js +21 -0
- package/dist/components/blocks/testimonial-slider/testimonial-slider-impl.css +202 -0
- package/dist/components/blocks/use-reveal.d.ts +46 -0
- package/dist/components/blocks/use-reveal.js +120 -0
- package/dist/components/blocks/use-rotation.d.ts +62 -0
- package/dist/components/blocks/use-rotation.js +176 -0
- package/dist/components/core/accordion-item/AccordionItem.css +6 -5
- package/dist/components/core/bottom-sheet/BottomSheet.css +1 -1
- package/dist/components/core/button/Button.css +63 -16
- package/dist/components/core/button/Button.d.ts +14 -12
- package/dist/components/core/button/Button.js +43 -14
- package/dist/components/core/button/Button.types.d.ts +9 -14
- package/dist/components/core/button/button-impl.css +25 -0
- package/dist/components/core/button-icon/ButtonIcon.css +31 -15
- package/dist/components/core/button-icon/ButtonIcon.d.ts +2 -2
- package/dist/components/core/button-icon/ButtonIcon.js +2 -2
- package/dist/components/core/button-icon/ButtonIcon.types.d.ts +4 -4
- package/dist/components/core/card/Card.css +13 -4
- package/dist/components/core/card/Card.types.d.ts +2 -1
- package/dist/components/core/card-body/CardBody.css +11 -6
- package/dist/components/core/card-body/CardBody.d.ts +1 -1
- package/dist/components/core/card-body/CardBody.js +2 -2
- package/dist/components/core/card-body/CardBody.types.d.ts +4 -1
- package/dist/components/core/card-body/CardBody.types.js +1 -0
- package/dist/components/core/card-button/CardButton.css +13 -4
- package/dist/components/core/card-button/CardButton.types.d.ts +2 -1
- package/dist/components/core/checkbox/Checkbox.css +8 -1
- package/dist/components/core/dropdown-menu/DropdownMenu.css +13 -12
- package/dist/components/core/dropdown-menu/DropdownMenu.d.ts +5 -3
- package/dist/components/core/dropdown-menu/DropdownMenu.js +5 -3
- package/dist/components/core/filter-chip/FilterChip.css +2 -1
- package/dist/components/core/footer/footer-impl.css +1 -1
- package/dist/components/core/footer-group/FooterGroup.css +8 -7
- package/dist/components/core/icon/Icon.css +1 -1
- package/dist/components/core/link/Link.css +1 -1
- package/dist/components/core/menu-item/MenuItem.css +1 -1
- package/dist/components/core/navbar/Navbar.css +7 -8
- package/dist/components/core/navbar/Navbar.d.ts +17 -1
- package/dist/components/core/navbar/Navbar.js +139 -12
- package/dist/components/core/navbar/Navbar.types.d.ts +23 -4
- package/dist/components/core/navbar/Navbar.types.js +1 -1
- package/dist/components/core/navbar/navbar-impl.css +10 -3
- package/dist/components/core/navbar/navbar-material.css +96 -0
- package/dist/components/core/navbar-item/NavbarItem.css +4 -4
- package/dist/components/core/navbar-menu/NavbarMenu.css +7 -5
- package/dist/components/core/navbar-menu/NavbarMenu.d.ts +1 -0
- package/dist/components/core/navbar-menu/NavbarMenu.js +1 -0
- package/dist/components/core/navbar-menu/navbar-menu-impl.css +7 -7
- package/dist/components/core/navbar-switcher/NavbarSwitcher.css +6 -5
- package/dist/components/core/navbar-switcher/NavbarSwitcher.d.ts +1 -0
- package/dist/components/core/navbar-switcher/NavbarSwitcher.js +2 -1
- package/dist/components/core/option/Option.css +1 -1
- package/dist/components/core/pagination/Pagination.css +1 -75
- package/dist/components/core/pagination/Pagination.d.ts +4 -4
- package/dist/components/core/pagination/Pagination.js +11 -51
- package/dist/components/core/pagination/Pagination.types.d.ts +5 -17
- package/dist/components/core/pagination/Pagination.types.js +1 -3
- package/dist/components/core/pagination-dots/PaginationDots.css +60 -0
- package/dist/components/core/pagination-dots/PaginationDots.d.ts +25 -0
- package/dist/components/core/pagination-dots/PaginationDots.js +104 -0
- package/dist/components/core/pagination-dots/PaginationDots.types.d.ts +38 -0
- package/dist/components/core/pagination-dots/PaginationDots.types.js +9 -0
- package/dist/components/core/removable-chip/RemovableChip.css +3 -3
- package/dist/components/core/search-input/SearchInput.css +1 -1
- package/dist/components/core/segmented-control/SegmentedControl.css +1 -1
- package/dist/components/core/segmented-control-item/SegmentedControlItem.css +1 -1
- package/dist/components/core/select/Select.css +2 -1
- package/dist/components/core/select-chip/SelectChip.css +14 -7
- package/dist/components/core/select-chip/SelectChip.d.ts +1 -1
- package/dist/components/core/select-chip/SelectChip.js +7 -4
- package/dist/components/core/select-chip/SelectChip.types.d.ts +7 -1
- package/dist/components/core/select-chip/SelectChip.types.js +1 -1
- package/dist/components/core/select-chip/select-chip-impl.css +14 -3
- package/dist/components/core/status-dot/StatusDot.css +1 -1
- package/dist/components/core/subdomain-navbar/SubdomainNavbar.css +3 -3
- package/dist/components/core/tab/Tab.css +1 -1
- package/dist/components/core/tab-list/TabList.css +1 -1
- package/dist/components/core/table/table-impl.css +36 -14
- package/dist/components/core/table-header-cell/TableHeaderCell.css +5 -5
- package/dist/components/core/text-area/TextArea.css +1 -1
- package/dist/components/core/text-input/TextInput.css +1 -1
- package/dist/components/core/tooltip/Tooltip.css +1 -1
- package/dist/components/core/typography/Typography.css +5 -5
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +30 -0
- package/dist/components/logo-data.d.ts +24 -0
- package/dist/components/logo-data.js +11 -0
- package/dist/components/scroll-data.d.ts +64 -0
- package/dist/components/scroll-data.js +17 -0
- package/dist/components/testimonial-row-data.d.ts +51 -0
- package/dist/components/testimonial-row-data.js +11 -0
- package/dist/components/testimonial-slider-data.d.ts +26 -0
- package/dist/components/testimonial-slider-data.js +10 -0
- package/dist/marketing.css +385 -14
- package/package.json +1 -6
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
<!-- GENERATED from feature-cards.contract.json. Do not edit. -->
|
|
2
|
+
|
|
3
|
+
# FeatureCards
|
|
4
|
+
|
|
5
|
+
A section that opens with a heading and sets a grid of cards under it — the shape a marketing page uses for “why choose us” and “what you get”. Each card is the page's own Card or CardButton with a CardBody inside; this decides the heading, the column and how many cards sit on a row, and nothing about a card.
|
|
6
|
+
|
|
7
|
+
One column on a phone, two from the fold, and three at full width — four when there are exactly four and two when there are two, so a set is one full row rather than a row and an orphan, or a row with a gap in it.
|
|
8
|
+
|
|
9
|
+
One card is the reference design's single panel: it takes the whole row, and from the fold its words and its picture sit side by side — words at the start, the picture at the end and held to aspect.portrait — rather than one above the other across a card three times wider than a card is meant to be.
|
|
10
|
+
|
|
11
|
+
## Use when
|
|
12
|
+
|
|
13
|
+
- Three or four things a product does, each a heading and a sentence, read side by side and compared at a glance
|
|
14
|
+
- A set of destinations — markets, platforms, tools — each a card a reader presses to go there
|
|
15
|
+
- One feature that deserves the whole row in a card of its own — the words beside a large picture, carded on the section's ground
|
|
16
|
+
|
|
17
|
+
## Do not use
|
|
18
|
+
|
|
19
|
+
- Each item is one line, and the list is the argument → `FeatureBullets`
|
|
20
|
+
- One claim beside a picture, with no card around it → `FeatureSplit`
|
|
21
|
+
- The items are read in order, one leading to the next → `FeatureScroll`
|
|
22
|
+
- More than eight cards. Past two rows a grid stops being compared and starts being scanned, and that is a page of its own
|
|
23
|
+
- The page's opening band. This sits under the page's heading, never in place of it
|
|
24
|
+
|
|
25
|
+
## Anatomy
|
|
26
|
+
|
|
27
|
+
FeatureCards renders 8 elements. A token binding names the part it applies to.
|
|
28
|
+
|
|
29
|
+
- `root` — `<section>`, class `dds-featurecards`. The section. It paints the ground and the ink to go with it — see `ground` — and asks its own width, so the grid folds on the section's measure rather than the window's.
|
|
30
|
+
- `inner` — `<div>`, class `dds-featurecards__inner`. The measure and the gutter, the same column every band holds its content in, and the step from the heading to the grid: space.heading.content.
|
|
31
|
+
- `header` — `<div>`, class `dds-featurecards__header`. The heading, the line under it and the way on. Ranged to the start on a phone and centred from the fold, PageHeader's rule and its reason. It sets no gap: each part's own margin is the step, so a header without a line closes up rather than leaving its gap behind.
|
|
32
|
+
- `title` — `<h2>`, class `dds-featurecards__title`. What the cards are. `h2` because a section sits under the page's own heading; the cards' titles come below it in the outline.
|
|
33
|
+
- `description` — `<p>`, class `dds-featurecards__description`. The line under the heading, at the description measure. Rendered only when `description` is set.
|
|
34
|
+
- `link` — `<div>`, class `dds-featurecards__link`. The way on to the page the set belongs to. Rendered only when `link` is set.
|
|
35
|
+
- `grid` — `<div>`, class `dds-featurecards__grid`. The cards. One column on a phone, two from the fold, three at full width, four when there are exactly four and two when there are exactly two — read from the children rather than asked of the page, because the count is already in the markup. Every card in a row is as tall as the tallest, which is what a grid row does and what lets their edges line up. The space between cards, across and down, is the page grid's own gutter, space.grid.gutter, at every width — the same measure every other grid on the page keeps. A single card takes the row on its own and lays its body out as a row from the fold. At full width one card or two hold to two thirds of the row, centred — two of the three columns — so a pair is as wide as a pair is in any set.
|
|
36
|
+
- `item` — `<div>`, class `dds-featurecards__item`. One cell of the grid, holding one card. The cell is what arrives — the card inside it is the page's own and keeps its own transitions, which an arrival set on the card would have overwritten. A grid of its own so the card stretches to the cell, and every card in a row is as tall as the tallest. On a painted ground it is also where a card is re-coloured for it — a light card white on the subtle band, a neutral card inverse on the strong one: see `ground`.
|
|
37
|
+
|
|
38
|
+
Apply these classes from the generated `featureCardsParts` constant rather than writing the strings by hand.
|
|
39
|
+
|
|
40
|
+
## Composition
|
|
41
|
+
|
|
42
|
+
- Can contain: `Card`, `CardButton`
|
|
43
|
+
- Never contains: `FeatureCards`, `LandingHero`, `ProductHero`, `PageHeader`, `Footer`, `Navbar` — in children or in any prop that takes a node
|
|
44
|
+
- Holds at least 1 and at most 8
|
|
45
|
+
|
|
46
|
+
## Props
|
|
47
|
+
|
|
48
|
+
### ground — `page` | `subtle` | `strong` (default `page`)
|
|
49
|
+
|
|
50
|
+
- `page` — The default, and the page's own white. A section that has nothing to separate itself from what is above it — most of them — and the ground a reader is already on
|
|
51
|
+
- `subtle` — A quiet step off the page, for a band that wants to read as its own section without changing the page's voice. The one to reach for first when two sections need telling apart. A light card — surface-light — turns white on it, color.bg.surface-card-light-raised, because its own gray.50 is the band's and would vanish into it. A dark card — accent-strong — is lifted to color.bg.surface-card-strong-raised, a step lighter in dark mode, where the band is within a shade of its gray.900. A plain surface card is raised off it the same way, to color.bg.surface-card-raised, because the recessed fill is the band's gray too. Painted as the band's tint laid over the page's own ground, so it is the same grey whatever is behind the section — in dark mode the tint alone took on whatever it was set against, and on a light surface it was light ink on white.
|
|
52
|
+
- `strong` — `color.bg.brand-strong`, the dark band. It stops the page rather than dividing it, so it is for a section a reader should arrive at — and one per page is usually one more than enough. The coloured cards keep their own grounds on it; a neutral card — surface or surface-raised — turns to Card's inverse fill and white ink, and a plain card takes the white ink alone, because their own would be dark ink on near-black; an eyebrow inside any of them takes the band's quieter ink
|
|
53
|
+
|
|
54
|
+
Use when: Which of the page's three grounds this section paints. A marketing page is white, and a band that wants to be seen as a band takes one of the other two — so this is how a page builds its rhythm: white, white, grey, white, dark. Two in a row is a deliberate pair rather than an accident, and the section above knows nothing about the one below it, so the page is the only thing that can decide.
|
|
55
|
+
|
|
56
|
+
The ink follows the ground and is not a second decision: a dark band carries white type because this sets both halves in one value, which is what the painted-ground-carries-its-ink rule exists to stop a page getting wrong.
|
|
57
|
+
Never for: Marking importance. Every section on a page painted dark is a page with no emphasis left, and a reader stops reading the grounds as meaning anything. Alternating for its own sake is the same mistake more slowly.
|
|
58
|
+
|
|
59
|
+
And never the brand's own coral, `color.bg.brand`, which is not offered here. That ground belongs to the band that asks a reader to do something — the one place on a page where the brand colour is the point rather than decoration — and a feature section wearing it is a page with two calls to action, one of which does nothing. It is `color.bg.brand-strong` that this offers: the dark brand ground, which is a band breaking a page rather than a band asking for something.
|
|
60
|
+
|
|
61
|
+
### title — `string` **Required.**
|
|
62
|
+
|
|
63
|
+
Use when: Always. What the cards are, in the fewest words that name them — "Why trade with Deriv", "Markets you can trade".
|
|
64
|
+
Never for: A sentence. The line under it is for the sentence.
|
|
65
|
+
|
|
66
|
+
### description — `string`
|
|
67
|
+
|
|
68
|
+
Use when: A line saying what the set has in common, when the title alone does not.
|
|
69
|
+
Never for: A paragraph, or a summary of every card. The cards say what they are; this only says why they are together.
|
|
70
|
+
|
|
71
|
+
### link — `node`
|
|
72
|
+
|
|
73
|
+
Accepts: Link
|
|
74
|
+
Use when: A way on to the page the whole set belongs to — "See all markets". A standalone Link, under the line.
|
|
75
|
+
Never for: A button. The cards are the actions here, and a Button over them would be a second, louder one.
|
|
76
|
+
|
|
77
|
+
## Accessibility
|
|
78
|
+
|
|
79
|
+
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.
|
|
80
|
+
|
|
81
|
+
- Announced as: `region`
|
|
82
|
+
- `Tab` — Moves through the link and then the cards a reader can press, in reading order — row by row, start to end.
|
|
83
|
+
- accessible name from title, so the section is a named region a screen reader can jump to and skip
|
|
84
|
+
- The cards' order in the markup is their reading order. The grid places them in rows and never reorders them, so a reader tabbing through meets them as a sighted reader scans them.
|
|
85
|
+
|
|
86
|
+
## Rules
|
|
87
|
+
|
|
88
|
+
- **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.
|
|
89
|
+
|
|
90
|
+
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.
|
|
91
|
+
|
|
92
|
+
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.
|
|
93
|
+
|
|
94
|
+
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.
|
|
95
|
+
|
|
96
|
+
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.
|
|
97
|
+
|
|
98
|
+
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.
|
|
99
|
+
Guidance only — cannot be checked automatically.
|
|
100
|
+
- **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, Input and Switch simultaneously.
|
|
101
|
+
Guidance only — cannot be checked automatically.
|
|
102
|
+
- **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.
|
|
103
|
+
|
|
104
|
+
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.
|
|
105
|
+
|
|
106
|
+
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.
|
|
107
|
+
Guidance only — cannot be checked automatically.
|
|
108
|
+
- **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.
|
|
109
|
+
|
|
110
|
+
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.
|
|
111
|
+
|
|
112
|
+
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.
|
|
113
|
+
|
|
114
|
+
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.
|
|
115
|
+
|
|
116
|
+
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.
|
|
117
|
+
|
|
118
|
+
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.
|
|
119
|
+
|
|
120
|
+
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.
|
|
121
|
+
|
|
122
|
+
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.
|
|
123
|
+
|
|
124
|
+
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.
|
|
125
|
+
Guidance only — cannot be checked automatically.
|
|
126
|
+
- **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.
|
|
127
|
+
|
|
128
|
+
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.
|
|
129
|
+
|
|
130
|
+
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.
|
|
131
|
+
|
|
132
|
+
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.
|
|
133
|
+
|
|
134
|
+
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.
|
|
135
|
+
|
|
136
|
+
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.
|
|
137
|
+
|
|
138
|
+
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.
|
|
139
|
+
|
|
140
|
+
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.
|
|
141
|
+
|
|
142
|
+
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.
|
|
143
|
+
Guidance only — cannot be checked automatically.
|
|
144
|
+
- **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.
|
|
145
|
+
|
|
146
|
+
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.
|
|
147
|
+
|
|
148
|
+
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.
|
|
149
|
+
|
|
150
|
+
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.
|
|
151
|
+
Guidance only — cannot be checked automatically.
|
|
152
|
+
- **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.
|
|
153
|
+
|
|
154
|
+
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.
|
|
155
|
+
|
|
156
|
+
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.
|
|
157
|
+
|
|
158
|
+
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.
|
|
159
|
+
Guidance only — cannot be checked automatically.
|
|
160
|
+
|
|
161
|
+
## Anti-examples
|
|
162
|
+
|
|
163
|
+
❌ FeatureCards for: Each item is one line, and the list is the argument
|
|
164
|
+
A line per inclusion is counted, not compared; a card per line is a grid of headings with nothing under them
|
|
165
|
+
→ use `FeatureBullets` instead.
|
|
166
|
+
|
|
167
|
+
❌ FeatureCards for: One claim beside a picture, with no card around it
|
|
168
|
+
FeatureSplit sets the words and the picture straight on the section. One card here is the boxed version — the same split held in a card — and a page uses whichever its neighbours are: cards beside cards, open sections beside open ones
|
|
169
|
+
→ use `FeatureSplit` instead.
|
|
170
|
+
|
|
171
|
+
❌ FeatureCards for: The items are read in order, one leading to the next
|
|
172
|
+
A grid is read in any order; a sequence wants a screen per stop
|
|
173
|
+
→ use `FeatureScroll` instead.
|
|
174
|
+
|
|
175
|
+
## Example
|
|
176
|
+
|
|
177
|
+
```tsx
|
|
178
|
+
import { FeatureCards, Card, Link, CardBody } from '@deriv-com/dds-marketing'
|
|
179
|
+
|
|
180
|
+
<FeatureCards title="Why trade with Deriv" description="Everything you need to trade the markets, in one account." link={<Link href="/why-deriv">Learn more</Link>}>
|
|
181
|
+
<Card variant="accent-strong">
|
|
182
|
+
<CardBody title="Trade on any device" description="Desktop, web and mobile, all from one account." link={<Link href="/platforms" tone="inherit">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
183
|
+
</Card>
|
|
184
|
+
<Card variant="surface-light">
|
|
185
|
+
<CardBody title="250+ markets" description="Forex, stocks, commodities and more, side by side." link={<Link href="/markets">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
186
|
+
</Card>
|
|
187
|
+
<Card variant="accent">
|
|
188
|
+
<CardBody title="Start in minutes" description="Open an account with as little as $5." link={<Link href="/signup" tone="inherit">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
189
|
+
</Card>
|
|
190
|
+
</FeatureCards>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## In use
|
|
194
|
+
|
|
195
|
+
Most rows below hold the same set, written once here:
|
|
196
|
+
|
|
197
|
+
```tsx
|
|
198
|
+
import { Card, CardBody, Link } from '@deriv-com/dds-marketing'
|
|
199
|
+
|
|
200
|
+
const cards = (
|
|
201
|
+
<>
|
|
202
|
+
<Card variant="accent-strong">
|
|
203
|
+
<CardBody title="Trade on any device" description="Desktop, web and mobile, all from one account." link={<Link href="/platforms" tone="inherit">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
204
|
+
</Card>
|
|
205
|
+
<Card variant="surface-light">
|
|
206
|
+
<CardBody title="250+ markets" description="Forex, stocks, commodities and more, side by side." link={<Link href="/markets">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
207
|
+
</Card>
|
|
208
|
+
<Card variant="accent">
|
|
209
|
+
<CardBody title="Start in minutes" description="Open an account with as little as $5." link={<Link href="/signup" tone="inherit">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
210
|
+
</Card>
|
|
211
|
+
</>
|
|
212
|
+
)
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### A dark, a light and a coral card
|
|
216
|
+
|
|
217
|
+
The set the reference design leads with: each card a ground of its own, a line, a way on and a picture. The light one is surface-light so it stays light in dark mode beside the dark one.
|
|
218
|
+
|
|
219
|
+
```tsx
|
|
220
|
+
import { FeatureCards } from '@deriv-com/dds-marketing'
|
|
221
|
+
|
|
222
|
+
// accent-strong, surface-light, accent
|
|
223
|
+
<FeatureCards title="Why trade with Deriv">{cards}</FeatureCards>
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### How many share a row
|
|
227
|
+
|
|
228
|
+
One card takes the row with its words beside its picture; two share it; three to a row at full width; four when there are exactly four.
|
|
229
|
+
|
|
230
|
+
```tsx
|
|
231
|
+
import { Card, CardBody, FeatureCards, Link } from '@deriv-com/dds-marketing'
|
|
232
|
+
|
|
233
|
+
// One card, words beside the picture
|
|
234
|
+
<FeatureCards title="Trade on any device">
|
|
235
|
+
<Card variant="accent-strong">
|
|
236
|
+
<CardBody title="Trade on any device" description="Desktop, web and mobile, all from one account." link={<Link href="/platforms" tone="inherit">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
237
|
+
</Card>
|
|
238
|
+
</FeatureCards>
|
|
239
|
+
|
|
240
|
+
// Two cards, two thirds of the row
|
|
241
|
+
<FeatureCards title="Two ways to trade">
|
|
242
|
+
<Card variant="accent-strong">
|
|
243
|
+
<CardBody title="Trade on any device" description="Desktop, web and mobile, all from one account." link={<Link href="/platforms" tone="inherit">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
244
|
+
</Card>
|
|
245
|
+
<Card variant="surface-light">
|
|
246
|
+
<CardBody title="250+ markets" description="Forex, stocks, commodities and more, side by side." link={<Link href="/markets">Learn more</Link>} src="/sample-card-image.svg" alt="" />
|
|
247
|
+
</Card>
|
|
248
|
+
</FeatureCards>
|
|
249
|
+
|
|
250
|
+
// Three cards
|
|
251
|
+
<FeatureCards title="Why trade with Deriv">
|
|
252
|
+
<Card>
|
|
253
|
+
<CardBody title="Tight spreads" description="Competitive pricing on every market." />
|
|
254
|
+
</Card>
|
|
255
|
+
<Card>
|
|
256
|
+
<CardBody title="Fast execution" description="Orders filled in milliseconds." />
|
|
257
|
+
</Card>
|
|
258
|
+
<Card>
|
|
259
|
+
<CardBody title="Always open" description="Derived indices that never close." />
|
|
260
|
+
</Card>
|
|
261
|
+
</FeatureCards>
|
|
262
|
+
|
|
263
|
+
// Four cards, one row
|
|
264
|
+
<FeatureCards title="Our principles">
|
|
265
|
+
<Card>
|
|
266
|
+
<CardBody title="Be reliable" description="Contracts settled fairly and payments processed promptly." />
|
|
267
|
+
</Card>
|
|
268
|
+
<Card>
|
|
269
|
+
<CardBody title="Be fair" description="Every customer treated equitably, with no hidden costs." />
|
|
270
|
+
</Card>
|
|
271
|
+
<Card>
|
|
272
|
+
<CardBody title="Be transparent" description="Plain terms, and clear about the risks of trading." />
|
|
273
|
+
</Card>
|
|
274
|
+
<Card>
|
|
275
|
+
<CardBody title="Be responsible" description="No hard selling and no promises of returns." />
|
|
276
|
+
</Card>
|
|
277
|
+
</FeatureCards>
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### What the header carries
|
|
281
|
+
|
|
282
|
+
The heading alone, or with a line under it and a way on to the page the set belongs to.
|
|
283
|
+
|
|
284
|
+
```tsx
|
|
285
|
+
import { CardBody, CardButton, FeatureCards, Link } from '@deriv-com/dds-marketing'
|
|
286
|
+
|
|
287
|
+
// Title, line and link
|
|
288
|
+
<FeatureCards title="Markets you can trade" description="Forex, stocks, commodities and more, from one account." link={<Link href="/markets">See all markets</Link>}>
|
|
289
|
+
<CardButton href="/markets/forex">
|
|
290
|
+
<CardBody title="Forex" description="The world's most liquid market." />
|
|
291
|
+
</CardButton>
|
|
292
|
+
<CardButton href="/markets/stocks">
|
|
293
|
+
<CardBody title="Stocks" description="The global names you already know." />
|
|
294
|
+
</CardButton>
|
|
295
|
+
<CardButton href="/markets/commodities">
|
|
296
|
+
<CardBody title="Commodities" description="Gold, silver, oil and gas." />
|
|
297
|
+
</CardButton>
|
|
298
|
+
</FeatureCards>
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### On the grey band and the dark one
|
|
302
|
+
|
|
303
|
+
ground="subtle" tells a section apart from the one above; ground="strong" stops the page. A light card turns white on the grey band; the coloured cards keep their own grounds on either.
|
|
304
|
+
|
|
305
|
+
```tsx
|
|
306
|
+
import { FeatureCards } from '@deriv-com/dds-marketing'
|
|
307
|
+
|
|
308
|
+
// Subtle ground, the dark, light and coral set
|
|
309
|
+
<FeatureCards ground="subtle" title="Why trade with Deriv">{cards}</FeatureCards>
|
|
310
|
+
|
|
311
|
+
// Strong ground, the same set
|
|
312
|
+
<FeatureCards ground="strong" title="Why trade with Deriv">{cards}</FeatureCards>
|
|
313
|
+
```
|