Skip to content

Commit

Permalink
Merge pull request #119 from markteekman/next
Browse files Browse the repository at this point in the history
Update project to v3.3.0 with Incluud branding and latest dependencies
  • Loading branch information
markteekman authored Feb 13, 2025
2 parents b75df9d + 5d8101a commit 062e4bd
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 86 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"semi": false,
"singleQuote": true,
"printWidth": 120,
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss", "prettier-plugin-css-order"],
"pluginSearchDirs": false
}
73 changes: 55 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
# Accessible Astro Starter

[![Built with Astro](https://astro.badg.es/v2/built-with-astro/small.svg)](https://astro.build)

![accessible-astro-starter](https://github.com/user-attachments/assets/f3538452-5d57-4118-b713-4631dd51bd84)

Accessible Astro Starter is a ready to use, SEO and a11y friendly blogging theme. It contains plenty of accessible components to build several page types, Tailwind CSS to help you build faster and example pages such as a dynamic Blog, 404, Markdown and MDX. This theme is designed to help you build your project faster and provide a solid base for accessibility!
A ready-to-use, SEO and accessibility-focused Astro starter template. Built with modern web standards and WCAG guidelines in mind, it provides a solid foundation for creating inclusive websites. Features Tailwind CSS integration, comprehensive component library, and example pages including a dynamic blog, 404, and MDX support.

[![LIVE DEMO](https://img.shields.io/badge/LIVE_DEMO-4ECCA3?style=for-the-badge&logo=astro&logoColor=black)](https://accessible-astro.netlify.app//)  
[![DOCUMENTATION](https://img.shields.io/badge/DOCUMENTATION-A682FF?style=for-the-badge&logo=astro&logoColor=black)](https://accessible-astro.incluud.dev/)  
[![Follow on X](https://img.shields.io/badge/X-000000?style=for-the-badge&logo=x&logoColor=white)](https://x.com/incluud)  
[![Follow on BlueSky](https://img.shields.io/badge/BlueSky-0285FF?style=for-the-badge&logo=bluesky&logoColor=white)](https://bsky.app/profile/incluud.dev)  
[![Sponsor on Open Collective](https://img.shields.io/badge/Open%20Collective-7FADF2?style=for-the-badge&logo=opencollective&logoColor=white)](https://opencollective.com/incluud)  
[![Sponsor on GitHub](https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=EA4AAA)](https://github.com/sponsors/incluud)

## Our mission

🚀 [Live Preview](https://accessible-astro.netlify.app/)
> Provide developers with accessible, easy-to-use components that make building inclusive web applications simpler and faster, without compromising on customization or performance.
## (Accessibility) Features
## (Accessibility) Features

- Astro 5.0
- Astro 5+
- Tailwind CSS support
- Prettier integration with `prettier-plugin-astro` and `prettier-plugin-tailwind`
- ESLint integration with strict accessibility settings for `eslint-plugin-jsx-a11y`
Expand All @@ -31,9 +42,9 @@ Accessible Astro Starter is a ready to use, SEO and a11y friendly blogging theme
- `prefers-reduced-motion` disables animations for users that have this preference turned on
- Ships with many components such as Accordions, Breadcrumbs, Modals, Pagination [and many more](https://accessible-astro.dev/accessible-components)
- A collection of utility classes such as breakpoints, button classes, font settings, resets and outlines in `src/assets/scss/base`
- View Transitions (⚠️ see [astro-docs](https://docs.astro.build/en/guides/view-transitions/#accessibility) for accessibility considerations)
- Astro's View Transitions

## 🚀 Getting started
## Getting started

Clone this theme locally and run any of the following commands in your terminal:

Expand All @@ -44,22 +55,48 @@ Clone this theme locally and run any of the following commands in your terminal:
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |

## 📦 Other Accessible Astro projects
## Accessible Astro projects

- [Accessible Astro Starter](https://github.com/incluud/accessible-astro-starter): Fully accessible starter for kickstarting Astro projects, with Tailwind.
- [Accessible Astro Components](https://github.com/incluud/accessible-astro-components/): Library of reusable, accessible components build for Astro.
- [Accessible Astro Dashboard](https://github.com/incluud/accessible-astro-dashboard/): User-friendly dashboard interface with a login screen and widgets.
- [Accessible Astro Docs](https://github.com/incluud/accessible-astro-docs): Comprehensive documentation for all Accessible Astro projects.

Check out our [roadmap](https://github.com/orgs/incluud/projects/4/views/1) to see what's coming next!

## Contributing

We welcome contributions to improve the documentation! You can help by:

1. [Filing an issue](https://github.com/incluud/accessible-astro-starter/issues)
2. [Submitting a pull request](https://github.com/incluud/accessible-astro-starter/pulls)
3. [Starting a discussion](https://github.com/incluud/accessible-astro-starter/discussions)
4. [Supporting on Open Collective](https://opencollective.com/incluud)

## Support this project

Your support helps us cover basic costs and continue building accessible solutions for the Astro ecosystem. By becoming a sponsor, you're not just supporting code – you're helping create a more inclusive web for everyone. Every contribution, big or small, helps maintain and improve these accessibility-focused tools.

[![Sponsor on Open Collective](https://img.shields.io/badge/Open%20Collective-7FADF2?style=for-the-badge&logo=opencollective&logoColor=white)](https://opencollective.com/incluud)

## Together we make a difference

- [Accessible Astro Dashboard](https://github.com/markteekman/accessible-astro-dashboard/)
- [Accessible Astro Components](https://github.com/markteekman/accessible-astro-components/)
We want to express our heartfelt gratitude to everyone who contributes to making the web more accessible:

## ❤️ Helping out
<a href="https://github.com/incluud/accessible-astro-starter/graphs/contributors">
<img src="https://contrib.rocks/image?repo=incluud/accessible-astro-starter" />
</a>

If you find that something isn't working right then I'm always happy to hear it to improve this starter! You can contribute in many ways and forms. Let me know by either:
- **The Astro team** for creating an amazing static site generator and the wonderful Starlight theme
- **Our contributors** who dedicate their time and expertise to improve these tools
- **Our sponsors** who help make this project sustainable
- **The web community** for embracing and promoting web accessibility
- **You, the developer** for choosing to make your projects more accessible

1. [Filing an issue](https://github.com/markteekman/accessible-astro-starter/issues)
2. [Submitting a pull request](https://github.com/markteekman/accessible-astro-starter/pulls)
3. [Starting a discussion](https://github.com/markteekman/accessible-astro-starter/discussions)
4. [Buying me a coffee!](https://www.buymeacoffee.com/markteekman)
Together, we're not just building documentation or components – we're creating a more inclusive and accessible web for everyone. Every contribution, whether it's code, documentation, bug reports, or feedback, helps move us closer to this goal. ✨

## Thank you!
Remember: Accessibility is not a feature, it's a fundamental right. Thank you for being part of this journey!

A big thank you to the creators of the awesome Astro static site generator and to all using this starter to make the web a bit more accessible for all people around the world :)
## The story behind Accessible Astro

[![buymeacoffee-button](https://user-images.githubusercontent.com/3909046/150683481-be070424-7bb0-4dd7-a3cb-43b5605163f5.png)](https://www.buymeacoffee.com/markteekman)
Accessible Astro started as a personal project by [Mark Teekman](https://github.com/markteekman) in 2021 when Astro was in its early stages, born from a passion for web accessibility and the Astro framework. What began as a single starter template grew into a family of accessible solutions, leading to the creation of [Incluud](https://github.com/incluud), an initiative with [Peter Padberg](https://github.com/peterpadberg) to make the web more inclusive. Today, these projects continue to grow and evolve with the help of our amazing community, staying true to their original purpose: making web accessibility easier for developers and better for everyone.
34 changes: 28 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,59 @@
{
"name": "accessible-astro-starter",
"description": "An Accessible Starter Theme for Astro including several accessibility features and tools to help you build faster.",
"version": "3.2.5",
"author": "Mark Teekman",
"version": "3.3.0",
"author": "Incluud",
"license": "MIT",
"homepage": "https://accessible-astro.netlify.app/",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview"
},
"keywords": [
"astro",
"astro-component",
"astro-components",
"accessible",
"accessibility",
"a11y",
"wcag",
"responsive",
"ui-library",
"ui-components",
"blog"
],
"repository": {
"type": "git",
"url": "git+https://github.com/incluud/accessible-astro-starter.git"
},
"bugs": {
"url": "https://github.com/incluud/accessible-astro-starter/issues"
},
"devDependencies": {
"@astrojs/mdx": "^4.0.3",
"@astrojs/mdx": "^4.0.8",
"@astrojs/partytown": "^2.1.3",
"@astrojs/tailwind": "^5.1.4",
"@astrojs/tailwind": "^6.0.0",
"@iconify-json/ion": "^1.2.1",
"@iconify-json/mdi": "^1.2.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"astro": "^5.1.3",
"astro": "^5.3.0",
"astro-compress": "^2.3.5",
"astro-icon": "^1.1.4",
"eslint": "^8.57.0",
"eslint-plugin-astro": "^0.31.4",
"eslint-plugin-jsx-a11y": "^6.10.2",
"prettier": "^3.4.1",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-css-order": "^2.1.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"sass": "^1.81.0",
"svgo": "^3.3.2",
"tailwindcss": "^3.4.15"
},
"dependencies": {
"accessible-astro-components": "^3.0.1"
"accessible-astro-components": "^4.0.1"
}
}
6 changes: 3 additions & 3 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
import Navigation from '../components/Navigation.astro'
import { SkipLinks } from 'accessible-astro-components'
import { SkipLink } from 'accessible-astro-components'
import { Icon } from 'astro-icon/components'
---

<header>
<SkipLinks />
<SkipLink />
<Navigation>
<li class="menu-item">
<a href="/">Home</a>
Expand All @@ -28,7 +28,7 @@ import { Icon } from 'astro-icon/components'
</ul>
</li>
<li class="menu-item">
<a href="#" title="external link" rel="external noopener noreferrer">External Link</a>
<a href="https://accessible-astro.incluud.dev/" rel="external">Docs</a>
</li>
<li class="menu-item type-icon">
<a href="https://github.com/markteekman/accessible-astro-starter" title="Go to the GitHub page">
Expand Down
7 changes: 2 additions & 5 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ const { src = '/astronaut-hero-img.webp' } = Astro.props
<slot><span class="text-gradient">Accessible</span> Starter for Astro</slot>
</h1>
<div class="flex flex-col gap-3 min-[500px]:flex-row">
<a class="button has-icon" href="https://github.com/markteekman/accessible-astro-starter">
<a class="button has-icon" href="https://github.com/incluud/accessible-astro-starter">
<Icon name="ion:star-outline" />
Star on GitHub
</a>
<a
class="button has-icon color-secondary"
href="https://github.com/markteekman/accessible-astro-starter/blob/main/README.md"
>
<a class="button has-icon color-secondary" href="https://accessible-astro.incluud.dev/">
<Icon name="ion:bookmark-outline" />
Read the Docs
</a>
Expand Down
81 changes: 42 additions & 39 deletions src/components/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ import logo from '../assets/img/logo.svg'
#main-navigation {
> .container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
justify-content: space-between;
}

&.is-desktop {
.desktop-menu {
visibility: visible;
position: static;
visibility: visible;
}

.mobile-menu {
Expand All @@ -254,10 +254,10 @@ import logo from '../assets/img/logo.svg'
}

.desktop-menu {
visibility: hidden;
z-index: -99;
position: absolute;
left: 0;
visibility: hidden;
z-index: -99;
}

.responsive-toggle {
Expand All @@ -279,9 +279,9 @@ import logo from '../assets/img/logo.svg'

a,
button {
text-decoration: none;
font-size: 1.125rem;
line-height: 1.6875rem;
text-decoration: none;
}

a:hover,
Expand All @@ -290,8 +290,8 @@ import logo from '../assets/img/logo.svg'
.has-dropdown > button:hover,
.has-dropdown > button:focus {
text-decoration: underline;
text-decoration-thickness: 1px;
text-decoration-style: wavy;
text-decoration-thickness: 1px;
text-underline-offset: 7px;
}

Expand All @@ -317,8 +317,8 @@ import logo from '../assets/img/logo.svg'
a,
button {
display: block;
width: 100%;
padding: 0.5rem 0;
width: 100%;
}
}

Expand All @@ -329,9 +329,9 @@ import logo from '../assets/img/logo.svg'
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0;
margin-top: -1px;
border: none;
padding: 0;
color: var(--action-color);

&:hover {
Expand All @@ -343,20 +343,20 @@ import logo from '../assets/img/logo.svg'
}

&::after {
content: '';
width: 0.85rem;
height: 0.75em;
transform: rotate(135deg);
margin-top: -0.25rem;
border-style: solid;
border-width: 0.2em 0.2em 0 0;
border-style: solid;
border-color: var(--action-color);
transform: rotate(135deg);
width: 0.85rem;
height: 0.75em;
content: '';
}

&.show {
&::after {
margin-top: 0.25rem;
transform: rotate(-45deg);
margin-top: 0.25rem;
}

~ ul {
Expand All @@ -370,45 +370,48 @@ import logo from '../assets/img/logo.svg'
ul {
display: none;
position: absolute;
z-index: 100;
min-width: 260px;
top: 125%;
right: 0;
bottom: auto;
left: 0;
padding: 1rem;
background-color: var(--neutral-background);
border: 2px solid black;
z-index: 100;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
border: 2px solid black;
background-color: var(--neutral-background);
padding: 1rem;
min-width: 260px;
}
}
}

.darkmode-toggle {
padding: 0;
border: none;
.darkmode-toggle {
border: none;
padding: 0;

svg {
width: 30px;
margin-top: 4px;
}

svg path {
fill: var(--action-color);
}
.icon {
margin-top: 4px;
inline-size: 30px;
block-size: 30px;
}

&:hover {
svg path {
fill: var(--action-color-state);
fill: var(--action-color);
}
}

&:focus {
@include outline;

&:not(:focus-visible) {
outline: none;
&:hover {
box-shadow: none;

svg path {
fill: var(--action-color-state);
}
}

&:focus {
@include outline;

&:not(:focus-visible) {
outline: none;
box-shadow: none;
}
}
}
}
Expand Down
Loading

0 comments on commit 062e4bd

Please sign in to comment.