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…
Astro components and layouts for building content-focused sites with Vanilla Breeze.
Overview
The Astro integration provides typed components and layouts that follow Vanilla Breeze conventions. All components support Astro's islands architecture and work with content collections.
Location: /integrations/astro/
Installation
Copy the astro/ directory into your Astro project's src/ folder:
Copy integration files
cp -r integrations/astro/* src/
Then import styles in your main CSS or layout:
Import styles
---import '../styles/astro-overrides.css';---
Components
BaseHead
Standard <head> setup with meta tags, OG data, and theme initialization.
BaseHead usage
---import BaseHead from './components/BaseHead.astro';---<head><BaseHeadtitle="Page Title"description="Page description"image="/og-image.png" /></head>
Props:
title - Page title (required)
description - Meta description (required)
image - OG image URL (optional)
canonicalURL - Canonical URL (optional)
ThemeToggle
Theme switcher button using the theme-pickerweb component.
ThemeToggle usage
---import ThemeToggle from './components/ThemeToggle.astro';---<ThemeToggle />
NavTree
Tree navigation from structured data with automatic active state detection.
---import BaseLayout from './layouts/BaseLayout.astro';---<BaseLayouttitle="Home"description="Welcome"><h1>Hello World</h1></BaseLayout>
DocsLayout
Documentation page with sidebar navigation and table of contents.
DocsLayout usage
---import DocsLayout from './layouts/DocsLayout.astro';---<DocsLayouttitle="Getting Started"description="Learn how to use Vanilla Breeze"headings={headings}navigation={nav}><slot /></DocsLayout>