Skip to content
Landing Pages Tailwind CSS 3 astroalpinejstypescriptprettier

Tailwind CSS Landing Page with Dark Mode - Stone

A free Astro theme for business, marketing, SaaS and startup sites. Includes dark mode, responsive design and view transitions.

By m6v3l9 m6v3l9/astro-theme-stone 265 stars

Introduction

Stone is an open‑source Astro theme built with Tailwind CSS and Alpine.js. It is aimed at business, marketing, SaaS and startup landing pages. The theme includes more than five pages, a collection of sections, dark‑mode support (via Tailwind’s class strategy), view transitions, and a lightweight design.

What this project offers

  • A ready‑made landing‑page layout that can be customized for different business needs.
  • Pre‑configured Tailwind CSS utilities and a color palette based on the stone color set.
  • Alpine.js integration for simple interactive components.
  • View‑transition support through Astro’s experimental API.
  • A set of static assets (images, icons, favicons) placed in the public folder.

Main features

  • 5+ pages (home, about, contact, pricing, etc.)
  • 15+ reusable sections
  • Dark & light mode (controlled by a CSS class)
  • Fully responsive layout (Tailwind breakpoints)
  • Experimental view transitions
  • Fast and lightweight build output
  • Google Font Inter and Remix Icons included

Technology stack

  • Astro 2.10.13 – static site generator
  • Tailwind CSS 3.3.3 – utility‑first styling framework
  • Alpine.js 3.12.3 – lightweight JavaScript interactions
  • TypeScript – type‑checked source files
  • Prettier – code formatting
  • astro-compress – HTML compression for production

Requirements

  • Node.js 18 or newer
  • npm (comes with Node.js)

Installation

  1. Download the project archive
# The archive is provided at /download/stone-astro-theme.zip
# Save it to a convenient location and unzip it
unzip stone-astro-theme.zip -d stone-astro-theme
cd stone-astro-theme
  1. Install dependencies
npm install
  1. Run the development server (optional, to preview locally)
npm run dev

Open http://localhost:3000 in a browser to see the site.

  1. Build for production
npm run build

The command executes astro build. The generated static files are placed in the dist/ directory.

  1. Preview the built site (optional)
npm run preview

This serves the contents of dist/ locally.

Configuration

  • Tailwind configuration – edit tailwind.config.cjs to change colors, fonts, or extend the utility set.
  • Astro configuration – astro.config.mjs contains the view‑transition experimental flag and the list of integrations (Tailwind and astro‑compress).
  • TypeScript settings – tsconfig.json extends Astro’s strict configuration; modify if you need custom compiler options.

Customizing the project

  • Pages – add, remove, or edit files in src/pages/. Each .astro file becomes a route based on its filename.
  • Components – reusable UI pieces live in src/components/. Create new components or modify existing ones to change the look of sections.
  • Assets – place images, icons, or other static files in public/. They are served unchanged at the site root.
  • Styling – use Tailwind utility classes directly in .astro files or extend the theme section of tailwind.config.cjs for custom design tokens.

Project structure

/
├── LICENSE
├── README.md
├── astro.config.mjs
├── package-lock.json
├── package.json
├── tailwind.config.cjs
├── tsconfig.json
├── public/
│   ├── android-chrome-192x192.png
│   ├── android-chrome-512x512.png
│   ├── apple-touch-icon.png
│   ├── assets/
│   │   ├── about.webp
│   │   ├── hero.webp
│   │   ├── logo-inverted.svg
│   │   ├── logo.svg
│   │   └── (other images)
│   ├── favicon-16x16.png
│   ├── favicon-32x32.png
│   ├── favicon.ico
│   └── site.webmanifest
└── src/
    ├── components/
    │   ├── about/
    │   ├── contact/
    │   ├── home/
    │   ├── layout/
    │   └── pricing/
    ├── env.d.ts
    ├── layouts/
    │   └── Layout.astro
    └── pages/
        ├── 404.astro
        ├── about.astro
        ├── contact.astro
        ├── index.astro
        ├── pricing.astro
        ├── privacy.astro
        └── styleguide.astro

Tips

  • Run npm run dev while editing components to get hot‑reloading and instant feedback.
  • After building, the dist/ folder contains only static HTML, CSS, and JavaScript; it can be deployed to any static‑host (Netlify, Vercel, GitHub Pages, etc.).
  • To change the default font, edit the fontFamily.sans entry in tailwind.config.cjs and reinstall the corresponding @fontsource package if needed.
  • The astro-compress integration automatically minifies HTML output; you can disable it by removing the compress() call in astro.config.mjs.

License and attribution

The Stone theme is licensed under the MIT License. See the full license file at the repository root.

Original repository: https://github.com/m6v3l9/astro-theme-stone

When redistributing or publishing a site built with this theme, keep the LICENSE file and retain credit to the original author as required by the MIT license.