Skip to content

Core Concepts

LCARdS cards are driven by a set of shared singleton services. Understanding these systems lets you build reactive, animated, and context-aware dashboards far beyond what static YAML can produce.

ConceptDescription
Alert ModeCoordinated dashboard-wide red/yellow alert states with full UI and audio transformation
PresetsNamed style collections — apply a full card appearance in one line
StylesThe style: block — card background, border, icon, and dimension overrides
ColoursAccepted colour formats and state-based colour maps
Text FieldsLabel and value field templating reference
ActionsTap, hold, and double-tap actions wired to any HA service call
SoundsEvent-driven audio feedback via the Sound Manager

Systems

SystemDescription
TemplatesFour template types — JavaScript, token, DataSource, and Jinja2 — evaluated uniformly across all properties
Data SourcesLive entity subscriptions, polling, history buffers, and transformations
Rules EngineConditional styling engine — change colours, icons, labels, and trigger animations based on entity state
ThemesToken-based colour palette shared across all cards
Animationsanime.js-powered animations triggered by interactions or entity changes
FiltersStackable CSS and SVG visual filters — blur, brightness, colour shift, displacement
Background AnimationsCanvas2D animated backgrounds behind card content