Primitive

ShadowedCard

Auto-emitted from DSKintsugiCatalog.shadowedcard. Tier atom.

Live Preview
elevation: .default · paper bg, subtle shadow, line border, 12px radius
Image
Portfolio Risk Overview
Consolidates cross-asset exposure across equity, fixed income, and alternatives into a single normalised view.
M1 Risk UCITS IV Active
elevation: .elevated · deeper shadow, gold-warm hairline top border
Image
Indicators Daily Feed
Live stream of macro indicators refreshed each trading session — CPI, PPI, PMI, yield curves and FX pairs.
Live Beta
elevation: .flat · no shadow, strong line border only
Image
Fund Screener
Filter and rank funds by AUM, Sharpe ratio, drawdown, and custom ESG criteria. Exportable as CSV or XLSX.
FundsScreener M2 Analytics
Native · macOS
macOS SwiftUI render of ShadowedCard
DSL usage
// Composes Section + Image + Heading + Paragraph + Badge atoms.

// Default elevation — standard white card with subtle shadow
ShadowedCard(elevation: .default) {
    Image(source: "thumbnail.jpg", alt: "Portfolio snapshot")
    Heading(level: 3) { "Portfolio Risk Overview" }
    Paragraph { "Consolidates cross-asset exposure…" }
    HStack {
        Badge(text: "M1 Risk", style: .info)
        Badge(text: "UCITS IV", style: .neutral)
        Badge(text: "Active", style: .success)
    }
}

// Elevated — deeper shadow + gold-warm hairline top border
ShadowedCard(elevation: .elevated) {
    Image(source: "indicators.jpg", alt: "Daily indicators")
    Heading(level: 3) { "Indicators Daily Feed" }
    Paragraph { "Live stream of macro indicators…" }
    HStack {
        Badge(text: "Live",  style: .success)
        Badge(text: "Beta",  style: .warning)
    }
}

// Flat — no shadow, strong border only
ShadowedCard(elevation: .flat) {
    Image(source: "screener.jpg", alt: "Fund screener")
    Heading(level: 3) { "Fund Screener" }
    Paragraph { "Filter and rank funds by AUM, Sharpe ratio…" }
    HStack {
        Badge(text: "FundsScreener", style: .neutral)
        Badge(text: "M2 Analytics",  style: .neutral)
    }
}

// Full signature
ShadowedCard(
    elevation: .flat | .default | .elevated | .floating,
    radius:    12,
    padding:   EdgeInsets(top: 24, leading: 24, bottom: 24, trailing: 24),
    tint:      SemanticColor? // optional overlay tint
) { /* children */ }
Attributes
NameTypeDefaultDescription
elevation CardElevation .default .flat | .default | .elevated | .floating — controls shadow depth
radius CGFloat 12 Corner radius in points (brandbook default 12)
padding EdgeInsets 24pt all Inner padding — brandbook default 24pt on all sides
tint SemanticColor? nil Optional semantic tint applied as a translucent overlay
density Density regular compact | regular | expanded
locale Locale en BCP-47 locale tag for locale-aware rendering
Used in
sigma-analytics c-tech KatagamiScreens