import { Card } from '@uhg-abyss/web/ui/Card';Usage
V1 replication
If teams previously used Card.Header and Card.Section, a similar look can be created with css overrides.
Custom examples
Customize a card by adding components inside the base. Any CSS styles can be added using the abyss-card-root class.
Default padding within the Card is 16px. This can be overridden, as can the width, etc.
Headings are commonly used within the Card. The following examples are accessible and have passed Evinced WFA testing.
Component Tokens
Tip
Click on the token row to copy the token to your clipboard.
Card Tokens
| Token Name | Value | |
|---|---|---|
| card-base.color.border.container | #CBCCCD | |
| card-base.color.surface.container | #FFFFFF | |
| card-base.border-radius.all.container | 8px | |
| card-base.border-width.all.container | 1px | |
| card-base.spacing.padding.all.container | 16px | |
| card-base.elevation.container | 0px 2px 4px -2px rgba(0,0,0,0.16) |