1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-25 13:16:47 +00:00

Remove ha-space-0 (#28635)

* Remove ha-space-0

* Update src/components/ha-sidebar.ts

Co-authored-by: Aidan Timson <aidan@timmo.dev>

* Fix variable inside calc

* Replace for variables

---------

Co-authored-by: Aidan Timson <aidan@timmo.dev>
This commit is contained in:
Paul Bottein
2025-12-19 17:12:28 +01:00
committed by GitHub
parent 86cd0e81ad
commit cdcbd00a92
24 changed files with 73 additions and 87 deletions

View File

@@ -154,7 +154,7 @@ try {
- **Use CSS custom properties**: Leverage the theme system
- **Use spacing tokens**: Prefer `--ha-space-*` tokens over hardcoded values for consistent spacing
- Spacing scale: `--ha-space-0` (0px) through `--ha-space-20` (80px) in 4px increments
- Spacing scale: `--ha-space-1` (4px) through `--ha-space-20` (80px) in 4px increments
- Defined in `src/resources/theme/core.globals.ts`
- Common values: `--ha-space-2` (8px), `--ha-space-4` (16px), `--ha-space-8` (32px)
- **Mobile-first responsive**: Design for mobile, enhance for desktop