Skip to content

News

Introducing Velocity: Our Internal Astro Starter, Now Open Source

Velocity is the Astro 6 and Tailwind CSS v4 starter Southwell Media builds client sites on. It's now MIT-licensed, with a CLI on npm. Here's what's in it and why we released it.

News No. 01

Every new client site used to start the same way. Set up Tailwind. Copy the SEO component from the last project. Rebuild the contact form. Then, two weeks in, add a second language to a codebase that wasn’t designed for one.

None of that is hard. It’s just the same work, repeated on every project, and it adds up.

Velocity is the starter we built to stop repeating it. We’ve used it internally for client work, and today we’re releasing it under the MIT license, together with a CLI that scaffolds a new project in one command.

What’s in it

Velocity is a starting point for marketing sites, blogs and content-driven sites. It runs on Astro 6 (currently in beta) and Tailwind CSS v4, with TypeScript throughout and React for the islands that need it.

AreaWhat you get
Design tokensAn OKLCH palette and semantic tokens on top of it, with Tailwind classes like bg-background and text-foreground
UI componentsButtons, form inputs, cards, badges, alerts, dialogs, tabs, tooltips, dropdowns, avatars and skeletons, plus a Hero and CTA
FormsContactForm and NewsletterForm, backed by API routes with Zod validation and a honeypot field
SEOMeta tags, Open Graph, Twitter cards, JSON-LD, a sitemap and a generated robots.txt
Share imagesOpen Graph images generated with Satori for every page and post
ContentType-safe collections for blog posts, pages, authors and FAQs, with an RSS feed
Dark modeFollows the system preference, with a ThemeToggle component
DeploymentConfig files for Vercel, Netlify and Cloudflare

Analytics are opt-in: set PUBLIC_GA_MEASUREMENT_ID or PUBLIC_GTM_ID in .env and they load. In development, /components shows every component in one place.

Rebrand in one file

The token system is the part we’d point to first. Components never use raw colors. They use semantic tokens like --background, --foreground and --accent, and those point at a palette of grays and a brand scale, all in OKLCH:

:root {
  --brand-400: oklch(68.5% 0.19 40);
  --brand-500: oklch(62.5% 0.22 38);
  --brand-600: oklch(53.2% 0.19 38);
  /* ...50 through 900 */
}

To rebrand a site, change the hue in the brand scale in src/styles/tokens/colors.css. Because OKLCH keeps lightness steady as the hue changes, the steps stay evenly spaced, and everything built on the --accent tokens follows. No component files to edit.

i18n from the start

Astro gives you locale detection and URL helpers. Everything after that is yours to build: the folder structure for each language, loading translations, a language switcher that produces the right paths, and hreflang tags. We were solving those the same way on every multilingual project, so Velocity solves them once.

Run the CLI with --i18n and your project gets:

  • English, Spanish and French, with English at the root and the others under /es/ and /fr/
  • A translation file for each language
  • A working language switcher
  • Translated navigation
  • Hreflang tags and a sitemap that knows about every locale

Without the flag, you get a single-language project with less code to read.

The CLI

create-velocity-astro is on npm today:

npm create velocity-astro@latest my-site

It works with pnpm, yarn and bun as well. Run it without flags and it asks what you want, or choose up front:

FlagWhat it adds
--componentsThe UI component library, or only the categories you pick (--components=ui,patterns)
--i18nLocale routing, translations and the language switcher
--demoThe demo landing page and sample content

Leave them off for a minimal base. The CLI fetches the latest Velocity from GitHub, applies your choices, sets the project name, initializes git and installs dependencies.

Components are tracked in component-registry.json, which records each component’s files and what it depends on. When you pick a category, the CLI pulls in everything those components need.

Why open-source it

We build client websites. We’re not a template company and don’t plan to become one. Velocity exists to make our own projects faster, and releasing it costs us very little.

It also makes our work easy to judge. If you’re deciding whether to hire us, you can read our component architecture, accessibility patterns and code quality without a sales call. And if you only want a solid Astro starter, it’s yours.

What “beta” means here

Velocity tracks Astro 6, which is still in beta, so Velocity is too. Expect changes before Astro 6 is stable. We’ll tag the first public beta, v0.1.0-beta, on GitHub in the next few days, and from there releases will be tagged as they land.

Velocity needs Node 22.12.0 or later, because Astro 6 does.

If something breaks, or you want a component we don’t have, open an issue.

Get it

Scaffold a project:

npm create velocity-astro@latest my-site
cd my-site
npm run dev

The source is at github.com/southwellmedia/velocity, the CLI is at github.com/southwellmedia/create-velocity-astro and on npm. For the agency side of the story, read We Open-Sourced Our Internal Astro Boilerplate on the Southwell Media blog.

All posts
Share:

Related posts