feat: Add support for overriding card border radius (#2298)

- Closes #2287


[skip ci]
This commit is contained in:
Dermot Duffy
2025-12-20 17:00:04 -08:00
committed by GitHub
parent d17ecd6c12
commit de42a1652f
15 changed files with 111 additions and 38 deletions
+20
View File
@@ -1184,6 +1184,26 @@ automations:
See [Trigger Templates](./configuration/templates.md?id=triggers).
## Theme
### Custom border radius
This example shows how to customize the border radius for both the card and buttons to create a cohesive squared-off look:
```yaml
type: custom:advanced-camera-card
cameras:
- camera_entity: camera.office
view:
theme:
overrides:
# Set a custom border radius for the card
'--advanced-camera-card-border-radius': '12px'
# Match the button border radius to complement the card
'--advanced-camera-card-button-border-radius': '12px'
```
## Trigger actions
You can control the card itself with the `custom:advanced-camera-card-action` action.