Skip to content

v0.5.0

Choose a tag to compare

@brainage04 brainage04 released this 23 Sep 16:42
· 10 commits to main since this release

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.