Make your own Mac dashboard card with HTML or a script
- Open Add widget and search "Custom".
- Pick HTML, Script output or Shortcut output.
- Write it with the live Preview, then click Save (⌘S).
Home has lots of cards, but sometimes you want one that shows your thing: a countdown, a build count, a number from a script.
A Custom card in Sunroom has three sources:
- HTML: your own HTML, CSS and JavaScript, drawn on Home's glass. Start from a template (Clock, At a glance, Countdown to a date, Quote of the day, Headlines, Progress ring). A page can read a few Sunroom values, like weather, your next event, free disk space and battery, but can't change anything.
- Script output: a zsh script or a Ray script. A Ray script only runs as a dry run, so the card can't change anything. Scripts that use
sudoare refused. - Shortcut output: one of your Apple Shortcuts, with its text shown on the card.
Outputs run every 1 minute to 12 hours, or only when you click the card, and stop after 10 seconds. Show as turns the output into a big number, a list, plain text or a JSON card with a value, items and a progress ring.





