diff --git a/docs/patterns/card/index.md b/docs/patterns/card/index.md index 57d7ef78d1..c41cec6f66 100644 --- a/docs/patterns/card/index.md +++ b/docs/patterns/card/index.md @@ -6,47 +6,46 @@ tags: --- + ## Overview A card formats content in a small, contained space. It can be used to display a @@ -59,34 +58,7 @@ it's near. Several cards can be used together to group related information. information on how to use the card element. {% endalert %} -## Sample pattern - - -

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend - elit sed est egestas, a sollicitudin mauris tincidunt. Pellentesque vel - dapibus risus. Nullam aliquam felis orci, eget cursus mi lacinia quis. - Vivamus at felis sem.

- - Call to action - -
- -## Sample - Slotted Title - - -

Headline, sm

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend - elit sed est egestas, a sollicitudin mauris tincidunt. Pellentesque vel - dapibus risus. Nullam aliquam felis orci, eget cursus milacinia quis. - Vivamus at felis sem. -

- - Call to action - -
- -## Sample - alternative color scheme +## Alternative color scheme

@@ -101,22 +73,6 @@ it's near. Several cards can be used together to group related information. -## Sample - title bar - - -

Headline, sm

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend - elit sed est egestas, a - sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam - aliquam felis orci, eget cursus mi - lacinia quis. Vivamus at felis sem. -

- - Call to action - -
- ## Title bar @@ -137,29 +93,7 @@ it's near. Several cards can be used together to group related information. Footer -## Style - -A card can be used in light and dark themes. - -### Theme - - -

Card title

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit - libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id - elit. Donec id elit non mi porta gravida at eget metus.

- Footer -
- - -

Card title

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit - libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id - elit. Donec id elit non mi porta gravida at eget metus.

- Footer -
- -### Custom Theming +## Custom Theming To customize a card the design tokens must be altered. These design tokens are different depending on the context for the card (light or dark theme). @@ -171,8 +105,7 @@ Examples include: For more information, please see the [card css custom properties](/elements/card/code/#css-custom-properties). - -#### Custom Light Theme +### Custom Light Theme

Card title

@@ -182,7 +115,7 @@ For more information, please see the [card css custom properties](/elements/card Footer
-#### Custom Dark Theme +### Custom Dark Theme

Card title

@@ -195,17 +128,5 @@ For more information, please see the [card css custom properties](/elements/card {% include 'feedback.html' %} -## Usage - -### Character count - The recommended maximum character count for the elements of a card are listed below and include spaces. - - | Element {style="width: 50%" } | Character count | - |-------------------------------|-----------------| - | Title | 20 | - | Headline | 50 | - | Body text | 165 | - | Footer | 55 | - [element]: /elements/card diff --git a/elements/rh-card/docs/20-guidelines.md b/elements/rh-card/docs/20-guidelines.md index e5cb778e79..a49be97c4f 100644 --- a/elements/rh-card/docs/20-guidelines.md +++ b/elements/rh-card/docs/20-guidelines.md @@ -1,7 +1,12 @@ ## Usage ### Variants + There are several card variants that can be used for a variety of use cases. +{% alert %} + For examples of how to implement these patterns, see the [card patterns page](/patterns/card). +{% endalert %} + - #### Basic Use to display basic content or long paragraphs of text. Secondary and Default calls to action may be used.