Import
import { Logo } from "@timelycare/helix-ui"
Props
interface LogoProps {
variant?: "default" | "black" | "white-teal" | "white"
width?: number
height?: number
className?: string
alt?: string
}
Variants
| Variant | Use Case | Background |
|---|---|---|
default | Primary usage across light surfaces, marketing, and product UI | Light / white |
black | Print, monochrome contexts, or when color is unavailable | Light / white |
white-teal | Dark surfaces where brand color contrast is still needed | Dark / navy |
white | Fully inverted surfaces, footers, dark headers | Dark / navy |
Choosing a Variant
- Default: Use in most contexts — headers, loading screens, onboarding, email. Always prefer this when the background is white or light gray.
- Black: Reach for this in monochrome print materials, PDF exports, or when the product environment strips color.
- White-teal: Use on dark navy backgrounds where the teal wordmark still adds brand character.
- White: Use when the logo must be fully single-color white, such as on dark photography, solid brand-color backgrounds, or when a fully reversed treatment is needed.
Sizing
The default dimensions (width=163, height=59) match the SVG's native viewBox (163.59 × 58.57). Always supply both width and height together to preserve the aspect ratio (~2.79:1).
| Use Case | Suggested Width |
|---|---|
| App header / navbar | 120 – 160 |
| Marketing hero | 200 – 280 |
| Favicon / small badge | Avoid — use the icon mark only |
| Footer | 100 – 140 |
Common Patterns
Header logo
<header className="flex items-center px-6 py-4 bg-background">
<Logo variant="default" width={140} height={50} />
</header>
Dark nav / sidebar
<nav className="bg-[#17385b] px-6 py-4">
<Logo variant="white" width={120} height={43} />
</nav>
White-teal on a dark surface
<div className="bg-navy-700 p-8">
<Logo variant="white-teal" width={163} height={59} />
</div>
Custom alt text (e.g. within a link)
<a href="/">
<Logo variant="default" width={140} height={50} alt="TimelyCare — go to homepage" />
</a>
Accessibility
- Always provide a descriptive
altprop. The default is"TimelyCare", which is sufficient for most uses. - When the logo is inside a link, make
altmore descriptive:"TimelyCare — go to homepage". - Never set
alt=""on the logo — it conveys brand identity and should always be announced to screen readers. - Do not use the logo as a decorative element; if you must suppress it, wrap in a container with
aria-hidden="true"at the parent level and leavealtintact.
Gotchas
| Problem | Solution |
|---|---|
| Logo appears blurry at small sizes | Only use provided SVG variants — never raster exports. The <Logo> component serves SVGs by default. |
| Logo invisible on light background | Check your variant. white and white-teal are only legible on dark backgrounds. |
| Stretched or distorted logo | Always provide width and height together at a 2.79:1 ratio, or let one dimension be derived by CSS. |
| Wrong color logo in print | Use the black variant for all print/PDF contexts. |
Last updated: March 20, 2026