Card
On this page
Accented cards
Use to highlight a single card or set of cards in a group or row.
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.Card
Copy to Clipboard
Copied!
Toggle line wrap
<rh-card class="example-accented-card">
<h2 slot="header">Card</h2>
<p>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.</p>
<rh-cta slot="footer" priority="primary">
<a href="#">Call to action</a>
</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-accented-card {
position: relative;
&::before {
content: '';
position: absolute;
z-index: 2;
display: block;
inset-block-start: 0;
inset-inline: 0;
width: calc(100% + var(--rh-border-width-sm));
border-block-start-color: var(--rh-color-brand-red);
border-block-start-width: var(--rh-border-width-lg);
border-block-start-style: solid;
border-start-start-radius: var(--rh-border-radius-default);
border-start-end-radius: var(--rh-border-radius-default);
pointer-events: none;
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Asset cards
Use to display that an asset can be downloaded. An icon and label group or text may be used to describe the asset.
Lorem ipsum dolor sit amet consectetur adipiscing elit. Nullam elifend elit sed est egestast, a solicitudin mauris tincidunt
<rh-card class="example-asset-text-and-cta">
<svg slot="header" width="296" height="171">
<rect fill="var(--rh-color-border-interactive)" fill-opacity="0.1" stroke-dasharray="4" stroke-width="1" stroke="var(--rh-color-border-interactive)" width="296" height="171"></rect>
</svg>
<p>Lorem ipsum dolor sit amet consectetur adipiscing elit.
Nullam elifend elit sed est egestast, a solicitudin mauris
tincidunt</p>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-asset-text-and-cta {
width: 360px;
--rh-card-header-background-on-light:
var(--rh-color-surface-lighter,
var(--rh-color-gray-10,#f2f2f2));
--rh-card-header-background-on-dark:
var(--rh-color-surface-dark,
var(--rh-color-gray-70, #383838));
&::part(header) {
margin: 0;
padding-block-start: var(--rh-space-2xl, 32px);
padding-inline: var(--rh-space-2xl, 32px);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Text and CTA
Title, Lg
Lorem ipsum dolor sit amet consectetur adipiscing elit<rh-card class="example-asset-title-and-link">
<svg slot="header" viewBox="0 0 296 171" style="border: 1px dashed var(--rh-color-border-interactive-on-light, #0066cc);">
<rect fill="rgba(0 102 204 / 0.10)" width="296" height="171"></rect>
</svg>
<h4>
<svg class="fpo-icon" viewBox="0 0 16 16" style="width: 1.5em;
border: 1px dashed var(--rh-color-border-interactive-on-light, #0066cc);">
<rect fill="rgba(0 102 204 / 0.10)" width="16" height="16"></rect>
</svg>
<span>Title, Lg</span>
</h4>
<a href="#">Lorem ipsum dolor sit amet consectetur adipiscing elit</a>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-asset-title-and-link {
width: 360px;
--rh-card-header-background-on-light:
var(--rh-color-surface-lighter,
var(--rh-color-gray-10,#f2f2f2));
--rh-card-header-background-on-dark:
var(--rh-color-surface-dark,
var(--rh-color-gray-70, #383838));
&::part(header) {
margin: 0;
padding-block-start: var(--rh-space-2xl, 32px);
padding-inline: var(--rh-space-2xl, 32px);
}
& h4 {
margin-block: 0 var(--rh-space-lg, 16px);
display: flex;
gap: var(--rh-space-lg, 16px);
font-weight: var(--rh-font-weight-heading-regular, 300);
font-size: var(--rh-font-size-body-text-md, 1rem);
font-family: var(--rh-font-family-body-text);
line-height: var(--rh-line-height-body-text, 1.5);
text-transform: uppercase; /* deprecated? */
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Title and Link
Title, Lg
<rh-card class="example-asset-text-and-link-top">
<h4>Title, Lg</h4>
<p><a href="#">Lorem ipsum dolor sit amet consectetur adipiscing elit</a></p>
<svg slot="footer" viewBox="0 0 296 171" style="border: 1px dashed var(--rh-color-border-interactive-on-light, #0066cc);">
<rect fill="rgba(0 102 204 / 0.10)" width="296" height="171"></rect>
</svg>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-asset-text-and-link-top {
width: 360px;
&::part(footer) {
margin-block-end: 0;
}
& h4 {
margin-block: 0 var(--rh-space-lg, 16px);
display: flex;
gap: var(--rh-space-lg, 16px);
font-weight: var(--rh-font-weight-heading-regular, 300);
font-size: var(--rh-font-size-body-text-md, 1rem);
font-family: var(--rh-font-family-body-text);
line-height: var(--rh-line-height-body-text, 1.5);
text-transform: uppercase; /* deprecated? */
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Title and Link - Top
Avatars card
Use to highlight a group of people who engage in an event. A label should be included, but including text is optional.
Use the <rh-avatar>
element to element to present
the list of users.
Title, Lg
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.
<rh-card class="example-avatar-card">
<h4 slot="header">Title, Lg</h4>
<p>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.</p>
<rh-avatar name="First name Last name" subtitle="Job title, Company name"></rh-avatar>
<rh-avatar name="First name Last name" subtitle="Job title, Company name"></rh-avatar>
<rh-avatar name="First name Last name" subtitle="Job title, Company name"></rh-avatar>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-avatar-card {
width: 360px;
&::part(body) {
margin-block-start: var(--rh-space-lg, 16px);
}
& p {
margin-block-start: 0;
}
& h4 {
font-weight: var(--rh-font-weight-heading-regular, 300);
font-size: var(--rh-font-size-body-text-md, 1rem);
font-family: var(--rh-font-family-body-text);
line-height: var(--rh-line-height-body-text, 1.5);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Fast facts card
Use to display quick facts or short data points under a label. A Secondary call to action may be used or not.
-
Title, lg
Lorem ipsum dolor sit amet
-
Title, lg
Lorem ipsum dolor sit amet
-
Title, lg
Lorem ipsum dolor sit amet
<rh-card class="example-fast-facts-card">
<svg slot="header" width="80" height="80">
<rect fill="var(--rh-color-border-interactive)" fill-opacity="0.1" stroke-dasharray="4" stroke-width="1" stroke="var(--rh-color-border-interactive)" width="80" height="80"></rect>
</svg>
<ul>
<li>
<h4>Title, lg</h4>
<p>Lorem ipsum dolor sit amet</p>
</li>
<li>
<h4>Title, lg</h4>
<p>Lorem ipsum dolor sit amet</p>
</li>
<li>
<h4>Title, lg</h4>
<p>Lorem ipsum dolor sit amet</p>
</li>
</ul>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-fast-facts-card {
width: 360px;
& ul {
display: flex;
flex-flow: column;
gap: var(--rh-space-xl);
margin: 0;
padding: 0;
list-style-type: none;
& li {
margin-block: 0;
padding-block-end: var(--rh-space-xl);
border-block-end: 1px solid var(--rh-color-border-subtle);
&:last-child {
padding-block-end: 0;
border-block-end: none;
}
& :first-child {
margin-block-start: 0;
}
& :last-child {
margin-block-end: 0;
}
}
}
& h4 {
margin-block-end: 0 var(--rh-space-lg);
font-weight: var(--rh-font-weight-heading-regular);
font-size: var(--rh-font-size-body-text-md);
font-family: var(--rh-font-family-body-text);
line-height: var(--rh-line-height-body-text);
text-transform: uppercase; /* deprecated? */
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Icon card
Use to add an icon to the basic style above the text. Secondary and Default calls to action may be used.
Heading, sm
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a sollicitudin mauris tincidunt. Pellentesque vel dapibus risus.<rh-card class="example-icon-card">
<svg slot="header" width="80" height="80">
<rect fill="var(--rh-color-border-interactive)" fill-opacity="0.1" stroke-dasharray="4" stroke-width="1" stroke="var(--rh-color-border-interactive)" width="80" height="80"></rect>
</svg>
<h4 slot="header">Heading, sm</h4>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a sollicitudin mauris tincidunt. Pellentesque vel dapibus risus.
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-icon-card {
width: 360px;
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Image card
Use to add an image to the basic style above the text. Secondary and Default calls to action may be used.
Heading, sm
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue.<rh-card class="example-image-card">
<img src="../kitten-900x300.jpeg" slot="image" alt="adorable kitten">
<h4 slot="header">Heading, sm</h4>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue.
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-image-card {
width: 360px;
&::part(image) { order: 0; }
&::part(header) { order: 1; }
&::part(footer) { order: 2; }
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
List cards
Use to display a short amount of content using various list styles. Secondary and Default calls to action may be used.
- List text
- Linked list text
- List text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit
<rh-card class="example-card-list-flat">
<ul>
<li>List text</li>
<li><a href="#">Linked list text</a></li>
<li>List text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit</li>
</ul>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-card-list-flat {
width: 360px;
& ul {
display: flex;
flex-flow: column;
gap: var(--rh-space-lg);
margin: 0;
padding: 0;
list-style-type: none;
& h3 {
margin-block-end: var(--rh-space-lg);
}
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Flat list
- List text
- Linked list text
- List text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit
<rh-card class="example-card-list-with-dividers">
<ul>
<li>List text</li>
<li><a href="#">Linked list text</a></li>
<li>List text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit</li>
</ul>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-card-list-with-dividers {
width: 360px;
& ul {
display: flex;
flex-flow: column;
gap: var(--rh-space-lg);
margin: 0;
padding: 0;
list-style-type: none;
& li {
margin-block: 0;
padding-block: var(--rh-space-lg);
border-block-end: 1px solid var(--rh-color-border-subtle);
&:last-child {
padding-block-end: 0;
border-block-end: none;
}
}
}
& h3 {
margin-block-end: var(--rh-space-lg);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
List with dividers
- Ordered list text
- Linked ordered list text
- Ordered List text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit
<rh-card class="example-card-ordered-list">
<ol>
<li>Ordered list text</li>
<li><a href="#">Linked ordered list text</a></li>
<li>Ordered List text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit</li>
</ol>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-card-ordered-list {
width: 360px;
& ol {
padding-inline-start: var(--rh-space-lg);
& li {
margin-block-end: var(--rh-space-lg);
&:last-child {
margin-block-end: 0;
}
}
}
& h3 {
margin-block-end: var(--rh-space-lg);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Ordered list
- Unordered list text
- Linked unordered list text
- Unordered list text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit
<rh-card class="example-card-unordered-list">
<ul>
<li>Unordered list text</li>
<li><a href="#">Linked unordered list text</a></li>
<li>Unordered list text two lines Lorem ipsum dolor sit amet, consectetur adipiscing elit nulla vitae elit</li>
</ul>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-card-unordered-list {
width: 360px;
& ul {
padding-inline-start: var(--rh-space-lg);
& li {
margin-block-end: var(--rh-space-lg);
&:last-child {
margin-block-end: 0;
}
}
}
& h3 {
margin-block-end: var(--rh-space-lg);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Unordered list
Logo cards
Use to display a customer logo in a variety of arrangements. A call to action is required, otherwise use a logo wall.
<rh-card class="example-logo-cta">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613 145" height="32" width="135" role="img">
<title>Red Hat</title>
<path fill="#e00" d="M127.47 83.49c12.51 0 30.61-2.58 30.61-17.46a14 14 0 0 0-.31-3.42l-7.45-32.36c-1.72-7.12-3.23-10.35-15.73-16.6C124.89 8.69 103.76.5 97.51.5 91.69.5 90 8 83.06 8c-6.68 0-11.64-5.6-17.89-5.6-6 0-9.91 4.09-12.93 12.5 0 0-8.41 23.72-9.49 27.16a6.43 6.43 0 0 0-.22 1.94c0 9.22 36.3 39.45 84.94 39.45M160 72.07c1.73 8.19 1.73 9.05 1.73 10.13 0 14-15.74 21.77-36.43 21.77-46.76.03-87.72-27.37-87.72-45.48a18.45 18.45 0 0 1 1.51-7.33C22.27 52 .5 55 .5 74.22c0 31.48 74.59 70.28 133.65 70.28 45.28 0 56.7-20.48 56.7-36.65 0-12.72-11-27.16-30.83-35.78"></path>
<path d="M160 72.07c1.73 8.19 1.73 9.05 1.73 10.13 0 14-15.74 21.77-36.43 21.77-46.76.03-87.72-27.37-87.72-45.48a18.45 18.45 0 0 1 1.51-7.33l3.66-9.06a6.43 6.43 0 0 0-.22 1.9c0 9.22 36.3 39.45 84.94 39.45 12.51 0 30.61-2.58 30.61-17.46a14 14 0 0 0-.31-3.42Z"></path>
<path id="logo-type" fill="currentColor" d="M579.74 92.8c0 11.89 7.15 17.67 20.19 17.67a52.11 52.11 0 0 0 11.89-1.68V95a24.84 24.84 0 0 1-7.68 1.16c-5.37 0-7.36-1.68-7.36-6.73V68.3h15.56V54.1h-15.56v-18l-17 3.68V54.1h-11.29v14.2h11.25Zm-53 .32c0-3.68 3.69-5.47 9.26-5.47a43.12 43.12 0 0 1 10.1 1.26v7.15a21.51 21.51 0 0 1-10.63 2.63c-5.46 0-8.73-2.1-8.73-5.57m5.2 17.56c6 0 10.84-1.26 15.36-4.31v3.37h16.82V74.08c0-13.56-9.14-21-24.39-21-8.52 0-16.94 2-26 6.1l6.1 12.52c6.52-2.74 12-4.42 16.83-4.42 7 0 10.62 2.73 10.62 8.31v2.73a49.53 49.53 0 0 0-12.62-1.58c-14.31 0-22.93 6-22.93 16.73 0 9.78 7.78 17.24 20.19 17.24m-92.44-.94h18.09V80.92h30.29v28.82H506V36.12h-18.07v28.29h-30.29V36.12h-18.09Zm-68.86-27.9c0-8 6.31-14.1 14.62-14.1A17.22 17.22 0 0 1 397 72.09v19.45A16.36 16.36 0 0 1 385.24 96c-8.2 0-14.62-6.1-14.62-14.09m26.61 27.87h16.83V32.44l-17 3.68v20.93a28.3 28.3 0 0 0-14.2-3.68c-16.19 0-28.92 12.51-28.92 28.5a28.25 28.25 0 0 0 28.4 28.6 25.12 25.12 0 0 0 14.93-4.83ZM320 67c5.36 0 9.88 3.47 11.67 8.83h-23.2C310.15 70.3 314.36 67 320 67m-28.67 15c0 16.2 13.25 28.82 30.28 28.82 9.36 0 16.2-2.53 23.25-8.42l-11.26-10c-2.63 2.74-6.52 4.21-11.14 4.21a14.39 14.39 0 0 1-13.68-8.83h39.65v-4.23c0-17.67-11.88-30.39-28.08-30.39a28.57 28.57 0 0 0-29 28.81M262 51.58c6 0 9.36 3.78 9.36 8.31S268 68.2 262 68.2h-17.89V51.58Zm-36 58.16h18.09V82.92h13.77l13.89 26.82H292l-16.2-29.45a22.27 22.27 0 0 0 13.88-20.72c0-13.25-10.41-23.45-26-23.45H226Z"></path>
</svg>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-logo-cta {
width: 360px;
&::part(container) {
align-items: center;
}
& svg {
color: var(--rh-color-text-primary);
}
& h3 {
margin-block-end: var(--rh-space-lg, 16px);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
CTA only
Text and CTA
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a sollicitudin mauris tincidunt. Pellentesque vel dapibus risus.
<rh-card class="example-logo-text-and-cta">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613 145" height="32" width="135" role="img">
<title>Red Hat</title>
<path fill="#e00" d="M127.47 83.49c12.51 0 30.61-2.58 30.61-17.46a14 14 0 0 0-.31-3.42l-7.45-32.36c-1.72-7.12-3.23-10.35-15.73-16.6C124.89 8.69 103.76.5 97.51.5 91.69.5 90 8 83.06 8c-6.68 0-11.64-5.6-17.89-5.6-6 0-9.91 4.09-12.93 12.5 0 0-8.41 23.72-9.49 27.16a6.43 6.43 0 0 0-.22 1.94c0 9.22 36.3 39.45 84.94 39.45M160 72.07c1.73 8.19 1.73 9.05 1.73 10.13 0 14-15.74 21.77-36.43 21.77-46.76.03-87.72-27.37-87.72-45.48a18.45 18.45 0 0 1 1.51-7.33C22.27 52 .5 55 .5 74.22c0 31.48 74.59 70.28 133.65 70.28 45.28 0 56.7-20.48 56.7-36.65 0-12.72-11-27.16-30.83-35.78"></path>
<path d="M160 72.07c1.73 8.19 1.73 9.05 1.73 10.13 0 14-15.74 21.77-36.43 21.77-46.76.03-87.72-27.37-87.72-45.48a18.45 18.45 0 0 1 1.51-7.33l3.66-9.06a6.43 6.43 0 0 0-.22 1.9c0 9.22 36.3 39.45 84.94 39.45 12.51 0 30.61-2.58 30.61-17.46a14 14 0 0 0-.31-3.42Z"></path>
<path id="logo-type" fill="currentColor" d="M579.74 92.8c0 11.89 7.15 17.67 20.19 17.67a52.11 52.11 0 0 0 11.89-1.68V95a24.84 24.84 0 0 1-7.68 1.16c-5.37 0-7.36-1.68-7.36-6.73V68.3h15.56V54.1h-15.56v-18l-17 3.68V54.1h-11.29v14.2h11.25Zm-53 .32c0-3.68 3.69-5.47 9.26-5.47a43.12 43.12 0 0 1 10.1 1.26v7.15a21.51 21.51 0 0 1-10.63 2.63c-5.46 0-8.73-2.1-8.73-5.57m5.2 17.56c6 0 10.84-1.26 15.36-4.31v3.37h16.82V74.08c0-13.56-9.14-21-24.39-21-8.52 0-16.94 2-26 6.1l6.1 12.52c6.52-2.74 12-4.42 16.83-4.42 7 0 10.62 2.73 10.62 8.31v2.73a49.53 49.53 0 0 0-12.62-1.58c-14.31 0-22.93 6-22.93 16.73 0 9.78 7.78 17.24 20.19 17.24m-92.44-.94h18.09V80.92h30.29v28.82H506V36.12h-18.07v28.29h-30.29V36.12h-18.09Zm-68.86-27.9c0-8 6.31-14.1 14.62-14.1A17.22 17.22 0 0 1 397 72.09v19.45A16.36 16.36 0 0 1 385.24 96c-8.2 0-14.62-6.1-14.62-14.09m26.61 27.87h16.83V32.44l-17 3.68v20.93a28.3 28.3 0 0 0-14.2-3.68c-16.19 0-28.92 12.51-28.92 28.5a28.25 28.25 0 0 0 28.4 28.6 25.12 25.12 0 0 0 14.93-4.83ZM320 67c5.36 0 9.88 3.47 11.67 8.83h-23.2C310.15 70.3 314.36 67 320 67m-28.67 15c0 16.2 13.25 28.82 30.28 28.82 9.36 0 16.2-2.53 23.25-8.42l-11.26-10c-2.63 2.74-6.52 4.21-11.14 4.21a14.39 14.39 0 0 1-13.68-8.83h39.65v-4.23c0-17.67-11.88-30.39-28.08-30.39a28.57 28.57 0 0 0-29 28.81M262 51.58c6 0 9.36 3.78 9.36 8.31S268 68.2 262 68.2h-17.89V51.58Zm-36 58.16h18.09V82.92h13.77l13.89 26.82H292l-16.2-29.45a22.27 22.27 0 0 0 13.88-20.72c0-13.25-10.41-23.45-26-23.45H226Z"></path>
</svg>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a sollicitudin mauris tincidunt. Pellentesque vel dapibus risus.</p>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-logo-text-and-cta {
width: 360px;
& svg {
color: var(--rh-color-text-primary);
}
& h3 {
margin-block-end: var(--rh-space-lg, 16px);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Title bar card
Use to add a small icon and a label group to the header section. A larger icon or a logo may be used.
Alternative title bar styles can be achieved by selecting card's 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.header
CSS Shadow Part.
Card title
Copy to Clipboard
Copied!
Toggle line wrap
<rh-card class="example-title-bar-card">
<h4 slot="header">Card title</h4>
<p>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.</p>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-title-bar-card {
width: 360px;
--rh-card-header-background-on-light: var(--rh-color-surface-light);
--rh-card-header-background-on-dark: var(--rh-color-surface-dark);
&::part(header) {
margin: 0;
padding: var(--rh-space-lg) var(--rh-space-2xl);
flex-direction: row;
gap: var(--rh-space-lg);
font-weight: var(--rh-font-weight-heading-regular);
font-size: var(--rh-font-size-body-text-md);
font-family: var(--rh-font-family-body-text);
text-transform: uppercase; /* deprecated? */
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Quote cards
Use to display a short quote with attribution text. Logos, images, and a Secondary call to action may be used or not.
In open source, we feel strongly that to really do something well, you have to get a lot of people involved.
Linus Torvalds Software Engineer<rh-card class="example-quote">
<rh-blockquote>
<p>In open source, we feel strongly that to really do something well, you have to get a lot of people involved.</p>
<span slot="author">Linus Torvalds</span>
<span slot="title">Software Engineer</span>
</rh-blockquote>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-quote {
width: 360px;
& h3 {
margin-block-end: var(--rh-space-lg, 16px);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Basic
Inclusivity, open exchange of ideas, and collaboration are the foundations of innovative design and are essential to creating a Red Hat branded experience.
Jessica Cox Senior Director, Design, Brand + Creative<rh-card class="example-logo-and-quote">
<svg slot="header" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 613 145" height="32" width="135" role="img">
<title>Red Hat</title>
<path fill="#e00" d="M127.47 83.49c12.51 0 30.61-2.58 30.61-17.46a14 14 0 0 0-.31-3.42l-7.45-32.36c-1.72-7.12-3.23-10.35-15.73-16.6C124.89 8.69 103.76.5 97.51.5 91.69.5 90 8 83.06 8c-6.68 0-11.64-5.6-17.89-5.6-6 0-9.91 4.09-12.93 12.5 0 0-8.41 23.72-9.49 27.16a6.43 6.43 0 0 0-.22 1.94c0 9.22 36.3 39.45 84.94 39.45M160 72.07c1.73 8.19 1.73 9.05 1.73 10.13 0 14-15.74 21.77-36.43 21.77-46.76.03-87.72-27.37-87.72-45.48a18.45 18.45 0 0 1 1.51-7.33C22.27 52 .5 55 .5 74.22c0 31.48 74.59 70.28 133.65 70.28 45.28 0 56.7-20.48 56.7-36.65 0-12.72-11-27.16-30.83-35.78"></path>
<path d="M160 72.07c1.73 8.19 1.73 9.05 1.73 10.13 0 14-15.74 21.77-36.43 21.77-46.76.03-87.72-27.37-87.72-45.48a18.45 18.45 0 0 1 1.51-7.33l3.66-9.06a6.43 6.43 0 0 0-.22 1.9c0 9.22 36.3 39.45 84.94 39.45 12.51 0 30.61-2.58 30.61-17.46a14 14 0 0 0-.31-3.42Z"></path>
<path id="logo-type" fill="currentColor" d="M579.74 92.8c0 11.89 7.15 17.67 20.19 17.67a52.11 52.11 0 0 0 11.89-1.68V95a24.84 24.84 0 0 1-7.68 1.16c-5.37 0-7.36-1.68-7.36-6.73V68.3h15.56V54.1h-15.56v-18l-17 3.68V54.1h-11.29v14.2h11.25Zm-53 .32c0-3.68 3.69-5.47 9.26-5.47a43.12 43.12 0 0 1 10.1 1.26v7.15a21.51 21.51 0 0 1-10.63 2.63c-5.46 0-8.73-2.1-8.73-5.57m5.2 17.56c6 0 10.84-1.26 15.36-4.31v3.37h16.82V74.08c0-13.56-9.14-21-24.39-21-8.52 0-16.94 2-26 6.1l6.1 12.52c6.52-2.74 12-4.42 16.83-4.42 7 0 10.62 2.73 10.62 8.31v2.73a49.53 49.53 0 0 0-12.62-1.58c-14.31 0-22.93 6-22.93 16.73 0 9.78 7.78 17.24 20.19 17.24m-92.44-.94h18.09V80.92h30.29v28.82H506V36.12h-18.07v28.29h-30.29V36.12h-18.09Zm-68.86-27.9c0-8 6.31-14.1 14.62-14.1A17.22 17.22 0 0 1 397 72.09v19.45A16.36 16.36 0 0 1 385.24 96c-8.2 0-14.62-6.1-14.62-14.09m26.61 27.87h16.83V32.44l-17 3.68v20.93a28.3 28.3 0 0 0-14.2-3.68c-16.19 0-28.92 12.51-28.92 28.5a28.25 28.25 0 0 0 28.4 28.6 25.12 25.12 0 0 0 14.93-4.83ZM320 67c5.36 0 9.88 3.47 11.67 8.83h-23.2C310.15 70.3 314.36 67 320 67m-28.67 15c0 16.2 13.25 28.82 30.28 28.82 9.36 0 16.2-2.53 23.25-8.42l-11.26-10c-2.63 2.74-6.52 4.21-11.14 4.21a14.39 14.39 0 0 1-13.68-8.83h39.65v-4.23c0-17.67-11.88-30.39-28.08-30.39a28.57 28.57 0 0 0-29 28.81M262 51.58c6 0 9.36 3.78 9.36 8.31S268 68.2 262 68.2h-17.89V51.58Zm-36 58.16h18.09V82.92h13.77l13.89 26.82H292l-16.2-29.45a22.27 22.27 0 0 0 13.88-20.72c0-13.25-10.41-23.45-26-23.45H226Z"></path>
</svg>
<rh-blockquote>
<p>Inclusivity, open exchange of ideas, and collaboration are the foundations of innovative design and are essential to creating a Red Hat branded experience.</p>
<span slot="author">Jessica Cox</span>
<span slot="title">Senior Director, Design, Brand + Creative</span>
</rh-blockquote>
<rh-cta slot="footer" href="#">Call to action</rh-cta>
</rh-card>
Copy to Clipboard
Copied!
Toggle line wrap
.example-logo-and-quote {
width: 360px;
& h3 {
margin-block-end: var(--rh-space-lg, 16px);
}
& svg {
color: var(--logo-type-fill, var(--rh-color-black, #000));
}
[color-palette^="dark"] &,
&[color-palette^="dark"] {
--logo-type-fill: var(--rh-color-white, #fff);
}
}
Copy to Clipboard
Copied!
Toggle line wrap
Copy to Clipboard
Copied!
Toggle line wrap
Logo and quote
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.
Other libraries
To learn more about our other libraries, visit the getting started page.