Skip to main content Home About the Design SystemRoadmap OverviewDesignersDevelopers OverviewColorGridIconographyInteractionsSpacingTypography Overview Global colorBox shadowTypographyBorderOpacitySpaceLengthIconBreakpointsMedia queries All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Menu dropdown Navigation link Navigation (primary) Navigation (secondary) Navigation (vertical) Pagination PopoverPlanned Progress stepper Scheme toggle Site status Skeleton Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed OverviewColor PalettesCustomizingDevelopers All PatternsAccordionCall to ActionCardFilterFormLink with iconLogo wallSearch barSticky bannerSticky cardTabsTagTile All Personalization PatternsAnnouncement FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers Design/code status Release notes Get support

Health index

OverviewStyleGuidelinesCodeAccessibilityDemos
ImportingUsagerh-health-indexImportingUsagerh-health-index

Importing

Add rh-health-index to your page with this import statement:

<script type="module">
  import '@rhds/elements/rh-health-index/rh-health-index.js';
</script>
Copy to Clipboard Wrap lines

To learn more about installing RHDS elements on your site using an import map read our getting started docs.

Usage

<rh-health-index grade="C"
                 size="lg">C</rh-health-index>

<script type="module">
  import '@rhds/elements/rh-health-index/rh-health-index.js';
</script>
Copy to Clipboard Wrap lines

rh-health-index

Health index displays a health grade (A–F) for a particular item or package.

Slots 0

None

Attributes 2

Attribute DOM Property Description Type Default
size size

Sets the size of the health index Defaults to md

'sm' | 'md' | 'lg' | 'xl'
'md'
grade grade

Sets the health grade Defaults to A

'A' | 'B' | 'C' | 'D' | 'E' | 'F'
'A'

Methods 0

None

Events 0

None

CSS Shadow Parts 0

None

CSS Custom Properties 0

None

Design Tokens 24

Token Description Copy
--rh-space-lg

16px spacer

Full CSS Variable Permalink to this token
--rh-color-surface-status-success
Full CSS Variable Permalink to this token
--rh-color-status-success
Full CSS Variable Permalink to this token
--rh-color-surface-status-warning
Full CSS Variable Permalink to this token
--rh-color-status-warning
Full CSS Variable Permalink to this token
--rh-color-surface-status-caution
Full CSS Variable Permalink to this token
--rh-color-status-caution
Full CSS Variable Permalink to this token
--rh-color-surface-status-danger
Full CSS Variable Permalink to this token
--rh-color-status-danger
Full CSS Variable Permalink to this token
--rh-space-xl

24px spacer

Full CSS Variable Permalink to this token
--rh-space-2xl

32px spacer

Full CSS Variable Permalink to this token
--rh-font-size-body-text-xl

20px font size

Full CSS Variable Permalink to this token
--rh-font-size-body-text-md

16px font size

Full CSS Variable Permalink to this token
--rh-font-family-code

Code font family

Full CSS Variable Permalink to this token
--rh-color-border-subtle
Full CSS Variable Permalink to this token
--rh-color-surface-dark

Tertiary surface (dark theme)

Full CSS Variable Permalink to this token
--rh-color-border-subtle-on-light

Subtle border color (light theme)

Full CSS Variable Permalink to this token
--rh-color-icon-subtle
Full CSS Variable Permalink to this token
--rh-color-surface-lightest

Primary surface (light theme)

Full CSS Variable Permalink to this token
--rh-length-xs

4px length token

Full CSS Variable Permalink to this token
--rh-font-weight-code-medium

Medium font weight

Full CSS Variable Permalink to this token
--rh-color-text-primary
Full CSS Variable Permalink to this token
--rh-color-surface-darkest

Primary surface (dark theme)

Full CSS Variable Permalink to this token
--rh-border-width-sm

1px border width; Example: Secondary CTA or Button

Full CSS Variable Permalink to this token
© 2026 Red Hat Deploys by Netlify