Components
Card
Flexible content containers with header, body, and footer.
Stable
CSS only
Basic card
Use .bima-card with .bima-card__body for the simplest card.
Policy overview
Life insurance plan — Silver tier. Monthly premium of $45.00 auto-collected on the 15th.
<div class="bima-card">
<div class="bima-card__body">
<h5>Policy overview</h5>
<p>Life insurance plan — Silver tier.</p>
<button class="bima-btn bima-btn--primary bima-btn--sm">View details</button>
</div>
</div>Card with header and footer
POL-2024-0081
Active
Insured: Ahmad Bin Rashid
Coverage: $100,000
Renewal: Jan 15, 2025
<div class="bima-card">
<div class="bima-card__header">
<strong>POL-2024-0081</strong>
<span class="bima-badge bima-badge--success">Active</span>
</div>
<div class="bima-card__body">
<p><strong>Insured:</strong> Ahmad Bin Rashid</p>
<p><strong>Coverage:</strong> $100,000</p>
</div>
<div class="bima-card__footer">
<button class="bima-btn bima-btn--ghost bima-btn--sm">Edit</button>
<button class="bima-btn bima-btn--primary bima-btn--sm">Download</button>
</div>
</div>Navy card variant
Use .bima-card--navy for dark brand-coloured cards, great for hero sections or highlights.
Total coverage
$250,000
Across 3 active policies
<div class="bima-card bima-card--navy">
<div class="bima-card__body">
<div>Total coverage</div>
<div>$250,000</div>
<div>Across 3 active policies</div>
</div>
</div>Interactive card
Use .bima-card--interactive to make the entire card clickable with hover/focus states.
<a href="/policies/life" class="bima-card bima-card--interactive">
<div class="bima-card__body">
<strong>Life Insurance</strong>
<p>Click this entire card to navigate.</p>
</div>
</a>KPI card
Use .bima-kpi for metric/KPI display cards in dashboards.
Active policies
1,284
+12% vs last month
Claims filed
48
-3% vs last month
Premium collected
$57,840
+8.2% vs last month
Lapse rate
2.4%
No change
<div class="bima-kpi"> <div class="bima-kpi__label">Active policies</div> <div class="bima-kpi__value">1,284</div> <div class="bima-kpi__change bima-kpi__change--up">+12% vs last month</div> </div> <!-- Change variants --> <div class="bima-kpi__change bima-kpi__change--up">+12%</div> <div class="bima-kpi__change bima-kpi__change--down">-3%</div> <div class="bima-kpi__change bima-kpi__change--neutral">No change</div>
Card grid layout
Use .bima-row to create responsive card grids.
<div class="bima-row bima-g-4">
<div class="bima-col-12 bima-col-md-6 bima-col-lg-4">
<div class="bima-card">...</div>
</div>
<div class="bima-col-12 bima-col-md-6 bima-col-lg-4">
<div class="bima-card">...</div>
</div>
<div class="bima-col-12 bima-col-md-6 bima-col-lg-4">
<div class="bima-card">...</div>
</div>
</div>