{"$schema":"http://json-schema.org/draft-07/schema#","$comment":"LCARdS 2026.12.1-dev.1: generated from src/cards/schemas/ by scripts/generate-llm-schema.js; do not hand-edit.","title":"LCARdS Button Card Configuration","description":"Complete configuration schema for lcards-button custom card","type":"object","properties":{"rules":{"$ref":"../shared/rules.json"},"sounds":{"type":"object","description":"Per-card sound configuration. Overrides global sound settings for this card.","properties":{"enabled":{"type":"boolean","description":"Whether this card fires sounds. Set to false to completely silence this card. Default: true (omit to keep default)."},"card_tap":{"type":["string","null"],"description":"Asset key for card tap, or null to mute. Omit to use global scheme."},"card_hold":{"type":["string","null"],"description":"Asset key for card hold, or null to mute. Omit to use global scheme."},"card_double_tap":{"type":["string","null"],"description":"Asset key for card double-tap, or null to mute. Omit to use global scheme."},"card_hover":{"type":["string","null"],"description":"Asset key for card hover (desktop), or null to mute. Omit to use global scheme."},"slider_drag_start":{"type":["string","null"],"description":"Asset key for slider grab, or null to mute. Omit to use global scheme."},"slider_change":{"type":["string","null"],"description":"Asset key for slider value change, or null to mute. Omit to use global scheme."},"slider_drag_end":{"type":["string","null"],"description":"Asset key for slider release, or null to mute. Omit to use global scheme."},"toggle_on":{"type":["string","null"],"description":"Asset key for toggle-on, or null to mute. Omit to use global scheme."},"toggle_off":{"type":["string","null"],"description":"Asset key for toggle-off, or null to mute. Omit to use global scheme."}},"additionalProperties":false},"variables":{"type":"object","description":"Your own named values, available to templates as variables.<name> and {variables.<name>}.","additionalProperties":true},"zones":{"type":"object","description":"Named rectangles (px or *_percent of the card) that text fields and animations can target.","additionalProperties":{"type":"object","properties":{"x":{"type":"number","description":"Left edge, px from the card's left."},"y":{"type":"number","description":"Top edge, px from the card's top."},"width":{"type":"number","description":"Width, px."},"height":{"type":"number","description":"Height, px."},"x_percent":{"type":"number","description":"Left edge, percent of the card width."},"y_percent":{"type":"number","description":"Top edge, percent of the card height."},"width_percent":{"type":"number","description":"Width, percent of the card width."},"height_percent":{"type":"number","description":"Height, percent of the card height."}}}},"debug_zones":{"type":"boolean","description":"Outline every zone on the card (development aid)."},"type":{"type":"string","const":"custom:lcards-button","description":"Home Assistant card type identifier (required)"},"data_sources":{"type":"object","description":"Data sources for real-time entity tracking, historical data, and processing pipelines. Each key defines a named data source accessible in templates.","$comment":"Data sources enable entity subscriptions, history preload, and unified processing pipeline","examples":[{"temp":{"entity":"sensor.temperature","history":{"hours":6},"processing":{"fahrenheit":{"type":"convert_unit","from":"c","to":"f"},"smoothed":{"type":"smooth","input_source":"fahrenheit","method":"exponential","alpha":0.3},"rounded":{"type":"round","input_source":"smoothed","precision":1}}},"power":{"entity":"sensor.power","min_emit_ms":1000,"processing":{"kilowatts":{"type":"scale","input_range":[0,1000],"output_range":[0,1]}}}}],"additionalProperties":{"type":"object","properties":{"entity":{"type":"string","format":"entity","pattern":"^[a-z_]+\\.[a-z0-9_]+$","description":"Entity ID to track (format: domain.object_id)","examples":["sensor.temperature"]},"attribute":{"type":"string","description":"Entity attribute to track instead of state","examples":["temperature"]},"enum_mapping":{"type":"object","description":"Map non-numeric states to numbers so they can be plotted or processed (on/off map to 1/0 automatically)","additionalProperties":{"type":"number"},"examples":[{"heat":2,"cool":1,"idle":0}]},"periodic_update_interval":{"type":"number","minimum":100,"default":1000,"description":"With a duration processor, ms between the refreshes that keep the elapsed time counting."},"history":{"type":"object","description":"Historical data preload configuration","properties":{"enabled":{"type":"boolean","description":"Enable historical data preload (default: true)"},"hours":{"type":"number","minimum":1,"maximum":168,"description":"Hours of history to preload (1-168, default: 6)"},"days":{"type":"number","minimum":1,"maximum":7,"description":"Days of history to preload (1-7)"}}},"processing":{"type":"object","description":"Processing pipeline with named processors. Each processor transforms data and stores results in a buffer accessible via templates.","additionalProperties":{"type":"object","description":"A processor in the pipeline. type picks one of: convert_unit, scale, smooth, expression, statistics, rate, trend, duration, threshold, clamp, round, delta.","required":["type"],"discriminator":{"propertyName":"type"},"oneOf":[{"type":"object","title":"convert_unit","description":"Convert between units (temperature, power, energy, distance, speed, pressure, data).","required":["type","from","to"],"properties":{"type":{"type":"string","const":"convert_unit","description":"convert_unit: Convert between units (temperature, power, energy, distance, speed, pressure, data)."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"from":{"type":"string","description":"Source unit (e.g. c, f, w, kw). Not a chaining key: use input_source."},"to":{"type":"string","description":"Target unit."}}},{"type":"object","title":"scale","description":"Map a value from one range to another, with an optional curve.","required":["type"],"properties":{"type":{"type":"string","const":"scale","description":"scale: Map a value from one range to another, with an optional curve."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"input_range":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"[min, max] of the input (default [0, 100])."},"output_range":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"[min, max] of the output (default [0, 1])."},"curve":{"type":"string","enum":["linear","exponential","logarithmic","sigmoid"],"description":"Mapping curve (default linear)."}}},{"type":"object","title":"smooth","description":"Smooth out noise.","required":["type"],"properties":{"type":{"type":"string","const":"smooth","description":"smooth: Smooth out noise."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"method":{"type":"string","enum":["exponential","moving_average","gaussian"],"description":"Smoothing method (default exponential)."},"alpha":{"type":"number","minimum":0,"maximum":1,"description":"exponential: weight of the newest value, 0 to 1 (default 0.3)."},"window":{"type":"number","minimum":1,"description":"moving_average and gaussian: samples in the window (default 10)."}}},{"type":"object","title":"expression","description":"Compute a value with a JavaScript expression.","required":["type","expression"],"properties":{"type":{"type":"string","const":"expression","description":"expression: Compute a value with a JavaScript expression."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"expression":{"type":"string","description":"JavaScript expression using value/v, t, sources, entity and Math helpers."},"sources":{"type":"array","items":{"type":"string"},"description":"Processor names available as sources[0], sources[1], ..."}}},{"type":"object","title":"statistics","description":"Statistics over a time window.","required":["type"],"properties":{"type":{"type":"string","const":"statistics","description":"statistics: Statistics over a time window."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"stats":{"type":"array","items":{"type":"string","enum":["min","max","mean","avg","median","std_dev","stddev","q1","q3","range","count","sum"]},"description":"Which statistics: min, max, mean, median, std_dev, q1, q3, range, count, sum (avg and stddev are aliases)."},"window":{"type":["number","string"],"description":"Time window: seconds, a duration like \"5m\", or \"session\"."},"max_points":{"type":"number","minimum":1,"description":"Keep a time series of this many results."}}},{"type":"object","title":"rate","description":"Rate of change.","required":["type"],"properties":{"type":{"type":"string","const":"rate","description":"rate: Rate of change."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"unit":{"type":"string","enum":["per_second","per_minute","per_hour"],"description":"Time unit (default per_second)."},"smoothing":{"type":"boolean","description":"Smooth the rate."}}},{"type":"object","title":"trend","description":"Whether the value is rising, falling or stable.","required":["type"],"properties":{"type":{"type":"string","const":"trend","description":"trend: Whether the value is rising, falling or stable."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"samples":{"type":"number","minimum":2,"description":"Samples in the slope window (default 5)."},"threshold":{"type":"number","minimum":0,"description":"Slope below which the trend is stable."}}},{"type":"object","title":"duration","description":"How long a condition has held.","required":["type","condition"],"properties":{"type":{"type":"string","const":"duration","description":"duration: How long a condition has held."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"condition":{"type":"string","description":"Condition like \"> 20\" that starts the timer."},"reset_on":{"type":"string","description":"Condition that resets the timer."}}},{"type":"object","title":"threshold","description":"Switch between two outputs at a point.","required":["type","threshold"],"properties":{"type":{"type":"string","const":"threshold","description":"threshold: Switch between two outputs at a point."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"threshold":{"type":"number","description":"Switch point."},"above":{"description":"Output when above (default 1)."},"below":{"description":"Output when below (default 0)."},"hysteresis":{"type":"number","minimum":0,"description":"Dead band around the switch point."}}},{"type":"object","title":"clamp","description":"Keep the value within bounds.","required":["type"],"properties":{"type":{"type":"string","const":"clamp","description":"clamp: Keep the value within bounds."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"min":{"type":"number","description":"Lower bound."},"max":{"type":"number","description":"Upper bound."}}},{"type":"object","title":"round","description":"Round to a number of decimal places.","required":["type"],"properties":{"type":{"type":"string","const":"round","description":"round: Round to a number of decimal places."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"method":{"type":"string","enum":["round","floor","ceil"],"description":"Rounding method (default round)."},"precision":{"type":"number","minimum":0,"description":"Decimal places (default 0)."}}},{"type":"object","title":"delta","description":"Change since the previous value.","required":["type"],"properties":{"type":{"type":"string","const":"delta","description":"delta: Change since the previous value."},"input_source":{"type":"string","description":"Name of another processor in this pipeline whose output this one reads (creates a dependency chain). If omitted, uses the raw entity value.","examples":["fahrenheit"]},"enabled":{"type":"boolean","description":"Set false to pass values through unchanged (default true)"},"absolute":{"type":"boolean","description":"Report the absolute change."}}}]}},"window_seconds":{"type":["number","string"],"description":"Rolling buffer window: seconds, or a duration like \"5m\" or \"1h\". About 10 points per second are kept, at most 1,000 (default 60)","examples":[60]},"min_emit_ms":{"type":"number","minimum":10,"description":"Minimum ms between updates sent to cards (throttle, default 100)"},"coalesce_ms":{"type":"number","minimum":0,"description":"Window in ms for merging rapid changes into one update (default: 40% of min_emit_ms; below 20 counts as 20)"},"max_delay_ms":{"type":"number","minimum":0,"description":"Longest ms an update may be held back while merging (default: 3 x coalesce_ms; never less than min_emit_ms)"},"emit_on_same_value":{"type":"boolean","description":"Send updates even when the value did not change (default true)"}},"required":["entity"]}},"triggers_update":{"type":"array","items":{"type":"string","format":"entity","pattern":"^[a-z_]+\\.[a-z0-9_]+$","description":"Entity ID whose state change should trigger a re-render","examples":["sensor.temperature"]},"description":"Extra entity IDs to watch for state changes. When any listed entity changes, all templates on this card are re-evaluated. Use this for JavaScript templates ([[[...]]]) that reference entities LCARdS cannot detect automatically via static analysis.","examples":[["sensor.outdoor_temperature"]]},"entity":{"type":"string","format":"entity","pattern":"^[a-z_]+\\.[a-z0-9_]+$","description":"Home Assistant entity ID to control or monitor (format: domain.object_id)","examples":["light.living_room"]},"id":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","description":"Unique card identifier for rule targeting, animations, and debugging (alphanumeric, underscore, hyphen)","examples":["main-button"]},"tags":{"type":"array","items":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$"},"description":"LCARdS tags for rules: a rule on tag:<name> targets every card with the tag. Labels set in Home Assistant are separate; rules target those with ha_label:<label_id>.","examples":[["navigation","primary"]]},"height":{"oneOf":[{"type":"number","minimum":1,"description":"Card height in pixels (bare integer, e.g. 56 = 56px)"},{"type":"string","pattern":"^([\\d.]+(\\s*(px|vh|vw|%|em|rem|vmin|vmax))?|(calc|min|max|clamp|var)\\(.+\\))$","description":"Card height with CSS unit (e.g. 200px, 50vh, 10em) or a CSS function: calc(), min(), max(), clamp(), var()"}],"description":"Card height override. Bare integer = px (e.g. 200 = 200px). CSS units accepted: 200px, 50vh, 10em."},"width":{"oneOf":[{"type":"number","minimum":1,"description":"Card width in pixels (bare integer, e.g. 300 = 300px)"},{"type":"string","pattern":"^([\\d.]+(\\s*(px|vh|vw|%|em|rem|vmin|vmax))?|(calc|min|max|clamp|var)\\(.+\\))$","description":"Card width with CSS unit (e.g. 400px, 50vw, 10em) or a CSS function: calc(), min(), max(), clamp(), var()"}],"description":"Card width override. Bare integer = px (e.g. 400 = 400px). CSS units accepted: 400px, 50vw, 10em."},"min_height":{"oneOf":[{"type":"number","minimum":0,"description":"Minimum card height in pixels (bare integer, e.g. 40 = 40px)"},{"type":"string","pattern":"^([\\d.]+(\\s*(px|vh|vw|%|em|rem|vmin|vmax))?|(calc|min|max|clamp|var)\\(.+\\))$","description":"Minimum card height with CSS unit (e.g. 40px, 10vh)"}],"description":"Minimum card height floor. Overrides the --lcards-button-min-height CSS token. Bare integer = px."},"min_width":{"oneOf":[{"type":"number","minimum":0,"description":"Minimum card width in pixels (bare integer, e.g. 80 = 80px)"},{"type":"string","pattern":"^([\\d.]+(\\s*(px|vh|vw|%|em|rem|vmin|vmax))?|(calc|min|max|clamp|var)\\(.+\\))$","description":"Minimum card width with CSS unit (e.g. 80px, 10vw)"}],"description":"Minimum card width floor. Bare integer = px."},"max_height":{"oneOf":[{"type":"number","minimum":1,"description":"Maximum card height in pixels (bare integer, e.g. 400 = 400px)"},{"type":"string","pattern":"^([\\d.]+(\\s*(px|vh|vw|%|em|rem|vmin|vmax))?|(calc|min|max|clamp|var)\\(.+\\))$","description":"Maximum card height with CSS unit (e.g. 400px, 80vh, 20em)"}],"description":"Maximum card height ceiling. Bare integer = px (e.g. 400 = 400px). CSS units accepted: 400px, 80vh, 10em."},"max_width":{"oneOf":[{"type":"number","minimum":1,"description":"Maximum card width in pixels (bare integer, e.g. 600 = 600px)"},{"type":"string","pattern":"^([\\d.]+(\\s*(px|vh|vw|%|em|rem|vmin|vmax))?|(calc|min|max|clamp|var)\\(.+\\))$","description":"Maximum card width with CSS unit (e.g. 600px, 80vw, 20em)"}],"description":"Maximum card width ceiling. Bare integer = px (e.g. 600 = 600px). CSS units accepted: 600px, 80vw, 10em."},"overflow":{"type":"string","enum":["visible","hidden","clip","scroll","auto"],"description":"CSS overflow shorthand on the card host element (sets both axes unless overridden per-axis)."},"overflow_x":{"type":"string","enum":["visible","hidden","clip","scroll","auto"],"description":"CSS overflow-x on the card host element. Overrides the overflow shorthand for the horizontal axis."},"overflow_y":{"type":"string","enum":["visible","hidden","clip","scroll","auto"],"description":"CSS overflow-y on the card host element. Overrides the overflow shorthand for the vertical axis."},"z_index":{"type":"integer","description":"CSS z-index stacking order on the card host element."},"interactive":{"type":"boolean","description":"When false, hover colour changes and hover animations are suppressed. The cursor defaults to the arrow unless overridden via style.cursor. Tap/hold actions still fire if configured. Left out, a button is interactive when it has a tap, hold or double tap action, a component or SVG segments, an animation the pointer starts (on_tap, on_hover, ...), or an entity its default tap (toggle) can switch (lights, switches, input booleans, covers, locks, ...), and decorative (false) otherwise: a title, a filler, or a readout of a sensor or number."},"preset":{"type":"string","description":"Style preset name (button preset when used alone; component preset name when component is set)","examples":["lozenge"]},"component":{"type":"string","enum":["dpad","dpad_voyager","alert","brackets"],"description":"Component type (mutually exclusive with preset)","enumDescriptions":["D-pad directional control (up/down/left/right/center)","D-pad directional control, Voyager LCARS ring styling (up/down/left/right/center)","Alert symbol with animated bar segments (red/blue/green/yellow/grey/black)","Bracket arcs ( ) framing a round display; content in the center zone"]},"text":{"type":"object","description":"Multi-text label system","$comment":"Text fields use arbitrary keys. \"default\" provides styling inherited by all other text fields. All other keys create actual rendered text elements.","examples":[{"label1":{"content":"Temperature","position":"top-left","font_size":18,"color":"#FF9900"},"status":{"content":"{entity.state}","position":"center"}}],"properties":{"default":{"type":"object","description":"Default styling inherited by all text fields (does not render)","$comment":"This is NOT rendered as a text element - it only provides default styles","properties":{"position":{"type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right","top","bottom","left","right","left-center","right-center"],"description":"Default text position (e.g., \"top-left\", \"center\")"},"rotation":{"type":"number","minimum":-360,"maximum":360,"default":0,"description":"Text rotation in degrees (-360 to 360)"},"padding":{"$ref":"#/$defs/paddingSchema"},"font_size":{"oneOf":[{"type":"number","minimum":1,"maximum":200,"default":14,"description":"Font size in pixels (1-200)"},{"type":"string","pattern":"^(\\d+px|\\d+\\.?\\d*rem|\\d+\\.?\\d*em|var\\(--[a-z-]+\\))$","description":"CSS value or theme token","examples":["14px"]}]},"color":{"$ref":"../shared/state-color.json"},"font_weight":{"type":["string","number"],"default":"normal","description":"Font weight: CSS keyword (normal, bold) or numeric value (100–900)","examples":["normal"]},"font_family":{"type":"string","format":"font-family","description":"CSS font-family (single font, comma-separated stack, or CSS variable)","examples":["Arial"]},"text_transform":{"type":"string","enum":["none","uppercase","lowercase","capitalize"],"default":"none","description":"Text transformation","enumDescriptions":["No transformation (original case)","ALL UPPERCASE","all lowercase","Capitalize First Letter"]},"letter_spacing":{"type":["number","string"],"description":"Space between letters: px (a number) or a CSS letter-spacing such as 0.1em or 2px. Default normal.","examples":[1]},"anchor":{"type":"string","enum":["start","middle","end"],"description":"Horizontal text alignment. Left out, it follows position (start at x/y)","enumDescriptions":["Left-aligned","Center-aligned","Right-aligned"]},"baseline":{"type":"string","enum":["hanging","middle","central","alphabetic"],"description":"Vertical text alignment. Left out, it follows position (auto at x/y)","enumDescriptions":["Top of text box","Center of text box","Mathematical center","Bottom of text (baseline)"]},"display_format":{"type":"string","enum":["friendly","raw","parts","unit"],"default":"friendly","description":"Default display format for entity state/attribute tokens. \"friendly\" uses Home Assistant's translated display string. \"raw\" returns the unmodified value. \"parts\" joins value and unit. \"unit\" returns only the unit."},"background":{"$ref":"../shared/state-color.json"},"background_padding":{"type":"number","minimum":0,"default":8,"description":"Horizontal padding between text glyphs and the background rect edges (px)."},"background_radius":{"type":"number","minimum":0,"default":4,"description":"Corner radius of the background rect (px)."},"background_width":{"type":["number","null"],"minimum":1,"description":"Fixed explicit width of the background rect (px). Overrides auto-sizing from text metrics. Text will overflow if content is wider than this value."},"background_min_width":{"type":["number","null"],"minimum":1,"description":"Minimum width of the background rect (px). Auto-sizes to text width but never smaller than this value. Safe for dynamic content."},"font_size_percent":{"type":"number","minimum":1,"maximum":100,"description":"Default font size as a percentage of the text zone height. All fields inherit this unless they set an explicit font_size. Useful for bar-label style presets that should auto-scale with the configured card height."},"cap_height_ratio":{"type":"number","minimum":0.1,"maximum":1,"description":"Ratio of the font cap-height to the em-square (font-size). Used to correct font_size_percent so visible glyph height matches the requested percentage of the container. Defaults to the theme token value (0.86 for Antonio). Override when using a different font family."}}}},"additionalProperties":{"type":"object","description":"Text field configuration (key becomes field name)","$comment":"Each key creates a separate SVG text element. Use descriptive names like \"label1\", \"status\", \"title\"","properties":{"content":{"type":"string","description":"Text content. Templates are evaluated by default (set template:false to disable)","examples":["Temperature"]},"show":{"type":"boolean","default":true,"description":"Whether to show this text field"},"position":{"type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right","top","bottom","left","right","left-center","right-center"],"description":"Text position (overrides default)"},"x":{"type":"number","description":"Absolute X coordinate in pixels"},"y":{"type":"number","description":"Absolute Y coordinate in pixels"},"x_percent":{"type":"number","minimum":0,"maximum":100,"description":"X position as a percentage of the text zone width (0-100); use with y_percent"},"y_percent":{"type":"number","minimum":0,"maximum":100,"description":"Y position as a percentage of the text zone height (0-100); use with x_percent"},"rotation":{"type":"number","minimum":-360,"maximum":360,"default":0,"description":"Text rotation in degrees (-360 to 360)"},"padding":{"$ref":"#/$defs/paddingSchema"},"font_size":{"oneOf":[{"type":"number","minimum":1,"maximum":200,"description":"Font size in pixels (1-200)"},{"type":"string","pattern":"^(\\d+px|\\d+\\.?\\d*rem|\\d+\\.?\\d*em|var\\(--[a-z-]+\\))$","description":"CSS value or theme token","examples":["14px"]}]},"color":{"$ref":"../shared/state-color.json"},"font_weight":{"type":["string","number"],"default":"normal","description":"Font weight: CSS keyword (normal, bold) or numeric value (100–900)","examples":["normal"]},"font_family":{"type":"string","format":"font-family","description":"CSS font-family (single font, comma-separated stack, or CSS variable)","examples":["Arial"]},"text_transform":{"type":"string","enum":["none","uppercase","lowercase","capitalize"],"default":"none","description":"Text transformation","enumDescriptions":["No transformation (original case)","ALL UPPERCASE","all lowercase","Capitalize First Letter"]},"letter_spacing":{"type":["number","string"],"description":"Space between letters: px (a number) or a CSS letter-spacing such as 0.1em or 2px. Default normal.","examples":[1]},"anchor":{"type":"string","enum":["start","middle","end"],"description":"Horizontal text alignment. Left out, it follows position (start at x/y)","enumDescriptions":["Left-aligned","Center-aligned","Right-aligned"]},"baseline":{"type":"string","enum":["hanging","middle","central","alphabetic"],"description":"Vertical text alignment. Left out, it follows position (auto at x/y)","enumDescriptions":["Top of text box","Center of text box","Mathematical center","Bottom of text (baseline)"]},"template":{"type":"boolean","default":true,"description":"Template evaluation is enabled by default for this field’s content (e.g. {entity.state}, {{ states(...) }}, [[[ ... ]]]). Set to false to render {...} / [[[...]]] text literally without evaluating it."},"stretch":{"oneOf":[{"type":"boolean","description":"true = stretch text to fill 100% of the available width"},{"type":"number","minimum":0,"maximum":1,"description":"Fraction of available width to stretch text to (0–1)"}],"description":"Stretch text to fill a fraction of the available width using SVG textLength / lengthAdjust=\"spacingAndGlyphs\". true = 100%, 0.8 = 80%."},"fit":{"oneOf":[{"type":"boolean","description":"true = shrink the text to fit its zone, then wrap it to two lines, then end it with an ellipsis"},{"type":"object","additionalProperties":false,"description":"Fit with your own limits","properties":{"min_font_size":{"type":"number","minimum":1,"description":"Smallest size the text shrinks to (px; viewBox units in a component zone). Default: 60% of the font size, not below 8"},"max_lines":{"type":"integer","minimum":1,"description":"Most lines the text wraps to (at spaces). 1 = shrink only. Default 2"},"overflow":{"type":"string","enum":["ellipsis","clip"],"description":"Text still too long at the smallest size: end it with an ellipsis (default) or cut it"}}}],"description":"Keep the text inside its zone: shrink it, then wrap it, then cut it. Off by default. Ignored with stretch."},"font_size_percent":{"type":"number","minimum":1,"maximum":100,"description":"Font size as a percentage of the text area height (component mode). Overrides font_size when set."},"cap_height_ratio":{"type":"number","minimum":0.1,"maximum":1,"description":"Ratio of the font cap-height to the em-square. Used to correct font_size_percent so visible glyph height matches the requested percentage. Defaults to the theme token value (0.86 for Antonio). Override when using a different font."},"zone":{"type":"string","description":"Named zone key to route this text field to. For component cards this matches a key in the component's zones map. For slider/elbow cards this matches a named layout zone (e.g. left, track, vertical_bar). Defaults to the first zone if not set."},"display_format":{"type":"string","enum":["friendly","raw","parts","unit"],"default":"friendly","description":"How to format entity state or attribute values in this text field. \"friendly\" (default) uses Home Assistant's translated display string matching native cards. \"raw\" returns the unmodified state/attribute value. \"parts\" joins value and unit from Home Assistant's ToParts API. \"unit\" returns only the unit portion.","examples":["friendly"]},"background":{"$ref":"../shared/state-color.json"},"background_padding":{"type":"number","minimum":0,"default":8,"description":"Horizontal padding between text glyphs and the background rect edges (px)."},"background_radius":{"type":"number","minimum":0,"default":4,"description":"Corner radius of the background rect (px)."},"background_width":{"type":["number","null"],"minimum":1,"description":"Fixed explicit width of the background rect (px). Overrides auto-sizing from text metrics. Text will overflow if content is wider than this value."},"background_min_width":{"type":["number","null"],"minimum":1,"description":"Minimum width of the background rect (px). Auto-sizes to text width but never smaller than this value. Safe for dynamic content."}}}},"show_icon":{"type":"boolean","description":"Whether to show the icon. Default: the preset's setting (some presets show it), else false."},"icon_area":{"type":"string","enum":["left","right","top","bottom","none"],"default":"left","description":"Icon area position relative to main area","enumDescriptions":["Vertical bar on left side","Vertical bar on right side","Horizontal bar at top","Horizontal bar at bottom","No separate icon area (icon in main area)"]},"icon":{"type":"string","examples":["mdi:lightbulb"]},"icon_area_background":{"title":"Icon Area Background Colour","description":"Background colour for the icon area (supports state-based colours)","default":"transparent","$comment":"Icon area background is independent of main card background. Useful for creating visual separation.","oneOf":[{"$ref":"#/$defs/lcards_button_icon_area_background"},{"$ref":"#/$defs/lcards_button_icon_area_background_2"}]},"icon_area_size":{"type":"number","minimum":20,"maximum":500,"description":"Fixed size for icon area in pixels (width for left/right, height for top/bottom). Default: the preset's size, else sized to the icon (icon size plus spacing on both sides plus the divider)."},"divider":{"type":"object","description":"Divider line between icon area and main area","examples":[{"width":2,"color":"#FF9900"}],"properties":{"width":{"type":"number","minimum":0,"maximum":200,"description":"Divider width in pixels (0 = no divider). Default: the preset's width, else the theme's, else 6."},"color":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Divider colour","examples":["#FF9900"]}}},"icon_style":{"type":"object","description":"Advanced icon styling configuration","examples":[{"color":"#FF9900","size":32,"position":"center"}],"properties":{"color":{"$ref":"../shared/state-color.json"},"icon":{"title":"State-Dependent Icons","description":"Override icon per entity state. Falls back to the top-level \"icon\" field when no state matches.","oneOf":[{"type":"string","title":"Single Icon","description":"One icon for all states","examples":["mdi:lightbulb"]},{"type":"object","title":"State-Dependent Icons","description":"Different icons for different entity states","examples":[{"active":"mdi:lightbulb","inactive":"mdi:lightbulb-off"}],"properties":{"default":{"type":"string","description":"Default icon (fallback when no other state matches)","examples":["mdi:lightbulb"]},"active":{"type":"string","description":"Icon when entity is on/active","examples":["mdi:lightbulb"]},"inactive":{"type":"string","description":"Icon when entity is off/inactive","examples":["mdi:lightbulb-off"]},"unavailable":{"type":"string","description":"Icon when entity is unavailable or unknown","examples":["mdi:help-circle-outline"]},"zero":{"type":"string","description":"Icon when entity state is numeric 0","examples":["mdi:numeric-0-circle"]},"non_zero":{"type":"string","description":"Icon when entity state is a non-zero number","examples":["mdi:numeric-positive-1"]}},"additionalProperties":{"type":"string","description":"Custom state icon (e.g., \"on\", \"off\", \"heat\", \"cool\")"}}]},"size":{"type":"number","minimum":8,"maximum":200,"default":24,"description":"Icon size in pixels (8-200, default: 24)"},"rotation":{"type":"number","minimum":-360,"maximum":360,"default":0,"description":"Icon rotation in degrees (-360 to 360)"},"position":{"type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right","top","bottom","left","right","left-center","right-center"],"default":"center","description":"Icon position within icon area"},"x":{"type":"number","description":"Absolute X coordinate in pixels"},"y":{"type":"number","description":"Absolute Y coordinate in pixels"},"x_percent":{"type":"number","minimum":0,"maximum":100,"description":"X position as percentage (0-100)"},"y_percent":{"type":"number","minimum":0,"maximum":100,"description":"Y position as percentage (0-100)"},"spacing":{"type":"number","minimum":0,"maximum":100,"default":8,"description":"Spacing between icon and text in pixels (default: 8)"},"padding":{"$ref":"#/$defs/paddingSchema"},"padding_left":{"type":"number","minimum":0,"maximum":200,"description":"Left side of the per-side icon padding in pixels, for an icon placed in its icon area: a shorthand for padding.left, and wins over it. The other sides keep their own values."},"padding_right":{"type":"number","minimum":0,"maximum":200,"description":"Right side of the per-side icon padding in pixels, for an icon placed in its icon area: a shorthand for padding.right, and wins over it. The other sides keep their own values."},"padding_top":{"type":"number","minimum":0,"maximum":200,"description":"Top side of the per-side icon padding in pixels, for an icon placed in its icon area: a shorthand for padding.top, and wins over it. The other sides keep their own values."},"padding_bottom":{"type":"number","minimum":0,"maximum":200,"description":"Bottom side of the per-side icon padding in pixels, for an icon placed in its icon area: a shorthand for padding.bottom, and wins over it. The other sides keep their own values."}}},"style":{"type":"object","properties":{"cursor":{"type":"string","description":"CSS cursor style shown when hovering over the button. Overrides the automatic cursor derived from the interactive flag.","examples":["pointer"]},"card":{"type":"object","properties":{"color":{"type":"object","properties":{"background":{"$ref":"../shared/state-color.json"}}}}},"border":{"type":"object","properties":{"width":{"oneOf":[{"type":"number"},{"type":"string","description":"Theme token reference"},{"type":"object","properties":{"top":{"oneOf":[{"type":"number"},{"type":"string"}]},"right":{"oneOf":[{"type":"number"},{"type":"string"}]},"bottom":{"oneOf":[{"type":"number"},{"type":"string"}]},"left":{"oneOf":[{"type":"number"},{"type":"string"}]}}}]},"color":{"$ref":"../shared/state-color.json"},"radius":{"oneOf":[{"type":"number","minimum":0,"maximum":100,"description":"Corner radius in pixels. Default: the preset's radius, else 20."},{"type":"string","pattern":"^(theme:.+|var\\(--.*\\)|\\d+(\\.\\d+)?(px)?)$","description":"A theme token (theme: and its path), a CSS variable or a px value"},{"type":"object","properties":{"top_left":{"oneOf":[{"type":"number"},{"type":"string"}]},"top_right":{"oneOf":[{"type":"number"},{"type":"string"}]},"bottom_right":{"oneOf":[{"type":"number"},{"type":"string"}]},"bottom_left":{"oneOf":[{"type":"number"},{"type":"string"}]}}}]}}},"text":{"type":"object","properties":{"default":{"type":"object","properties":{"color":{"$ref":"../shared/state-color.json"},"font_size":{"oneOf":[{"type":"number"},{"type":"string","description":"CSS value or theme token (e.g., \"14px\", \"var(--lcars-text-size)\")"}]},"font_weight":{"type":["string","number"]},"font_family":{"type":"string","format":"font-family"},"letter_spacing":{"type":["number","string"],"description":"Space between letters: px (a number) or a CSS letter-spacing such as 0.1em or 2px. Default normal.","examples":[1]},"text_transform":{"type":"string","enum":["none","uppercase","lowercase","capitalize"],"description":"Case for every text field that sets none of its own: none, uppercase, lowercase or capitalize."}}}}}}},"tap_action":{"$ref":"../shared/action.json"},"hold_action":{"$ref":"../shared/action.json"},"double_tap_action":{"$ref":"../shared/action.json"},"animations":{"$ref":"#/$defs/lcards_button_animations"},"background_animation":{"$ref":"../shared/background-animation.json"},"shape_texture":{"type":"object","description":"SVG-native texture/animation rendered inside the button shape boundary","properties":{"preset":{"type":"string","description":"Texture preset name","enum":["grid","diagonal","hexagonal","dots","fluid","shimmer","plasma","flow","level","pulse","scanlines","image"]},"opacity":{"description":"Texture opacity (0-1). Supports state-based object.","oneOf":[{"type":"number","minimum":0,"maximum":1},{"type":"object","description":"State-based values: keys are states (default, active, inactive, unavailable, ...), values are numbers"}]},"speed":{"description":"Animation speed multiplier. Supports state-based object.","oneOf":[{"type":"number","minimum":0},{"type":"object"}]},"mix_blend_mode":{"type":"string","description":"CSS mix-blend-mode for texture blending","enum":["normal","multiply","screen","overlay","hard-light","soft-light","color-burn","color-dodge"]},"config":{"type":"object","description":"Preset-specific configuration. Supports entity-reactive values: map_range descriptor ({ map_range: { attribute, input, output } }) or template strings ([[[...]]]), including { template, default } form for numeric params like fill_pct.","additionalProperties":true}},"additionalProperties":false},"filters":{"type":"array","description":"Visual filters applied to entire button (CSS and SVG filter primitives)","items":{"$ref":"../shared/filter.json"}},"svg":{"type":"object","properties":{"content":{"type":"string"},"src":{"type":"string"},"viewBox":{"type":"string"},"preserveAspectRatio":{"type":"string"},"enable_tokens":{"type":"boolean"},"allow_scripts":{"type":"boolean"},"segments":{"type":"object","description":"Segment configurations keyed by ID. Use \"default\" for shared config.","properties":{"default":{"type":"object","description":"Default configuration inherited by all segments","properties":{"entity":{"type":"string","format":"entity","pattern":"^[a-z_]+\\.[a-z0-9_]+$","description":"Entity ID (format: domain.object_id)","examples":["light.living_room"]},"tap_action":{"$ref":"../shared/action.json"},"hold_action":{"$ref":"../shared/action.json"},"double_tap_action":{"$ref":"../shared/action.json"},"style":{"$ref":"#/$defs/lcards_button_svg_segments_default_style"},"animations":{"$ref":"#/$defs/lcards_button_animations"}}}},"additionalProperties":{"type":"object","description":"Per-segment configuration (overrides default)","properties":{"selector":{"type":"string","description":"CSS selector override (defaults to \"#<segment-id>\")"},"entity":{"type":"string","format":"entity","pattern":"^[a-z_]+\\.[a-z0-9_]+$","description":"Entity ID (format: domain.object_id)","examples":["light.living_room"]},"tap_action":{"$ref":"../shared/action.json"},"hold_action":{"$ref":"../shared/action.json"},"double_tap_action":{"$ref":"../shared/action.json"},"style":{"$ref":"#/$defs/lcards_button_svg_segments_default_style"},"animations":{"$ref":"#/$defs/lcards_button_animations"}}}}}},"alert":{"type":"object","description":"Alert component configuration","properties":{"color":{"type":"object","description":"Colour shorthand: overrides the active preset's colours","properties":{"shape":{"type":"string","description":"Fill colour for the shield shape","examples":["var(--lcards-orange)"]},"bars":{"type":"string","description":"Stroke colour for the bar lines","examples":["var(--lcards-orange)"]}}},"custom_presets":{"type":"object","description":"Custom or override presets (merged over built-ins)","additionalProperties":{"type":"object","properties":{"segments":{"type":"object","properties":{"shape":{"type":"object","properties":{"style":{"type":"object","properties":{"fill":{"type":"string"}}}}},"bars":{"type":"object","properties":{"style":{"type":"object","properties":{"stroke":{"type":"string"}}}}}}},"text":{"type":"object","additionalProperties":{"type":"object","properties":{"content":{"type":"string"},"color":{"type":"string"}}}}}}},"segments":{"type":"object","description":"Per-segment fine-grained overrides (managed by Segments tab)","additionalProperties":{"type":"object","properties":{"style":{"type":"object","properties":{"fill":{"type":"string"},"stroke":{"type":"string"}}}}}}}},"dpad":{"type":"object","properties":{"segments":{"type":"object","description":"Segment configurations. Use \"default\" key for common properties applied to all segments. Other keys are segment IDs (up, down, left, right, up-left, up-right, down-left, down-right, center).","additionalProperties":{"$ref":"#/$defs/lcards_button_dpad_segments_value"}}}},"ranges_attribute":{"type":"string","description":"Entity attribute to use as the numeric value for ALL state-based range conditions (above:/below:/between: keys) across the entire card: icon_style.icon, icon_style.color, text color, background, border, and config.ranges preset switching. Use \"brightness_pct\" for a computed 0-100 light brightness value. Defaults to evaluating the raw entity state string.","examples":["brightness_pct"]},"state_attribute":{"type":"string","description":"Entity attribute whose String() value is used as the highest-priority key for ALL exact-match state-color lookups across the card. Booleans become \"true\"/\"false\"; null becomes \"null\"; strings are used as-is. Classified state (active/inactive) is always derived from entity.state and is unaffected. Can be used alongside ranges_attribute.","examples":["effect"]},"state_classification":{"type":"object","description":"Override how raw entity states are mapped to style buckets. Use built-in buckets (active/inactive/default) or define your own named buckets. Explicit state keys in style config always take priority over this.","properties":{"active":{"type":"array","items":{"type":"string"},"description":"Additional states to classify as \"active\" (augments the built-in active list).","examples":[["home","work","gym"]]},"inactive":{"type":"array","items":{"type":"string"},"description":"States to explicitly classify as \"inactive\".","examples":[["not_home","away"]]},"else":{"type":"string","description":"Bucket for states not matched by any list (built-in or custom). Accepts built-in bucket names (active/inactive/default) or a custom bucket name. Defaults to \"inactive\" when omitted."}},"additionalProperties":{"type":"array","items":{"type":"string"},"description":"Custom bucket: an array of raw entity states that map to this bucket name."}},"ranges":{"type":"array","description":"State-driven preset switching: evaluates entity value against thresholds and applies matching preset","items":{"type":"object","required":["preset"],"properties":{"preset":{"type":"string","description":"Component preset name to apply when this range matches"},"attribute":{"type":"string","description":"Override ranges_attribute for this entry only"},"above":{"type":"number","description":"Match when value is > this threshold (strictly greater)"},"at_least":{"type":"number","description":"Match when value is >= this threshold (inclusive)"},"below":{"type":"number","description":"Match when value is < this threshold (strictly less)"},"at_most":{"type":"number","description":"Match when value is <= this threshold (inclusive)"},"equals":{"description":"Match when value equals this (string comparison)","type":["string","number","boolean"]},"color":{"type":"object","description":"Transient segment colour overrides applied while this range is active","properties":{"shape":{"type":"string","description":"Override fill for the shape segment"},"bars":{"type":"string","description":"Override stroke for the bars segment"}}}},"additionalProperties":false}},"grid_options":{"type":"object","description":"Home Assistant grid layout options. Controls how many rows and columns this card occupies in the dashboard grid.","properties":{"columns":{"oneOf":[{"type":"string","enum":["full"],"description":"Set to \"full\" to span all available columns"},{"type":"number","minimum":1,"description":"Number of grid columns this card spans: 12 per section column, so a section with column_span: 4 has 48"}],"description":"Number of grid columns (12 per section column; Home Assistant clamps to the section width) or \"full\" to span all columns"},"rows":{"oneOf":[{"type":"string","enum":["auto"],"description":"Set to \"auto\" to size the cell to the card's own height"},{"type":"number","minimum":1,"maximum":100,"description":"Number of rows this card spans (1-100)"}],"description":"Number of rows this card spans (1-100), or \"auto\" for the card's own height"}}},"dpad_voyager":{"type":"object","properties":{"segments":{"type":"object","description":"Segment configurations. Use \"default\" for all segments; other keys are segment IDs (every shape of the artwork, e.g. center, up_arrow, down_arrow, left_arrow, right_arrow, up_left, up_right, down_left, down_right, up_ring, ring_up_1, top_bar_1, accent_1).","additionalProperties":{"$ref":"#/$defs/lcards_button_dpad_segments_value"}}},"description":"dpad_voyager component configuration"},"brackets":{"type":"object","properties":{"segments":{"type":"object","description":"Segment configurations. Use \"default\" for all segments; other keys are segment IDs (left, right).","additionalProperties":{"$ref":"#/$defs/lcards_button_dpad_segments_value"}}},"description":"brackets component configuration"},"view_layout":{"type":"object","additionalProperties":true,"description":"Placement in a custom view layout (e.g. grid-area), read by the view."},"visibility":{"type":"array","description":"Home Assistant visibility conditions: the card shows only while they hold."},"layout_options":{"type":"object","additionalProperties":true,"description":"The older name of grid_options, read by Home Assistant."},"card_mod":{"type":"object","additionalProperties":true,"description":"card-mod styling, read by card-mod."},"uix":{"type":"object","additionalProperties":true,"description":"UIX styling, read by UIX."}},"$defs":{"lcards_button_animations":{"type":"array","items":{"$ref":"../shared/animation.json"}},"lcards_button_dpad_segments_value":{"type":"object","properties":{"selector":{"type":"string","description":"CSS selector for SVG element (defaults to #{segment-id} if not specified)"},"entity":{"type":"string","format":"entity","pattern":"^[a-z_]+\\.[a-z0-9_]+$","description":"Entity ID for this segment (format: domain.object_id, overrides card entity)","examples":["light.living_room"]},"tap_action":{"$ref":"../shared/action.json"},"hold_action":{"$ref":"../shared/action.json"},"double_tap_action":{"$ref":"../shared/action.json"},"style":{"$ref":"#/$defs/lcards_button_dpad_segments_value_style"},"animations":{"$ref":"#/$defs/lcards_button_dpad_segments_value_animations"}}},"lcards_button_dpad_segments_value_animations":{"type":"array","description":"Animations on this segment only (the same entries as the card's animations list)","items":{"$ref":"../shared/animation.json"}},"lcards_button_dpad_segments_value_style":{"type":"object","description":"SVG styling for the segment","properties":{"fill":{"$ref":"#/$defs/lcards_button_dpad_segments_value_style_fill"},"stroke":{"$ref":"#/$defs/lcards_button_dpad_segments_value_style_stroke"},"stroke-width":{"$ref":"#/$defs/lcards_button_dpad_segments_value_style_stroke_width"}}},"lcards_button_dpad_segments_value_style_fill":{"oneOf":[{"$ref":"#/$defs/lcards_button_icon_area_background"},{"$ref":"#/$defs/lcards_button_icon_area_background_2"}],"description":"Segment fill colour: a colour, or a state map (default, active, inactive, ranges)"},"lcards_button_dpad_segments_value_style_stroke":{"oneOf":[{"$ref":"#/$defs/lcards_button_icon_area_background"},{"$ref":"#/$defs/lcards_button_icon_area_background_2"}],"description":"Segment outline colour: a colour, or a state map (default, active, inactive, ranges)"},"lcards_button_dpad_segments_value_style_stroke_width":{"title":"Stroke Width","description":"SVG stroke width (number in pixels, CSS string, or state-based)","oneOf":[{"type":"number","minimum":0,"maximum":50,"description":"Stroke width in pixels (0-50)"},{"type":"string","pattern":"^\\d+(\\.\\d+)?(px|em|rem)?$","description":"CSS stroke width value","examples":["2px"]},{"$ref":"../shared/state-color.json"}]},"lcards_button_icon_area_background":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Single colour value applied to all entity states","examples":["#FF9900"],"title":"Simple Colour"},"lcards_button_icon_area_background_2":{"type":"object","title":"State-Dependent Colours","description":"Map of entity state names to colour values. Well-known keys: default, active, inactive, unavailable, zero, non_zero, hover, pressed. Any custom state name (e.g. \"heating\", \"above:90\") is also accepted.","examples":[{"default":"#888888","active":"alpha(var(--lcards-orange), 0.08)","inactive":"#444444"}],"properties":{"default":{"$ref":"#/$defs/lcards_button_icon_area_background_default"},"active":{"$ref":"#/$defs/lcards_button_icon_area_background_active"},"inactive":{"$ref":"#/$defs/lcards_button_icon_area_background_inactive"},"unavailable":{"$ref":"#/$defs/lcards_button_icon_area_background_unavailable"},"zero":{"$ref":"#/$defs/lcards_button_icon_area_background_zero"},"non_zero":{"$ref":"#/$defs/lcards_button_icon_area_background_non_zero"},"hover":{"$ref":"#/$defs/lcards_button_icon_area_background_hover"},"pressed":{"$ref":"#/$defs/lcards_button_icon_area_background_pressed"}},"additionalProperties":{"$ref":"#/$defs/lcards_button_icon_area_background_value"}},"lcards_button_icon_area_background_active":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour when entity is on/active","examples":["#FF9900"]},"lcards_button_icon_area_background_default":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Fallback colour when no other state key matches","examples":["#FF9900"]},"lcards_button_icon_area_background_hover":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour on hover interaction","examples":["#FF9900"]},"lcards_button_icon_area_background_inactive":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour when entity is off/inactive","examples":["#FF9900"]},"lcards_button_icon_area_background_non_zero":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour when entity state is a non-zero number","examples":["#FF9900"]},"lcards_button_icon_area_background_pressed":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour on press/tap interaction","examples":["#FF9900"]},"lcards_button_icon_area_background_unavailable":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour when entity is unavailable","examples":["#FF9900"]},"lcards_button_icon_area_background_value":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour for a custom state key (e.g. \"heating\", \"cooling\", \"above:90\", \"below:20\")","examples":["#FF9900"]},"lcards_button_icon_area_background_zero":{"type":"string","pattern":"^(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$|(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|currentcolor|currentColor|match-light)$|theme:|var\\(--|(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix)\\(|(alpha|darken|lighten|saturate|desaturate|mix|base)\\()","description":"Colour when entity state is numeric 0","examples":["#FF9900"]},"lcards_button_svg_segments_default_style":{"type":"object","properties":{"fill":{"$ref":"../shared/state-color.json"},"stroke":{"$ref":"../shared/state-color.json"},"stroke-width":{"$ref":"#/$defs/lcards_button_svg_segments_default_style_stroke_width"},"opacity":{"$ref":"#/$defs/lcards_button_svg_segments_default_style_opacity"}}},"lcards_button_svg_segments_default_style_opacity":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"Opacity value (0.0 = transparent, 1.0 = opaque)"},{"type":"object","description":"State-based opacity","properties":{"default":{"type":"number","minimum":0,"maximum":1},"active":{"type":"number","minimum":0,"maximum":1},"inactive":{"type":"number","minimum":0,"maximum":1}}}]},"lcards_button_svg_segments_default_style_stroke_width":{"title":"Stroke Width","description":"SVG stroke width (number in pixels or CSS string)","oneOf":[{"type":"number","minimum":0,"maximum":50,"description":"Uniform stroke width in pixels (0-50)"},{"type":"string","pattern":"^\\d+(\\.\\d+)?(px|em|rem)?$","description":"CSS stroke width value","examples":["2px"]},{"$ref":"#/$defs/lcards_button_svg_segments_default_style_stroke_width_2"}]},"lcards_button_svg_segments_default_style_stroke_width_2":{"type":"object","description":"State-based stroke width","properties":{"default":{"oneOf":[{"type":"number","minimum":0,"maximum":50},{"type":"string"}]},"active":{"oneOf":[{"type":"number","minimum":0,"maximum":50},{"type":"string"}]},"inactive":{"oneOf":[{"type":"number","minimum":0,"maximum":50},{"type":"string"}]}}},"lcards_button_text_default_padding":{"type":"object","title":"Per-Side Padding","description":"Different padding for each side","examples":[{"top":8,"right":16,"bottom":8,"left":16}],"properties":{"top":{"type":"number","minimum":0,"maximum":200,"description":"Top padding in pixels"},"right":{"type":"number","minimum":0,"maximum":200,"description":"Right padding in pixels"},"bottom":{"type":"number","minimum":0,"maximum":200,"description":"Bottom padding in pixels"},"left":{"type":"number","minimum":0,"maximum":200,"description":"Left padding in pixels"}}},"paddingSchema":{"oneOf":[{"type":"number","title":"Uniform Padding","minimum":0,"maximum":200,"description":"Same padding on all sides (in pixels)","examples":[8]},{"$ref":"#/$defs/lcards_button_text_default_padding"}]}}}
