IBgColorProps

interface
Color & Intent

Background-only color contract — extended by components that own a surface (Btn, Card, Badge, Alert…). Kept orthogonal to IColorProps so a component can opt into one axis independently.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

bgColor
TColor
Background (surface) color — an intent name, raw CSS color, gradient string or structured gradient object.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Extending the interface on a surface component

typescript