<a href="/wiki/display/CPDesign/Featured+Card">Featured Card</a>

Table of Contents

Overview

Featured cards are special types of cards that are used to display new or highlighted content that is of interest to the user. These cards serve the function of providing high-level news or information about a new capability in the product or highlights useful content within the product. The intention of these cards is to show the highlighted and featured information and motivate users to explore those. That’s why they can also be used as banner substitutes. These cards can be used to show new features, functionalities, services, information and are applicable for use in product and web environments.

The featured card is only a concept not a fully developed component, therefore the visual design specifications are not as concrete and detailed.

Look and Feel

The abstract visual elements and the colorful backgrounds of the cards are using the BTP Reference Colors and are automatically theme-able. The illustrations used in the featured card should not be theme-able so unlike the Illustrations that change colors in every theme, the illustrations used here should always maintain the same colors in all themes. Use hex values in the .svg file as opposed to color variables. Make sure the cards have a border radius in HC themes for better visibility.

&#x3C;p&#x3E;&#x3C;div&#x3E; &#x3C;div&#x3E;Morning Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Evening Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Horizon HCB&#x3C;/div&#x3E; &#x3C;div&#x3E;Horizon HCW&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/homepage/featured-card/media1_1ab5f82f6d6de777bb673dbd5047cdd321fbebb27.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1ab5f82f6d6de777bb673dbd5047cdd321fbebb27.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1ab5f82f6d6de777bb673dbd5047cdd321fbebb27.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media%5C_1ab5f82f6d6de777bb673dbd5047cdd321fbebb27.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media_1ab5f82f6d6de777bb673dbd5047cdd321fbebb27.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;1149&#x22; height=&#x22;1680&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/homepage/featured-card/media1_124b6394f9b45a019255173945475ee0df4ff17df.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_124b6394f9b45a019255173945475ee0df4ff17df.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_124b6394f9b45a019255173945475ee0df4ff17df.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media%5C_124b6394f9b45a019255173945475ee0df4ff17df.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media_124b6394f9b45a019255173945475ee0df4ff17df.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;1149&#x22; height=&#x22;1680&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/homepage/featured-card/media1_1705291770f363ef0e0b4ee03a452c8f9c2094707.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1705291770f363ef0e0b4ee03a452c8f9c2094707.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1705291770f363ef0e0b4ee03a452c8f9c2094707.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media%5C_1705291770f363ef0e0b4ee03a452c8f9c2094707.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media_1705291770f363ef0e0b4ee03a452c8f9c2094707.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;1149&#x22; height=&#x22;1680&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/homepage/featured-card/media1_1193bbb5862942bd88d2ae328044c97d6727938a9.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_1193bbb5862942bd88d2ae328044c97d6727938a9.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_1193bbb5862942bd88d2ae328044c97d6727938a9.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media%5C_1193bbb5862942bd88d2ae328044c97d6727938a9.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media_1193bbb5862942bd88d2ae328044c97d6727938a9.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;1149&#x22; height=&#x22;1680&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;/div&#x3E;&#x3C;/p&#x3E;

Anatomy Image Variant

<div> <div></div> <div>Element</div> <div>Description</div> </div> <div> <div><strong>A</strong></div> <div><strong>Card</strong></div> <div>This is the main container of the Featured Card content. See <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fpages%2Fviewpage.action%3FpageId%3D2697897431">Card (Horizon) - Card Anatomy (Web Card System)</a> for full specifications.</div> </div> <div> <div><strong>B</strong></div> <div><strong>Image</strong></div> <div>An image or video thumbnail that can be positioned anywhere on the card.</div> </div> <div> <div><strong>C</strong></div> <div><strong>Badge (Optional)</strong></div> <div>This is the <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FInfo%2BLabel">Info Label</a> component and it is optional for the card.</div> </div> <div> <div><strong>D</strong></div> <div><strong>Title</strong></div> <div>Title of the card that should use the appropriate text style and color.</div> </div> <div> <div><strong>E</strong></div> <div><strong>Body Text</strong></div> <div>Body text of the card that should use the appropriate text style and color.</div> </div> <div> <div><strong>F</strong></div> <div><strong>Actions</strong></div> <div>Could be up to two buttons (one primary button and one secondary button). See <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FButtons%3Fsrc%3Dcontextnavpagetreemode">Buttons</a> for full specifications.</div> </div> <div> <div><strong>G</strong></div> <div><strong><p class="custom custom2" style="text-align: left;">Video Play Button (Optional)</p></strong></div> <div>Only for videos.</div> </div> <div> <div><strong>H</strong></div> <div><strong>Close Button (Optional)</strong></div> <div>Only for cards that should be dismissible.</div> </div>

Anatomy Illustration Variant

<div> <div></div> <div>Element</div> <div>Description</div> </div> <div> <div><strong>A</strong></div> <div><strong>Card</strong></div> <div>This is the main container of the Featured Card content. See <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fpages%2Fviewpage.action%3FpageId%3D2697897431">Card (Horizon) - Card Anatomy (Web Card System)</a> for full specifications.</div> </div> <div> <div><strong>B</strong></div> <div><strong>Abstract background shapes</strong></div> <div>Abstract geometric shapes in the background of the illustration. Should be a separate image layer from the illustration.</div> </div> <div> <div><strong>C</strong></div> <div><strong>Illustration</strong></div> <div>Taking foreground elements of the <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FIllustrations">Illustrations</a>. Colouring should not change for different themes.</div> </div> <div> <div><strong>D</strong></div> <div><strong>Badge (Optional)</strong></div> <div>This is the <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FInfo%2BLabel">Info Label</a> component and it is optional for the card.</div> </div> <div> <div><strong>E</strong></div> <div><strong>Title</strong></div> <div>Title of the card that should use the appropriate text style and color.</div> </div> <div> <div><strong>F</strong></div> <div><strong>Body Text</strong></div> <div>Body text of the card that should use the appropriate text style and color.</div> </div> <div> <div><strong>G</strong></div> <div><strong>Actions</strong></div> <div>Could be up to two buttons (one primary button and one secondary button). See <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FButtons%3Fsrc%3Dcontextnavpagetreemode">Buttons</a> for full specifications.</div> </div> <div> <div><strong>H</strong></div> <div><strong>Close Button (Optional)</strong></div> <div>Only for cards that should be dismissible.</div> </div>

Specification

Margins and paddings can be defined on a case-by-case basis as this is only a concept, not a component. The values indicated here are just a recommendation.

When using --sapContent_ContrastTextColor for the text make sure that it has sufficient contrast in all themes, this can especially cause issues in the Horizon HCW theme.

<div> <div></div> <div>Element</div> <div>Morning Horizon</div> <div>Evening Horizon</div> <div>Horizon HCB</div> <div>Horizon HCW</div> </div> <div> <div><strong>A</strong></div> <div><strong>Title</strong></div> <div> <p>Uses H1, H2, H3 or H4 from <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FTypography">Typography</a></p> <p>color: --sapTile_TitleTextColor; or</p> <p>color: --sapContent_ContrastTextColor;</p> </div> </div> <div> <div><strong>B</strong></div> <div><strong>Body Text</strong></div> <div> <p>font-size: --sapFontSmallSize; 0.75rem; or</p> <p>font-size: --sapFontSize; 0.875rem; or</p> <p>font-size: --sapFontLargeSize; 1rem;</p> <p>color: --sapTextColor; or</p> <p>color: --sapContent_ContrastTextColor;</p> </div> </div> <div> <div><strong>C</strong></div> <div><strong>Actions</strong></div> <div> <p>See <a href="https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FButtons%3Fsrc%3Dcontextnavpagetreemode">Buttons</a> for full specifications.</p> <p><strong>First Button</strong><br>Use primary button style.</p> <p><strong>Second Button</strong><br>Use secondary button style.</p> <p>margin: 1rem;</p> </div> </div> <div> <div><strong>D</strong></div> <div><strong>Content area</strong></div> <div>The content is vertically centred in a container.</div> </div> <div> <div><strong>E</strong></div> <div><strong><span style="color: rgb(0,0,0);">Video Play Button</span></strong></div> <div> <p>size: 6.25rem;</p> <p>Horizontally and vertically centred over the image.</p> </div> </div> <div> <div><strong>F</strong></div> <div><strong><span style="color: rgb(0,0,0);">Close Button</span></strong></div> <div>size: 2.5rem;<br>margin-top: 1.5rem;margin-right: 1.5rem;</div> </div> <div> <div><strong>G</strong></div> <div><strong>Padding</strong></div> <div>2rem</div> </div> <div> <div><strong>H</strong></div> <div><strong><span style="color: rgb(0,0,0);">Spacing 1</span></strong></div> <div>0.75rem</div> </div> <div> <div><strong>I</strong></div> <div><strong><span style="color: rgb(0,0,0);">Spacing 2</span></strong></div> <div>1.5rem</div> </div>

Featured Card Button

Anatomy

<div> <div></div> <div>Element</div> <div>Description</div> </div> <div> <div><strong>A</strong></div> <div><strong>Close Button Body</strong></div> <div>width: 2.5rem;<br>height: 2.5rem;<br>border-radius: 2.5rem;<br>border: none;</div> </div> <div> <div><strong>B</strong></div> <div><strong>Close Button Icon</strong></div> <div>width: 1.5rem;<br>height: 1.5rem;Vertically and horizontally centred.</div> </div> <div> <div><strong>C</strong></div> <div><strong>Play Button Body</strong></div> <div>width: 6.25rem;<br>height: 6.25rem;<br>border-radius: 6.25rem;<br>border: none;</div> </div> <div> <div><strong>D</strong></div> <div><strong>Play Button Icon</strong></div> <div> <p>icon: sap-icon://SAP-icons-TNT/status-terminated;<br>width: 2.625rem;<br>height: 2.625rem;<br>transform: rotate(-90deg);</p> <p>Vertically and horizontally centred.</p> </div> </div>

Component Variables

--sapBackground_FeaturedCardButton_Normal

<div> <div><strong><p>Morning and Evening Horizon</p></strong></div> <div>background: fade(@sapBlockLayer_Background, 40);</div> </div> <div> <div><strong>HC</strong></div> <div>background: var(--sapButton_Lite_Background);</div> </div>

--sapBackground_FeaturedCardButton_Hover

<div> <div><strong><p>Morning and Evening Horizon</p></strong></div> <div>background: fade(@sapBlockLayer_Background, 50);</div> </div> <div> <div><strong>HC</strong></div> <div>background: var(--sapButton_Lite_Hover_Background);</div> </div>

--sapBackground_FeaturedCardButton_Active

<div> <div><strong><p>Morning and Evening Horizon</p></strong></div> <div>background: fade(@sapBlockLayer_Background, 60);</div> </div> <div> <div><strong>HC</strong></div> <div>background: var(--sapActiveColor);</div> </div>

Specification

&#x3C;p&#x3E;&#x3C;div&#x3E; &#x3C;div&#x3E;State&#x3C;/div&#x3E; &#x3C;div&#x3E;Horizon&#x3C;/div&#x3E; &#x3C;div&#x3E;Horizon HC&#x3C;/div&#x3E; &#x3C;div&#x3E;Preview&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Normal&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;background: var(--sapBackground_FeaturedCardButton_Normal);&#x3C;br&#x3E;color: var(--sapContent_ContrastIconColor);&#x3C;/div&#x3E; &#x3C;div&#x3E;See &#x3C;a href=&#x22;https%3A%2F%2Fwww.sap.com%2Fwiki%2Fdisplay%2FCPDesign%2FNested%2BButton&#x22;&#x3E;Nested Button&#x3C;/a&#x3E; for full specifications.&#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;picture&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;/content/dam/sapcom/design-system/btp/patterns/homepage/featured-card/media1_13bf7e2b6cacd5671a1ce847cbde4bcdc4fb8e288.png?width=2000&#x26;format=webply&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;source type=&#x22;image/webp&#x22; srcset=&#x22;./media_13bf7e2b6cacd5671a1ce847cbde4bcdc4fb8e288.png?width=750&#x26;format=webply&#x26;optimize=medium&#x22;&#x3E; &#x3C;source type=&#x22;image/png&#x22; srcset=&#x22;./media_13bf7e2b6cacd5671a1ce847cbde4bcdc4fb8e288.png?width=2000&#x26;format=png&#x26;optimize=medium&#x22; media=&#x22;(min-width: 600px)&#x22;&#x3E; &#x3C;img loading=&#x22;lazy&#x22; alt=&#x22;&#x22; src=&#x22;&#x3C;a href=&#x22;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media%5C_13bf7e2b6cacd5671a1ce847cbde4bcdc4fb8e288.png?width=750%5C&#x26;format=png%5C&#x26;optimize=medium&#x22;&#x3E;https://www.sap.com/design-system/btp/patterns/homepage/featured-card/media_13bf7e2b6cacd5671a1ce847cbde4bcdc4fb8e288.png?width=750&#x26;format=png&#x26;optimize=medium&#x3C;/a&#x3E;&#x22; width=&#x22;267&#x22; height=&#x22;347&#x22;&#x3E; &#x3C;/picture&#x3E; &#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Hover&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;background: var(--sapBackground_FeaturedCardButton_Hover);&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Active&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;var(--sapBackground_FeaturedCardButton_Active);&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Focused&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;border: solid 0.0625rem var(--sapContent_ContrastFocusColor);outline: var(--sapContent_FocusStyle) var(--sapContent_FocusWidth) var(--sapContent_FocusColor);&#x3C;/div&#x3E; &#x3C;/div&#x3E; &#x3C;div&#x3E; &#x3C;div&#x3E;&#x3C;strong&#x3E;Disabled&#x3C;/strong&#x3E;&#x3C;/div&#x3E; &#x3C;div&#x3E;opacity: var(--sapContent_DisabledOpacity);&#x3C;/div&#x3E; &#x3C;/div&#x3E;&#x3C;/p&#x3E;