Accessible Astro Starter
Introduction
Accessible Astro Starter is a ready-to-use, SEO and accessibility-friendly blogging theme. It provides a solid foundation with numerous accessible components, Tailwind CSS integration, and example pages including a dynamic blog, 404 page, and MDX support.
Key Features
- Built on Astro 5.0
- Tailwind CSS integration
- Markdown and MDX support
- Excellent Lighthouse scores
- ESLint with strict accessibility settings
- Prettier integration
- View Transitions support
Accessibility Features
- Semantic HTML landmarks (
header
,main
,footer
,nav
, etc.) - Proper heading hierarchy
- ARIA attributes for enhanced screen reader support
- Keyboard-accessible navigation with dropdown support
- Skip links for main menu and content
- Dark mode with system preference detection
- Focus indicators that work on all backgrounds
- Reduced motion preferences support
- Screen reader only text utilities
Components
The starter includes several pre-built accessible components:
- Header with responsive navigation
- Footer with customizable content
- Skip links for keyboard users
- Dark mode toggle
- Responsive navigation toggle
- SEO meta component
- Dynamic blog pages with pagination
- Custom 404 error page
- And many more through the components package
Getting Started
- Clone the repository:
- Install dependencies:
- Start development server:
Available Commands
Command | Action |
---|---|
npm install | Install dependencies |
npm run dev | Start dev server at localhost:4321 |
npm run build | Build for production |
npm run preview | Preview production build |
Project Structure
Customization
Styling
The theme uses Tailwind CSS with additional SCSS utilities:
Components
Extend or modify existing components in the src/components
directory:
Contributing
Contributions are welcome! You can help improve this starter by:
- Filing an issue
- Submitting a pull request
- Starting a discussion
- Supporting the project