brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

A Home Assistant dashboard in Catppuccin: phone and desktop apart, and what I’d do differently

A Home Assistant dashboard in Catppuccin: phone and desktop apart, and what I'd do differently

I run Home Assistant on my Unraid server and gave its dashboard a Catppuccin coat. A phone and a desktop don’t need the same layout, so my dashboard exists in two shapes. Here’s how I’d set that up, and what I’d change if I started over.

The theme

You install the official Catppuccin theme for Home Assistant through HACS, or by dropping catppuccin.yaml into your themes/ folder. You get four flavours: Latte as the light one and Frappé, Macchiato and Mocha as the dark ones. I pick Latte for daytime and Mocha for the evening. You choose the theme per user in your profile, so phone and laptop can differ.

Home Assistant dashboard on a phone in the default light theme, before any custom styling
The default Home Assistant look on a phone, before any theme. Image from home-assistant.io (Apache-2.0), cropped.

Cards that fit

Mushroom Cards and Bubble Card are the two I’d use. Mushroom is calm and sits close to the Home Assistant look. Bubble Card is the pop-up card that feels good on a phone, with big tap targets. Card-mod is the glue: a theme only changes variables Home Assistant exposes, so for a blur or a shadow you need card-mod.

A forum user reports that a global ha-card blur through card-mod can break the pop-ups of Bubble Card v3 (Bubble Card issue 2347). So keep your card-mod rules to the cards that need them.

Phone and desktop apart

A dashboard that works well on both doesn’t exist. On my phone I want big buttons under my thumb, on the desktop an overview with lots of cards side by side. Home Assistant can show or hide cards by screen width with a visibility condition:

visibility:
  - condition: screen
    media_query: "(min-width: 768px)"

Put the same rule with (max-width: 767px) on the phone cards. Then you work in one dashboard with two faces, and you don’t maintain the same entities twice. If you’d rather keep them fully separate, make two dashboards and point each device at its own.

Animated mock-up of a dashboard growing from one column on a phone to three columns on a desktop, switching from Latte to Mocha

What I’d do differently

If I started over, I’d start with less. Theme first, then the standard tile cards, and a custom card only for a concrete problem. Every custom card is a HACS update that can hit my dashboard, and card-mod CSS is the first place things break after an update.

I’d also design the phone first. My phone is where I open the dashboard most, and a desktop layout is easy to widen afterwards. The other way round turns into a puzzle.

Further reading

Link