EleventyViteStarter

eleventy-plus-vite — Eleventy Starter Template

By matthiasott

A static site starter based on Eleventy and Vite, integrating a development server, build post-processing, CSS processing, and common site files.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

2 previews
Desktop homepage1 / 2
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 2

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-09-30View source

What stands out

A quick read of the recorded project description.

01

Eleventy development server supports live reload, with Vite integrated as middleware

02

Production builds are post-processed by Vite (based on Rollup) on Eleventy's output

03

The PostCSS pipeline includes Autoprefixer and cssnano, and browser targets can be configured in package.json

04

Provides a Sass directory structure by default, and also supports plain CSS with nesting via PostCSS Nesting

05

Includes critical CSS inlining and asynchronous loading of the main CSS, plus a web font loading strategy example

06

Comes with an RSS feed, an XML sitemap, and basic dark mode support

Template Details

This is an Eleventy starter project that combines Eleventy's static site generation capabilities with Vite's build process. During development, it uses Eleventy's built-in development server with live reload, and Vite is integrated into that server as middleware; for production builds, Eleventy's output is passed to Vite (based on Rollup) for post-processing.

For styling, the project uses Sass by default and includes the author's own directory structure, but you can also switch to plain CSS with nesting support via the PostCSS Nesting plugin. The PostCSS pipeline includes Autoprefixer and cssnano, and browser targets can be adjusted in the browserslist field in package.json. The project also demonstrates critical CSS generation and inlining, with the main CSS file subsequently loaded asynchronously; it includes a web font loading strategy example, Utopia-based fluid typography, basic dark mode using prefers-color-scheme and CSS custom properties, and a focus-visible polyfill.

Site basics include an RSS feed and an XML sitemap. The README's Roadmap lists items not yet completed: more base styles and a demo page showcasing example styles, a dark mode toggle button, advanced base styles for modern CSS layouts, and Webmention/IndieWeb support.

Usage is to generate a new repository based on this repository, clone it, and run npm install to install dependencies; npm start or npx @11ty/eleventy --serve starts the development server, and npm run build or npx @11ty/eleventy performs a production build. The project is MIT licensed and can be used, modified, commercialized, and distributed for free, but third-party assets such as demo images, fonts, and icons need to be checked separately for licensing.

EleventyViteStarter

Is it right for your project?

Use Cases

  • You need a starting point for a static site combining Eleventy and Vite
  • You want styles processed through PostCSS with Autoprefixer and cssnano
  • You want to see how critical CSS inlining and asynchronous CSS loading are implemented
  • You need to add an RSS feed and an XML sitemap to a static site

Suitable For

  • Developers building static sites with Eleventy
  • Teams looking to introduce a Vite build process into Eleventy
  • Projects that prefer Sass or a plain CSS workflow with nesting
  • Sites that need common capabilities such as RSS, a sitemap, and basic dark mode

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    You can generate a new repository based on this repository using GitHub's generate feature

  2. 2

    After cloning or downloading, run npm install to install dependencies

  3. 3

    npm start or npx @11ty/eleventy --serve starts the development server

  4. 4

    npm run build or npx @11ty/eleventy performs a production build

  5. 5

    The README provides a button for deploying to Netlify; third-party assets need to be checked for licensing yourself

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version under the MIT license in the public repository; the free scope is the code of this version and does not mean external services or third-party assets are free.

Must comply with when using

  • You are allowed to use, modify, commercialize, and distribute the code of this version for free.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets need to be checked under their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur additional charges.
View Original Text Basis

Compiled by DeepSeek based on repository license and README ·2026-10-01. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
More documented · 96 / 100
Technologies
Eleventy · Vite
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2026-09-14
Screenshot last checked
2026-10-01

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Eleventy as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Automatically checked against source and license rules; no manual editorial review.

Inspect the recorded source material

SHA-256: 76955dde9eae762f39e045904f74d749e518fe0579baed614e105ec0efa80a89

2026-10-01T15:03:13.867Z

Source file / repository
# Eleventy Plus Vite <br>🏃💨

A clean and fast Eleventy Starter Project with Vite.

[![Netlify Status](https://api.netlify.com/api/v1/badges/ef99b4ea-199f-497b-84c1-48c34355da8a/deploy-status)](https://app.netlify.com/sites/eleventyplusvite/deploys)
## Features

* Eleventy v3
* Eleventy Dev Server with live reload
* Vite v8
* Vite as Middleware in Eleventy Dev Server (uses [eleventy-plugin-vite](https://github.com/11ty/eleventy-plugin-vite/))
* Eleventy build output is post-processed by [Vite](https://vitejs.dev) (with Rollup)
* CSS/Sass post-processing with PostCSS incl. [Autoprefixer](https://github.com/postcss/autoprefixer) and cssnano
* Uses [my own opinionated CSS/Sass structure](https://matthiasott.com/notes/how-i-structure-my-css)
* Critical CSS, generated and inlined via [rollup-plugin-critical](https://github.com/nystudio107/rollup-plugin-critical). The main CSS file is then loaded asynchronously with [Scott Jehl’s `media` loading strategy](https://www.filamentgroup.com/lab/load-css-simpler/) (adds `media="print"` and swaps to `media="all"` once loaded)
* Example implementation of a web font loading strategy ([critical FOFT with preload](https://www.zachleat.com/web/comprehensive-webfonts/#critical-foft-preload))
* Basic fluid typography based on [Utopia](https://utopia.fyi)
* Basic dark mode support (using `prefers-color-scheme` and CSS Custom Properties)
* Polyfill for [focus-visible](https://matthiasott.com/notes/focus-visible-is-here)
* RSS feed 🧡
* XML sitemap
* Four Hundos Lighthouse score 💯💯💯💯

## Getting started

Start by [generating a new repository based on this project](https://github.com/matthiasott/eleventy-plus-vite/generate).

After cloning (or downloading) the repository to your local machine, install all dependencies with the command

```sh
npm install
```

## Run dev server

The project comes with Eleventy’s built-in development server. You can start the server with

```sh
npm start
````

or

```sh
npx @11ty/eleventy --serve
````


## Build

To trigger a production build, use

```sh
npm run build
````

or

```sh
npx @11ty/eleventy
```

## Deploy a fork of this template to Netlify

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/matthiasott/eleventy-plus-vite)

## CSS
By default, this starter project uses Sass with an opinionated folder structure. Feel free to replace this structure with your own. If you prefer to write standards-compliant, good old plain CSS, this is also supported. Nesting is then possible via the [PostCSS Nesting plugin](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting), following the [CSS Nesting specification](https://drafts.csswg.org/css-nesting-1/).

[Autoprefixer](https://github.com/postcss/autoprefixer) adds necessary browser prefixes. The [browserslist](https://github.com/browserslist/browserslist) settings can be adjusted in `package.json`.

## Roadmap
* Add more base styles and a demo page that shows example styles and components
* Add a toggle button for the dark mode theme
* More advanced base styles for modern CSS layout
* Webmention/IndieWeb support

## Feedback

Please provide feedback! 🤗 Ideally by [filing an issue here](https://github.com/matthiasott/eleventy-plus-vite/issues) – or via a pull request.
## Thank you!

This starter project would not have been possible without the many great sites and projects I was able to learn from, use as inspiration, and shamelessly copy code from:

* Zach Leatherman [zachleat.com](https://github.com/zachleat/zachleat.com)
* Max Böck’s [Eleventastic](https://github.com/maxboeck/eleventastic)
* Stephanie Eckles’s [11ty Netlify Jumpstart](https://github.com/5t3ph/11ty-netlify-jumpstart)
* Miriam Suzanne [miriamsuzanne.com](https://www.miriamsuzanne.com)
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.