0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
Site-wide utility container for header and footer actions like search, theme picker, and settings.
Overview
The <site-tools> element is a flex container for site-wide utility controls. It uses margin-inline-start: auto to push itself to the trailing edge of flex parents like <header class="site">.
It parallels <page-tools> which handles page-level utilities. Use <site-tools> for controls that appear on every page: search, theme picker, settings, account menus.
A sibling <mobile-menu> hides <site-tools> completely (display: none !important) at and below its breakpoint, along with the header's <nav> and <nav-bar>. Anything inside <site-tools> is then unreachable unless you also provide it another way:
Repeat it in the mobile panel. This suits search and the theme picker, which work inside the panel. The demo above does this.
Move it into the mobile panel. Place it directly in the header and add data-mobile-menu. <mobile-menu> moves that one element into its panel on narrow screens and back again on wide ones. Use this for a tool that should exist only once, such as the <notification-wc> bell: its list opens as a sheet over the menu, and the menu button shows a dot while something is unread. This site's header does this.
Keep it outside <site-tools>. Place it directly in the header with no attribute, and it stays visible at every width, next to the menu button on narrow screens.
Space between the tools. Set this instead of overriding --size-s, which would also re-scale the padding inside the nested components.
Accessibility
The element is a generic flex container with no implicit role. Each tool inside it (search, theme picker, settings) handles its own accessibility, including its touch-target size.
Optionally, give the cluster a group role and a name, so screen-reader users hear the tools announced as a set: