Astro Orbit is a free Astro theme for a portfolio and a blog. It’s the second theme I’ve built for the Astro community, after Astro Rocket. It’s MIT-licensed and on GitHub.
I built it while I was working on a new design for my own website, hansmartens.dev. I liked the 3D animation that Astro Orbit has now, so I first built a theme for myself. Then I thought other developers might like it as well, for their own website or project, so I made the theme public on GitHub. It comes with demo content, and I like the result.
Made from my previous website
Astro Orbit is a fork of my previous website: I made the theme from it.
The theme also has a demo of its own, with a fictive designer, Alex Morgan, and six projects: orbit.hansmartens.dev.
The droplet
The homepage hero has a 3D animation, made with three.js. A droplet comes out of the hero, follows a track down the homepage and turns into a card whose words light up one by one as you scroll. Then the card becomes a droplet again, follows the track further and turns into the first project card.
The 3D scenes only run on a device with a graphics chip. Other devices see a still picture of the hero.
What’s in it
- Homepage: the 3D hero, the droplet’s track and its card, the latest six projects, your services in rows that open one at a time, quotes from clients, the latest four posts, and a sign-off with a contact button.
- About page: a hero with your photo or your mark, your facts, the years of your work that count up as they come into view, how you work, recent projects and the tools you use.
- Projects: a page for each project, with a hero picture, a gallery, videos and sections of text.
- Blog: posts in Markdown or MDX, with a table of contents and search. Each post gets a card picture with an icon and a short phrase, made when the site is built, so a post doesn’t need an image of its own.
- Contact: a contact form that sends messages to your email through Resend.
- Components: the 46 design-system components of Velocity 2, shown on a page of their own in the demo.
- Languages: English, Spanish, French and Dutch, and another language takes one file to translate.
- For search engines and AI assistants: a sitemap, an RSS feed, structured data and an
llms.txtfile. - Fonts: Outfit, Archivo and IBM Plex Mono, served by the website itself.
It builds for Vercel.
Making it yours
Most of what makes the website yours is in two files. site.config.ts has your name, your wordmark, your email and your social links. theme.config.ts has the text on the homepage, the About page, the menu and the sign-off, and sets your brand colour, the language of the site, and whether visitors can switch between dark and light mode. Change that file, write your posts and add your projects, and the theme is your website.
The demo’s blog has a post for each of these, starting with Getting Started with Astro Orbit.
Where it comes from
Astro Orbit started as a fork of SWM26, which Southwell Media were working on at the time. That repository is no longer public. SWM26 is built on Velocity, Southwell Media’s Astro starter. The credit for that work goes to Southwell Media.
After the fork, I worked on the theme for one week: the design, updates and Lighthouse optimisation. The two steps that took it to 100 are in The Lighthouse Score Explained.
- Performance: 100
- Accessibility: 100
- Best Practices: 100
- SEO: 100
Lighthouse on mobile for orbit.hansmartens.dev, the demo’s homepage. See the PageSpeed report.
What’s next
Astro Orbit is in the official Astro themes directory now: Astro Orbit on astro.build. I keep working on the theme after its release, to improve it. Issues and tips are welcome on GitHub.