Skip to content

Releases

v0.6.0

Choose a tag to compare

@brainage04 brainage04 released this 12 Nov 08:19

Phone drawer, light and dark themes. A minor release under 0.x, so it can break a site: see "Migrating from 0.5" in the README.

  • The header collapses on phones (40rem and narrower), and wherever the links do not fit, into a square menu button on the left, the site title in the middle and a light/dark theme button on the right. The menu button opens the links in a drawer that slides in from the left. A link, the backdrop, the close button and Escape close it.
  • The page follows the system colour scheme until the visitor presses the theme button. Every colour token, the rose theme included, holds a light and a dark value with light-dark(). New SiteConfig.themeColorLight sets the browser bar colour in the light theme.
  • SiteHeader has a required title prop, and its markup changed (.header-bar, nav.nav-links, dialog.site-drawer).
  • ProfileCard inverts its white social icons in the light theme.
  • Speculation rules prefetch only pages under the site's base path.
  • publish.yml fails unless the release tag matches the package.json version.

v0.5.2

Choose a tag to compare

@brainage04 brainage04 released this 09 Nov 04:29

Reusable workflow package-test.yml runs npm ci and npm test (Node 24) for a package other than the site, so a repository can gate its Pages deploy on its root tests. Every third-party action in the workflows is pinned to a commit SHA.

v0.5.1

Choose a tag to compare

@brainage04 brainage04 released this 08 Nov 14:07

Site workflows: optional path input (default .) to build and validate an Astro site in a subdirectory.

v0.5.0

Choose a tag to compare

@brainage04 brainage04 released this 23 Sep 16:42

Breaking changes

  • Integration required. Add astroShell({ config, styles }) from
    @brainage04/astro-shell to astro.config.mjs. It sets the GitHub Pages site/base
    from PUBLIC_SITE_URL/PUBLIC_BASE_PATH, provides the site config to SiteLayout,
    loads site styles after the shell's, and injects /404.
  • SiteLayout reads config from the integration; don't spread siteConfig into it.
    Props: title? (omit on the home page — the title === 'Home' check is gone),
    description?, image?, ogType?, canonicalHref?. Delete local SiteLayout
    wrappers and 404.astro.
  • SiteConfig: ownerHref and ownerName are required (no brainage04 defaults).
    New optional year.
  • Tokens renamed (old names removed):
    • --accent-cyan → --accent-primary
    • --accent → --accent-secondary
    • --accent-yellow → --accent-highlight
    • --shadow-soft / --panel-shadow → --shadow-raised
    • --font-body / --font-display → --font-mono
    • --accent-green removed
  • .action-button now controls its own size, so <button class="action-button">
    matches <a class="action-button">. Drop is-="button" and any height workarounds.

Added

  • themes/rose.css
  • Components: StatCard, ProfileCard
  • Utilities: .meta-row, .section-heading, .chip-list, .table-wrap--stack,
    site-wide reduced-motion rule
  • Presets: @brainage04/astro-shell/eslint, /prettier, /tsconfig.json
  • Reusable workflows: .github/workflows/site-validate.yml and site-deploy.yml
    (workflow_call; the deploy workflow takes an optional ref input)
  • @brainage04/astro-shell/navigation: isNavItemActive

Fixes

  • Scanline overlay now sits behind content.
  • PageHeader h1 is 16ch wide.
  • Number inputs use the --control-* tokens.
  • A root-level prefix nav item no longer matches every page under a non-root base.
  • Test files are no longer included in the package.

See the README's "Migrating from 0.4" section for step-by-step instructions.

AstroShell 0.4.2

Choose a tag to compare

@brainage04 brainage04 released this 04 Sep 05:21

Vertically center the shared not-found page content.

AstroShell 0.4.1

Choose a tag to compare

@brainage04 brainage04 released this 04 Sep 04:38

Standardize shared site configuration, reusable not-found UI, common visual utilities, and validation workflows.

v0.3.4

Choose a tag to compare

@brainage04 brainage04 released this 26 Jul 05:42

Simplifies shared page headers and increases narrow-screen content padding.

v0.3.3

Choose a tag to compare

@brainage04 brainage04 released this 24 Jul 06:30

Uses make-first wording in the shared site footer.

v0.3.2

Choose a tag to compare

@brainage04 brainage04 released this 24 Jul 06:28

Updates Astro to 7.1.3, adds standalone component diagnostics, and includes the Astro type environment.

v0.3.1

Choose a tag to compare

@brainage04 brainage04 released this 24 Jul 05:04

Forwards optional masthead branding through the shared SiteLayout component.