🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Insights & Documentation

Engineering High-Performance Web Themes

Deep-dives into Astro framework, Content Collections, MDX components, web performance optimization, and theme design.

Recent Articles

Astro Container API: Test and Render Components

The Astro container API renders .astro components outside a page: unit test them with Vitest, pass props, slots and locals, render to Response, and add renderers.

Read ➔

Astro Integration API: Write Your Own Integration

Use the Astro integration API to write your own integration: hooks, updateConfig, injectRoute, injectScript, addMiddleware, build:done output and publishing to npm.

Read ➔

Astro Animation: CSS, Motion, GSAP and More

Astro animation options compared: CSS transitions and scroll-driven animations, view transitions, Motion, GSAP, AOS, Lenis and auto-animate, with code for each.

Read ➔

Astro Comments: Comment Systems for Astro Blogs

Add Astro comments to a static blog: Giscus, utterances, Disqus, Remark42, Cusdis, Hyvor Talk, Bluesky replies and webmentions compared, with lazy-loading code.

Read ➔

Astro Contact Form on a Static Site: 4 Ways

Add an Astro contact form to a static site four ways: a form service, Netlify Forms, a Cloudflare Pages Function, or Astro Actions. With spam protection and code.

Read ➔

Astro Core Web Vitals: Fix LCP, INP and CLS

Astro Core Web Vitals guide: what LCP, INP and CLS measure, how Astro helps by default, and the exact Image, font and script fixes that move each metric.

Read ➔

Astro Dark Mode Toggle Without the Flash

Add Astro dark mode with no flash of the wrong theme: an inline head script, CSS variables, an accessible toggle, Tailwind support, and View Transitions fixes.

Read ➔

Astro CSS Variables: Design Tokens That Scale

Use Astro CSS variables as design tokens: define colors, type and spacing in :root, layer semantic tokens, theme with data attributes, and pass props with define:vars.

Read ➔

Astro Dev Toolbar: Built-in Apps and Custom Apps

The Astro dev toolbar explained: use Inspect and Audit to find island and accessibility issues, change settings, disable it, and build your own toolbar app.

Read ➔

Astro Ecommerce: 6 Ways to Sell From an Astro Site

Astro ecommerce options compared: Stripe Payment Links, Shopify Buy Button and Storefront API, Snipcart, merchant-of-record checkouts and headless Medusa, with code.

Read ➔

Ecommerce Website Pages Every Online Store Needs

The ecommerce website pages every online store needs, from home, collection and product pages to cart, checkout, policies and FAQ, and how to build each in Astro.

Read ➔

Astro for Freelancers: Ship Client Sites Faster

Astro for freelance web developers: why it fits client work, how to price and scope it, a lean project workflow, editing options for clients, and what to avoid.

Read ➔

Astro Form Backend Options for Static Sites

Astro form backend options for static sites: Netlify Forms, Formspree, Web3Forms, Basin, Formspark, or Astro Actions on a server, plus spam protection and code.

Read ➔

Astro GitHub Actions: 6 Workflows Worth Copying

Astro GitHub Actions workflows you can copy: type-check and build on every PR, deploy to GitHub Pages or Cloudflare, cache images, rebuild on a schedule, check links.

Read ➔

Astro Google Analytics: Add GA4 the Right Way

Astro Google Analytics setup: add the GA4 gtag snippet with is:inline, load it only in production, track view transitions, send events and handle Consent Mode.

Read ➔

Astro Image and Picture Components Explained

Astro image guide: use the Image and Picture components from astro:assets for optimized, responsive images, plus remote images, layouts, priority and getImage.

Read ➔

Astro Islands Architecture Explained

Astro islands explained: how Astro renders a page to static HTML, hydrates only the components you mark with client directives, and defers server islands.

Read ➔

Astro Launch Checklist: 50 Checks Before Go-Live

An Astro launch checklist for production: config, SEO tags, sitemap, redirects, images, performance, accessibility, forms, analytics, hosting and the first week after.

Read ➔

Astro Maintenance: A Monthly and Yearly Checklist

Astro maintenance made routine: what to check monthly, quarterly and yearly, from dependency updates and Astro upgrades to broken links, Core Web Vitals and backups.

Read ➔

Astro Markdown: 12 Features You Should Be Using

Astro Markdown does more than headings and lists: GFM tables, heading IDs, dual-theme code, optimized images, directives, math and more, all in plain .md files.

Read ➔

Astro Markdown Pipeline: How .md Becomes HTML

The Astro Markdown pipeline explained: frontmatter, the Sätteri and unified processors, syntax highlighting, heading IDs, images and how plugins hook into each stage.

Read ➔

Astro MDX: Use Components Inside Markdown

Astro MDX guide: install @astrojs/mdx, import components into Markdown, use expressions and exports, render MDX from collections, and avoid syntax errors.

Read ➔

Astro and Payload CMS: Fetch, Render and Rebuild

Use Payload CMS with Astro: run Payload as its own app, load posts with a content loader over the REST API, render Lexical rich text, and rebuild on publish.

Read ➔

Astro Portfolio Ideas: 10 Sites by Profession

Astro portfolio ideas for 10 professions: the pages each one needs, the Astro features that fit, a real theme example, and a project collection to start from.

Read ➔

Astro Project Structure, Folder by Folder

Astro project structure explained: what src/pages, components, layouts, content, public, astro.config.mjs and the generated .astro folder do, and what's optional.

Read ➔

Astro Props: How to Type Them with TypeScript

Type Astro props with TypeScript: the Props interface, defaults, optional props, HTML attribute types, polymorphic components, ComponentProps and getStaticPaths props.

Read ➔

Astro Sanity Guide: Connect, Query and Rebuild

Astro Sanity setup: install @sanity/astro, query with GROQ, build static pages with getStaticPaths, render Portable Text and images, embed Studio, and rebuild on publish.

Read ➔

Astro Security Checklist: 20 Checks Before Launch

An Astro security checklist for static and server sites: secrets with astro:env, CSP, security headers, safe set:html, validated actions, cookies and dependencies.

Read ➔

Astro Shiki Syntax Highlighting: Themes and Setup

Astro Shiki syntax highlighting explained: the default theme, shikiConfig options, light and dark dual themes, the Code component, transformers, and when to use Prism.

Read ➔

Astro Slots and Named Slots: A Practical Guide

Astro slots explained with code: default and named slots, fallback content, Fragment slots, Astro.slots.has(), passing slots through layouts, and slots in React.

Read ➔

Starlight Plugins Worth Installing for Astro Docs

The Starlight plugins worth installing: link validation, image zoom, a blog, sidebar topics, API docs from TypeDoc and OpenAPI, versioning, llms.txt and DocSearch.

Read ➔

Astro SVG Components: Import SVGs as Components

Astro SVG components explained: import an .svg file and render it inline, override attributes with props, style icons with currentColor, and optimise SVGs with SVGO.

Read ➔

Astro Tutorial: Build and Deploy Your First Site

An Astro tutorial for beginners: create a project, add pages, a layout, a component and a Markdown blog, then build and deploy it to a static host for free.

Read ➔

Astro Versions: Release History from 1.0 to Astro 7

Astro versions explained: what each major release from 1.0 to Astro 7 added and removed, the current version (7.4), and which version an old tutorial was written for.

Read ➔

Astro vs Ghost for Publishing: Which to Use

Astro vs Ghost for publishing: Ghost bundles editor, memberships and newsletters; Astro gives a faster front end you own. Compare them, or use Ghost headless.

Read ➔

Next.js Static Export vs Astro for Static Sites

Next.js static export (output: 'export') vs Astro: what each builds, which features stop working, how images and JavaScript differ, and which suits a static site.

Read ➔

Astro vs Remix (React Router 7): Which to Choose

Astro vs Remix in 2026: Remix v2 now lives on as React Router 7. Compare rendering, data loading, JavaScript shipped and hosting, and see which fits your project.

Read ➔

Astro Website Cost: What You Actually Pay For

Astro website cost explained: the framework is free, so you pay for design, development time, content, a domain and optional CMS or hosting. See every line item.

Read ➔

Best Astro Agency Templates for Studios in 2026

The best Astro agency template picks for 2026: free starters, paid studio themes with case studies and brief forms, and the checks to run before you choose one.

Read ➔

Best Astro App Landing Page Templates for 2026

The best Astro app landing page templates for 2026: what a mobile app site needs, free starting points, paid themes with store badges and screenshots, and setup tips.

Read ➔

Best Astro Car Dealer Template Picks for Automotive

The best Astro car dealer template options for dealerships, garages and rentals in 2026: what the site needs, free starting points, paid themes and an inventory pattern.

Read ➔

Best Astro Designer Portfolio Templates for 2026

The best Astro designer portfolio template options in 2026: case study layouts, free themes, paid picks for UX, product and brand designers, and code to copy.

Read ➔

Best Astro Developer Portfolio Templates in 2026

The best Astro developer portfolio templates in 2026: what hiring managers look for, free themes, paid picks, and a build-time GitHub projects loader to copy.

Read ➔

Best Astro Docs Templates: Starlight and Beyond

The best Astro docs template options in 2026: Starlight and its starters, docs-plus-marketing themes, paid documentation templates, and how to pick one for your project.

Read ➔

Best Astro Fitness Template Picks for Gyms in 2026

The best Astro fitness template options for gyms, studios and personal trainers in 2026: what the site needs, free starting points, paid themes and a timetable pattern.

Read ➔

Best Astro Interior Design Template Picks for 2026

The best Astro interior design template options for 2026: what a design studio site needs, free starting points, paid themes and a project gallery you can reuse.

Read ➔

Best Astro Landing Page Templates in 2026

The best Astro landing page template options for 2026: free picks like AstroWind and Astroship, paid waitlist and product themes, plus a section-based build pattern.

Read ➔

Best Astro Magazine Template Picks for News Sites

The best Astro magazine template options for news and editorial sites in 2026: what a publication needs, free starting points, paid themes and authors plus sections.

Read ➔

Best Astro Personal Website Templates in 2026

The best Astro personal website template options in 2026: what a personal site needs, free themes, paid picks, and a single site config pattern to copy.

Read ➔

Best Astro Restaurant Templates for Menus in 2026

The best Astro restaurant template options for 2026: what a restaurant site needs, free starting points, paid themes with menu and reservation pages, and setup tips.

Read ➔

Best Astro SaaS Templates for Startups in 2026

The best Astro SaaS template options in 2026: free picks like AstroWind and Astroship, paid startup themes with pricing and docs pages, and what to check first.

Read ➔

Best Free Astro Themes in 2026 (and When to Pay)

The best free Astro themes for blogs, docs, portfolios and business sites, how to start from one in a single command, and when a paid theme is worth the money.

Read ➔

Astro Changelog: Build a Product Changelog Page

Build an Astro changelog: entries as a Content Collection, labelled updates, version pages, an RSS feed, a JSON endpoint for in-app widgets and GitHub release imports.

Read ➔

Build a Medical Clinic Website with Astro

Build a medical clinic website with Astro: treatments and practitioners as content collections, booking links, MedicalClinic schema, privacy-safe forms, hosting.

Read ➔

Starlight Tutorial: Build a Docs Site with Astro

A step-by-step Starlight tutorial: create the project, write pages, configure the sidebar, add components, search, i18n and custom styles, then deploy your docs site.

Read ➔

Build a Newsletter Archive Website with Astro

Build a newsletter archive website with Astro: issues as a Content Collection, a yearly archive, signup forms, RSS, search and imports from your provider.

Read ➔

Astro Ecommerce Tutorial: Build an Online Store

An Astro ecommerce tutorial: product collection, product pages, a lightweight cart, Stripe Checkout through an Astro Action, Product schema and the right architecture.

Read ➔

Build a Photography Portfolio with Astro

Build a fast photography portfolio with Astro: galleries as content collections, responsive AVIF and WebP images, a CSS lightbox, image SEO, and cheap static hosting.

Read ➔

Build a Restaurant Website with Astro: Step by Step

Build a restaurant website with Astro: an editable menu in YAML, opening hours, reservations, a lazy map, Restaurant structured data, fast photos and free static hosting.

Read ➔

Astro CSS Framework Options Beyond Tailwind

Choosing an Astro CSS framework other than Tailwind: UnoCSS, Open Props, Pico CSS, Bootstrap, Bulma, Panda CSS and plain scoped CSS, with setup code and trade-offs.

Read ➔

How to Customize an Astro Theme You Bought

How to customize an Astro theme step by step: site config, colors, fonts, logo, navigation, content and pages, plus how to keep receiving theme updates afterwards.

Read ➔

Fix Largest Contentful Paint (LCP) on Astro Sites

Fix Largest Contentful Paint on Astro sites: find the LCP element, cut TTFB, load the hero image with priority, preload fonts, inline CSS, and avoid client-only heroes.

Read ➔

Lantern Broth Astro Theme: Menus and Reservations

A tour of the Lantern Broth Astro theme for restaurants: a menu built as a content collection, per-dish pages, locations and hours, and a booth reservation form.

Read ➔

How to Install an Astro Theme Step by Step (2026)

How to install an Astro theme step by step: requirements, getting the code from GitHub or a purchase, npm install, running locally, configuring and deploying.

Read ➔

Is Astro Good for Blogs? An Honest Answer

Is Astro good for blogs? Yes for most: fast static pages, typed Markdown and MDX, RSS and sitemaps. Here's what it does well, where it falls short, and the fixes.

Read ➔

Landing Page Sections: The 10 Every Site Needs

The landing page sections every site needs, in order: hero, social proof, problem, features, how it works, pricing, FAQ and CTA, with Astro component code.

Read ➔

Create React App to Astro: A Migration Guide

Migrate from Create React App to Astro: run the app as one island first, then split routes into pages, fix env vars, images and SVGs, and swap Jest for Vitest.

Read ➔

Ghost to Astro: Migrate Your Blog Step by Step

Migrate from Ghost to Astro: pull posts with the Content API, convert HTML to Markdown, download images, keep Ghost URLs, and move members to a newsletter tool.

Read ➔

Squarespace to Astro: Step-by-Step Migration

Migrate from Squarespace to Astro: export the WordPress XML, convert posts to Markdown, download images, rebuild pages, keep blog URLs and 301 the rest.

Read ➔

VuePress to Starlight: A Docs Migration Guide

Migrate a VuePress docs site to Starlight: move Markdown, convert containers to asides, rebuild the sidebar, swap Vue components and redirect old .html URLs.

Read ➔

Webflow to Astro: A Practical Migration Guide

Migrate from Webflow to Astro: use code export for layouts, export CMS collections to CSV, rebuild interactions and forms, keep URLs and redirect what changes.

Read ➔

MPA vs SPA: Why Astro Is a Multi-Page Framework

MPA vs SPA explained: how multi-page and single-page apps load, route and ship JavaScript, the real trade-offs, and why Astro chose MPA with optional client routing.

Read ➔

Pagefind vs Algolia for Astro Site Search

Pagefind vs Algolia for Astro: static index vs hosted API, setup, cost, relevance, filters, privacy and scale compared, with working code for both and a clear verdict.

Read ➔

Partial Hydration vs Progressive Hydration, Explained

Partial hydration hydrates only some components; progressive hydration spreads it over time. How they differ, how Astro does both, and where resumability fits.

Read ➔

Plausible vs Umami vs Fathom for Astro Sites

Plausible vs Umami vs Fathom compared for Astro: open source, self-hosting, privacy, features, events and setup in a layout, with code and a clear pick for each site.

Read ➔

How to Scope and Quote an Astro Website Project

Write a website project quote for an Astro build: scope pages and features, estimate hours per line item, price content and CMS work, and set clear change rules.

Read ➔

React in Astro: How to Use React Components

Use React in Astro: install @astrojs/react, render components, hydrate them with client directives, share state between islands, and avoid the common pitfalls.

Read ➔

Update an Astro Theme Without Losing Your Edits

How to update an Astro theme you bought without losing edits: keep changes in config and content, merge releases on a branch, resolve conflicts and test the build.

Read ➔

What Is a Headless CMS? How It Works With Astro

What a headless CMS is, how it differs from a traditional CMS, API-based vs Git-based options, pros and cons, and how a headless CMS connects to an Astro website.

Read ➔

When Not to Use Astro: Limitations and Better Fits

Astro limitations, honestly: when an app-like UI, heavy shared client state, a no-code editor team or real-time features make another framework the better choice.

Read ➔

Where to Buy Astro Themes in 2026

Where to buy Astro themes in 2026: the official directory, GitHub, independent theme sellers and marketplaces, compared, plus what to check before you pay.

Read ➔

An Accessible Astro Accordion Component

Build an Astro accordion two ways: zero-JS with details and summary, or a button-based version with aria-expanded. Copy-paste code, styles and when to use each.

Read ➔

Astro Breadcrumbs with BreadcrumbList Schema

A copy-paste Astro breadcrumbs component: accessible nav markup, aria-current on the last item, and BreadcrumbList JSON-LD built from the same list of links.

Read ➔

Astro Components: The Complete Guide

Astro components are .astro files that render HTML on the server: frontmatter, props, slots, scoped styles, scripts and islands, with Astro 7 examples.

Read ➔

astro.config.mjs Cheatsheet

An astro.config.mjs cheatsheet for Astro 7: site, base, trailingSlash, output, adapter, build, image, fonts, prefetch, redirects, i18n, env and markdown options.

Read ➔

Astro Content Collections API Cheatsheet

Astro content collections cheatsheet: defineCollection, glob() and file() loaders, Zod schemas, getCollection, getEntry, render, reference and live collections.

Read ➔

A Lightweight Astro Cookie Banner

A small Astro cookie banner that loads analytics only after consent: accept and decline buttons, choice saved in localStorage, and a link to change it later.

Read ➔

Astro Copy Code Button for Every Code Block

Add an Astro copy code button to every Markdown code block with one small script: no plugin, keyboard accessible, with a live status message for screen readers.

Read ➔

A CSS-Only Astro Carousel for Testimonials

Build an Astro carousel with CSS scroll snap: swipeable on touch, keyboard scrollable, and zero JavaScript. Optional prev/next buttons add a few lines of script.

Read ➔

Astro Directives Cheatsheet

All 16 Astro directives on one page: client:* hydration, server:defer, set:html, class:list, define:vars, is:inline, is:global and transition:*.

Read ➔

An Astro FAQ Section with FAQPage Schema

A reusable Astro FAQ component: questions from data, rendered as accessible details elements, with matching FAQPage schema JSON-LD generated from the same array.

Read ➔

The Astro Global: Every Property on One Page

The Astro global object explained: Astro.props, params, url, site, request, cookies, locals, slots, redirect, rewrite, session and more, with what each one returns.

Read ➔

The Astro Glossary: Every Term Explained

An Astro glossary of 50 terms: islands, hydration, adapters, integrations, content collections, loaders, server islands, actions and more.

Read ➔

Choosing a Headless CMS for Astro

How to choose an Astro CMS: when Markdown in Git is enough, Git-based vs API-based CMS options, how loaders connect them, and rebuilding on publish.

Read ➔

Astro Image and Picture Props Cheatsheet

Every Astro image prop on one page: Image and Picture props, layout values, widths, sizes, densities, priority, formats, getImage() and image config options.

Read ➔

An Astro Gallery with a Lightbox

A copy-paste Astro gallery: optimised thumbnails with the Image component, full-size versions from getImage(), and a lightbox on the native dialog element.

Read ➔

Astro Interview Questions for Developers

Astro interview questions with model answers, from basics to advanced: islands, directives, content collections, routing, SSR, performance and debugging.

Read ➔

Accessible Astro Mobile Menu Component

A copy-paste Astro mobile menu: a button with aria-expanded, a nav that hides on small screens, Escape to close, and under 1 KB of JavaScript. No framework needed.

Read ➔

An Astro Modal Built on the dialog Element

Build an Astro modal with the native dialog element: showModal() gives focus trapping, Escape to close and a backdrop for free. Copy-paste component and styles.

Read ➔

Astro Myths That Won't Die

Common Astro myths checked against Astro 7: static only, no interactivity, blogs only, needs React, can't scale. What's actually true now.

Read ➔

Plain Astro or Starlight for Your Docs?

Astro or Starlight for documentation? Starlight gives search, sidebar, i18n and accessible components out of the box; plain Astro suits docs inside a branded site.

Read ➔

A Reusable Astro Pagination Component

An Astro pagination component for paginate(): previous/next links, numbered pages with gaps, aria-current, and rel attributes. Works with any collection.

Read ➔

An Astro Pricing Table Component

A data-driven Astro pricing table: plans from a typed array, a highlighted plan, feature lists, an optional monthly/yearly toggle, and Product schema.

Read ➔

30 Astro Questions, Answered

Short, direct answers to 30 common Astro questions: what it is, cost, SEO, React, CMS, hosting, SSR, images, versions and themes, each linking to a deeper guide.

Read ➔

Astro Routing Cheatsheet

Astro routing cheatsheet: file-to-URL patterns, dynamic and rest params, getStaticPaths, paginate, endpoints, redirects, rewrites, 404 pages and route priority.

Read ➔

Astro SEO: The Complete Checklist

Astro SEO checklist with code: set site, build a reusable head component, add a sitemap, robots.txt, canonical URLs, JSON-LD, RSS, and make pages citable by AI.

Read ➔

Astro SSR: Server Rendering, When and How

Astro SSR explained: adapters, on-demand pages with prerender = false, server islands, actions, middleware and sessions in Astro 7, and when to stay static.

Read ➔

Accessible Astro Tabs Component

Copy-paste Astro tabs following the ARIA tabs pattern: tablist, tab and tabpanel roles, arrow keys, and server-rendered panels that work before JS loads.

Read ➔

Astro Template Syntax Cheatsheet

Astro syntax on one page: frontmatter, expressions, attributes, conditionals, loops, slots, fragments, dynamic tags, comments and how it differs from JSX.

Read ➔

Astro TypeScript Types Cheatsheet

The Astro types you'll use most: Props, HTMLAttributes, Polymorphic, ComponentProps, CollectionEntry, GetStaticPaths, APIRoute, ImageMetadata and App. Locals.

Read ➔

Astro vs Next.js: Which to Choose

Astro vs Next.js: Astro ships less JavaScript and suits content sites; Next.js suits React apps with heavy interactivity. A practical comparison and migration path.

Read ➔

The Best Astro Themes in 2026

The best Astro themes in 2026: free picks like AstroWind, AstroPaper and Starlight, plus paid Komal themes by site type, and what to check before you choose.

Read ➔

Deploying Astro: Every Major Host Compared

How to deploy Astro: run npm run build, publish dist/ to Cloudflare Pages, Netlify, Vercel or GitHub Pages. Settings, adapters, env vars and domains compared.

Read ➔

Astro Image vs Picture vs a Plain img Tag

Astro Image vs Picture vs img: use Image for most local images, Picture when you want AVIF with a WebP fallback, and img for CMS-CDN, SVG or public files.

Read ➔

Starlight Frontmatter Cheatsheet

Every Starlight frontmatter field: title, description, template, hero, banner, sidebar label, order and badge, tableOfContents, prev/next, pagefind, draft and more.

Read ➔

Astro Theme, Starter or Blank Project?

Astro starter, theme or blank project? Choose by how close the result is to what you need, how much you'll change, and whether you're learning or shipping.

Read ➔

Web Performance Glossary for Site Builders

A web performance glossary in plain language: Core Web Vitals, LCP, INP, CLS, TTFB, preload, lazy loading, CDN and cache, with fixes for each.

Read ➔

Which Client Directive Should I Use in Astro?

Which client directive for an Astro island? None, client:visible, client:idle, client:load, client:media or client:only: a quick decision flow with examples.

Read ➔