SOLAR // STUDIOUI
Card
Feature card with a blob-shaped icon background in yellow, coral, or sky, a category tag, title, and description.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Card card={{
icon: "☀️",
tag: "Growth",
tagVariant: "yellow",
title: "Revenue analytics",
description: "Track MRR, churn, and expansion revenue.",
}} />Variants
<Card card={{ icon: "☀️", tag: "Growth", tagVariant: "yellow", title: "Revenue analytics", description: "Track MRR and expansion revenue." }} /><Card card={{ icon: "🌊", tag: "Retention", tagVariant: "coral", title: "Churn reduction", description: "Identify at-risk customers early." }} /><Card card={{ icon: "🌤", tag: "Insights", tagVariant: "sky", title: "Usage reports", description: "Understand how your product is used." }} />Source
TSX
import { cn } from '@/lib/utils'
import type { CardItem } from '@/types'
interface CardProps {
card: CardItem
className?: string
}
const BLOB_CLASS: Record<string, string> = {
yellow: 'card-icon-blob blob-yellow',
coral: 'card-icon-blob blob-coral',
sky: 'card-icon-blob blob-sky',
}
const TAG_CLASS: Record<string, string> = {
yellow: 'card-tag card-tag--yellow',
coral: 'card-tag card-tag--coral',
sky: 'card-tag card-tag--sky',
}
export function Card({ card, className }: CardProps): React.JSX.Element {
const blobClass = BLOB_CLASS[card.tagVariant] ?? 'card-icon-blob blob-yellow'
const tagClass = TAG_CLASS[card.tagVariant] ?? 'card-tag card-tag--yellow'
return (
<div className={cn('solar-card', className)}>
<span className={blobClass}>{card.icon}</span>
<span className={tagClass}>{card.tag}</span>
<h3 className="card-title">{card.title}</h3>
<p className="card-description">{card.description}</p>
</div>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from SOLAR // STUDIO
Button
Warm-toned light-mode button with primary, secondary, and ghost variants in three sizes. Renders as a Next.js Link when an href is provided.
Badge
Warm-palette badge for category tags and status labels in the SOLAR light theme.
Text
Polymorphic text primitive with body, caption, label, and code variants styled for the SOLAR warm light palette.