{"id":13588728,"url":"https://github.com/custom-cards/stack-in-card","last_synced_at":"2025-10-23T22:56:56.765Z","repository":{"id":40361376,"uuid":"248954055","full_name":"custom-cards/stack-in-card","owner":"custom-cards","description":"🛠 group multiple cards into one card without the borders","archived":false,"fork":false,"pushed_at":"2024-04-02T20:01:27.000Z","size":564,"stargazers_count":306,"open_issues_count":50,"forks_count":30,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-10T09:18:22.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/custom-cards.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["RomRider"]}},"created_at":"2020-03-21T10:35:22.000Z","updated_at":"2025-07-10T09:01:50.000Z","dependencies_parsed_at":"2024-01-16T21:07:07.684Z","dependency_job_id":"11af8d4b-568f-48b5-88b9-09c91eeaddac","html_url":"https://github.com/custom-cards/stack-in-card","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/custom-cards/stack-in-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fstack-in-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fstack-in-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fstack-in-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fstack-in-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/custom-cards","download_url":"https://codeload.github.com/custom-cards/stack-in-card/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fstack-in-card/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280706833,"owners_count":26376980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:06:53.337Z","updated_at":"2025-10-23T22:56:56.727Z","avatar_url":"https://github.com/custom-cards.png","language":"TypeScript","funding_links":["https://github.com/sponsors/RomRider"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Stack In Card by [@RomRider](https://www.github.com/RomRider)\n\nA replacement for [vertical-stack-in-card](https://github.com/ofekashery/vertical-stack-in-card) and `horizontal-stack-in-card`\n\nIt allows to group multiple cards into one card without the borders. By default, it will stack everything vertically.\n\n[![GitHub Release][releases-shield]][releases]\n[![License][license-shield]](LICENSE.md)\n[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs)\n\n![Project Maintenance][maintenance-shield]\n[![GitHub Activity][commits-shield]][commits]\n\n[![Discord][discord-shield]][discord]\n[![Community Forum][forum-shield]][forum]\n\n## Options\n\nIf a card inside the stack has the `--keep-background` CSS style defined, it will not replace the background. This is usefull for [button-card](https://github.com/custom-cards/button-card) for example. You can also define this CSS variable by using [card-mod](https://github.com/thomasloven/lovelace-card-mod).\n\n| Name | Type | Requirement | Description | Default |\n| ---- | ---- | ----------- | ----------- | ------- |\n| `type` | string  | **Required** | `custom:stack-in-card` | |\n| `title` | string  | **Optional** | Header of the card | |\n| `mode` | string  | **Optional** | `vertical` or `horizontal` stack | `vertical` |\n| `cards` | object  | **Required** | The cards you want to embed | `none` |\n| `keep` | object | **Optional** | See [keep object](#keep-object) | |\n\n### `keep` object\n\n| Name | Type | Requirement | Description | Default |\n| ---- | ---- | ----------- | ----------- | ------- |\n| `background` | boolean | **Optional** | Will keep the background on **all** the child cards. To keep the background on specific cards only, assign the CSS variable `--keep-background: 'true'` on the card where you want to keep the background.  | `false` |\n| `box_shadow` | boolean | **Optional** | Will keep the `box-shadow` on **all** the child cards | `false` |\n| `margin` | boolean | **Optional** | Will keep the `margin` between **all** the child cards | `false` |\n| `outer_padding` | boolean | **Optional** | Will add a `padding` of `8px` to the card if `margin` is `true` | `true` if `margin` is `true`, else false |\n| `border_radius` | boolean | **Optional** | Will keep the `border-radius` on **all** the child cards | `false` |\n\n## Example\n\n### Simple Example\n\n![example](docs/Example.png)\n\n```yaml\n- type: custom:stack-in-card\n  title: My Stack In Card\n  mode: vertical\n  cards:\n    - type: horizontal-stack\n      cards:\n        - type: button\n          entity: sun.sun\n        - type: button\n          entity: sun.sun\n    - type: vertical-stack\n      cards:\n        - type: entities\n          entities:\n            - sun.sun\n```\n\n### Example with button-card to keep the background\n\nThis will keep the background of the button even if stacked:\n\n```yaml\n- type: custom:stack-in-card\n  title: My Stack In Card\n  mode: vertical\n  cards:\n    - type: custom:button-card\n      entity: sun.sun\n      color_type: card\n      styles:\n        card:\n          - --keep-background: 'true'\n```\n\n## Installation\n\nUse [HACS](https://hacs.xyz) or follow this [guide](https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins)\n\n```yaml\nresources:\n  url: /local/stack-in-card.js\n  type: module\n```\n\n[commits-shield]: https://img.shields.io/github/commit-activity/y/custom-cards/stack-in-card.svg?style=for-the-badge\n[commits]: https://github.com/custom-cards/stack-in-card/commits/master\n[devcontainer]: https://code.visualstudio.com/docs/remote/containers\n[discord]: https://discord.gg/5e9yvq\n[discord-shield]: https://img.shields.io/discord/330944238910963714.svg?style=for-the-badge\n[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg?style=for-the-badge\n[forum]: https://community.home-assistant.io/t/stack-in-card-drop-in-replacement-for-vertical-stack-in-card/180072\n[license-shield]: https://img.shields.io/github/license/custom-cards/stack-in-card.svg?style=for-the-badge\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2020.svg?style=for-the-badge\n[releases-shield]: https://img.shields.io/github/release/custom-cards/stack-in-card.svg?style=for-the-badge\n[releases]: https://github.com/custom-cards/stack-in-card/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustom-cards%2Fstack-in-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustom-cards%2Fstack-in-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustom-cards%2Fstack-in-card/lists"}