github withastro/starlight @astrojs/starlight@0.7.0

latest releases: @astrojs/starlight@0.28.2, @astrojs/starlight@0.28.1, @astrojs/starlight@0.28.0...
13 months ago

Minor Changes

  • #441 0119a49 Thanks @lorenzolewis! - Add support for hiding entries from an autogenerated sidebar:

    ---
    title: About this project
    sidebar:
      hidden: true
    ---
  • #470 d076aec Thanks @delucis! - Drop support for the --sl-hue-accent CSS custom property.

    ⚠️ BREAKING CHANGE — In previous Starlight versions you could control the accent color by setting the --sl-hue-accent custom property. This could result in inaccessible color contrast and unpredictable results.

    You must now set accent colors directly. If you relied on setting --sl-hue-accent, migrate by setting light and dark mode colors in your custom CSS:

    :root {
    	--sl-hue-accent: 234;
    	--sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%);
    	--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%);
    	--sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%);
    }
    
    :root[data-theme='light'] {
    	--sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%);
    	--sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%);
    	--sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%);
    }

    The new color theme editor might help if you’d prefer to set a new color scheme.

  • #397 73eb5e6 Thanks @lorenzolewis! - Add LinkCard component

Patch Changes

  • #460 2e0fb90 Thanks @HiDeoo! - Fix current page highlight in sidebar for URLs with no trailing slash

  • #467 461a5d5 Thanks @delucis! - Fix type error for downstream tsc users

  • #475 06a205e Thanks @Yan-Thomas! - Locales whose language tag includes a regional subtag now use built-in UI translations for their base language. For example, a locale with a language of pt-BR will use our pt UI translations.

  • #473 6a7692a Thanks @HiDeoo! - Fix issue with nested <Tabs> components

Don't miss a new starlight release

NewReleases is sending notifications on new releases.