v4.0.0
Customizability, Robustness & Modern Web
This major release focuses on making components more robust, customizable, and performant while improving accessibility and internationalization support. We also moved the package to our new Incluud organisation as part of the effort to streamline our development processes and enhance collaboration within the community. This transition allows us to better manage contributions, improve project visibility, and ensure a more cohesive approach to future updates and features.
🎯 Key Highlights
- Modernized CSS architecture with logical properties and modern selectors
- Enhanced accessibility and internationalization support
- Improved performance through better browser APIs
- Improved TypeScript support
⚠️ Breaking Changes
- Removed
is:global()
styles to prevent style creep #90 - Simplified class names and introduced
:where()
for lower specificity - Switched to logical properties for better RTL support
- Migrated to HSL colors with
light-dark()
functions - Reduced client-side JavaScript in favor of browser APIs
- Renamed
SkipLinks
toSkipLink
🎨 Design System Updates
- Standardized component styling with consistent tokens
- Improved dark mode support with
light-dark()
color system - Added
prefers-reduced-motion
support - Enhanced focus states and keyboard navigation
✨ New Features
- Added
Video
component with YouTube embed support - Universal
class
prop support for all components - Improved i18n support through customizable text props
- Enhanced slot system for better component composition
🔄 Component Updates
Accessibility & UX
Accordion
: Added proper heading structure supportBreadcrumbs
: Added icon-only support with screen reader textCard
: Now uses<article>
instead of<div>
SkipLink
: Added translatable text supportNotification
: Switched to semantic<aside>
with ARIA live regions
Enhanced Customization
Accordion
: Added chevron variant with configurable positioningAccordion
: Addedopen
prop for an initial open state for an itemBreadcrumbs
: Added customizable separatorsCard
: Added meta information slotDarkMode
: Added support for custom iconsModal
: Improved styling and interaction patternsNotification
: Added Starlight-inspired color schemesPagination
: Enhanced styling options
📚 Documentation
- New documentation site at Accessible Astro Docs #75
- Added migration guide from v3 to v4
- Improved component examples and usage guidelines