Generates static pages with 11ty, with page source files in src/site and build output to dist
bymattlee-11ty-starter — Eleventy Tool Template
By bymattlee
A static site starter template powered by 11ty, integrating the Sanity content API, a Gulp build process, Tailwind CSS, rollup.js, Alpine.js and Taxi.js page transitions.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Content data comes from the Sanity Cloud API and can be used with the same author's Sanity Studio starter template
Uses Gulp as the build process, responsible for rendering HTML, compiling styles and scripts, and optimizing assets
The styling layer uses Tailwind CSS with SCSS, Stylelint, autoprefixer, minification and sourcemaps
The script layer is bundled with rollup.js, integrating Alpine.js and Taxi.js page transitions
Generates responsive images, SVG sprites, sitemap and robots.txt at build time
Template Details
This is a starter template for static site development. The repository is named bymattlee-11ty-starter and is MIT licensed. It uses 11ty as the static site generator, with pages under src/site and build output to dist; the base layout is at src/site/_includes/layouts/base.njk, and reusable partials are in src/site/_includes/partials. Content data comes from the Sanity Cloud API. The README states it can be used with the same author's Sanity Studio starter template. Sanity-related options and the environment URL for compilation are configured in config.js.
The styling layer uses Tailwind CSS. SCSS files are in src/assets/scss, with main.scss as the entry point compiled to dist/assets/css/main.min.css; the build process includes Stylelint, autoprefixer, minification and sourcemaps. Staging and production builds remove unused CSS via PurgeCSS. The script layer is bundled with rollup.js, with the entry at src/assets/js/main.js, local components in src/assets/js/components, and third-party scripts that can be manually placed in src/assets/js/vendors; it also integrates Taxi.js for page transitions, Alpine.js for declarative DOM manipulation, and includes a custom framework for content animations.
For asset handling, unoptimized images go in src/assets/images, are optimized during build and output to dist/assets/images, with responsive images generated at widths from 200w to 1800w; the imageSrc shortcode can be used in templates to output srcset. SVGs go in src/assets/svg, are optimized and merged into dist/assets/svg/sprite.svg; other assets such as fonts and videos are copied from src/assets to dist/assets. The build also generates a sitemap based on HTML files in dist and generates robots.txt, configured in src/site/robots.njk.
Usage limitations and notes: The README requires installing Node 16.17.1 LTS and using Yarn to install dependencies; development, staging and production are run via yarn dev, yarn stage and yarn prod respectively. The development environment is served locally by Browsersync, refreshing the browser on updates to NJK, JS, images, SVG or asset files, and injecting styles on SCSS updates. The template relies on the Sanity cloud API for data, so Sanity-related options must be configured before use; third-party assets such as demo images, fonts and icons must be checked against their respective licenses, and external services may incur additional charges.
Is it right for your project?
Use Cases
- Projects that need to build a static site with 11ty and want a preconfigured build process and asset handling
- Sites that use Sanity as a content source and need to compile cloud data into static pages
- Development scenarios that want to write styles with Tailwind CSS while retaining SCSS customization capabilities
- Front-end projects that need page transitions, declarative DOM manipulation and a content animation framework
- Sites that need automatic generation of responsive images, SVG sprites, sitemap and robots.txt
Suitable For
- Front-end developers familiar with Node, Yarn and 11ty
- Teams that manage content with Sanity and output static sites
- Developers who need a hybrid styling approach with Tailwind CSS and SCSS
- Static site projects that need a Gulp and rollup.js build process
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Install Node 16.17.1 LTS and install Yarn via npm i -g yarn
- 2
Run yarn in the project root to install all dependencies
- 3
Update Sanity options and the environment URL for compilation in config.js
- 4
Use yarn dev to start development and watching, yarn stage to build staging, and yarn prod to build production
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis 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
- The code of this version may be used, modified, commercialized and distributed 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
- Site data relies on the Sanity cloud API; before use, Sanity project options must be configured in config.js, and it may require registering a Sanity account and obtaining an API key.
- The build environment requires Node 16.17.1 LTS; other Node versions may not build correctly.
- Dependencies must be installed with Yarn (npm i -g yarn), not directly with npm.
- Demo images, fonts, icons and other third-party assets must be checked against 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
Permission is hereby granted, free of charge
Original License Text
Data is coming from the Sanity Cloud API.
Original README
Install Node 16.17.1 LTS
Original README
https://github.com/bymattlee/bymattlee-11ty-starter/blob/master/LICENSE.mdhttps://github.com/bymattlee/bymattlee-11ty-starter/blob/master/README.mdInstall Yarn
Original README
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 · 77 / 100
- Technologies
- Eleventy
- Website type
- Tool Site · 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
- 2023-07-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: fe4c9c36aa774c73d558d6659cded355e3d84ac4a807341c852fac987d6b2fc6
2026-10-01T14:43:44.138Z
Source file / repository
# ByMattLee 11ty Starter
A starter boilerplate powered by [11ty](https://www.11ty.dev/), [Sanity](https://www.sanity.io/), [Gulp](https://gulpjs.com/), [Tailwind CSS](https://tailwindcss.com/), [rollup.js](https://rollupjs.org/), [Alpine.js](https://alpinejs.dev/) and [Taxi.js](https://taxi.js.org/).
[VIEW DEMO](https://bymattlee-11ty-starter.netlify.app/)
---
## Installation
##### 1. Install Node 16.17.1 LTS: <https://nodejs.org/>
##### 2. Install Yarn
```
$ npm i -g yarn
```
##### 3. Install all dependencies
```
$ yarn
```
---
## Configuration
In `config.js`, update Sanity options and environment URLs for project compilation.
---
## Use
##### Build Files For Development And Initialize Watch
```
$ yarn dev
```
##### Build Files For Staging
```
$ yarn stage
```
##### Build Files For Production
```
$ yarn prod
```
---
## General Features
- Features [Gulp](https://gulpjs.com/) as the build pipeline that renders HTML, compiles styles and scripts, and optimizes assets.
- Data is coming from the Sanity Cloud API. This pairs perfectly with the [ByMattLee Sanity Studio Starter](https://github.com/bymattlee/bymattlee-sanity-studio-starter)
- Spins up a local development environment through Browsersync
- Browser reload when NJK, JS, image, SVG or asset files are updated
- Styles are injected when SCSS files are updated
##### Markup
- Features [11ty](https://www.11ty.dev/) as the static site generator
- Markup is minified in staging and production environments
- Site data can be set in `src/site/_data`
- Pages in `src/site` will be compiled to `dist`
- `src/site/_includes/layouts/base.njk` serves as the base template for the site
- `src/site/_includes/partials` contains site partials and components that are reused across the site (modular HTML)
##### Styles
- Features [Tailwind CSS](https://tailwindcss.com/), a utility-first framework
- Includes linter (Stylelint), autoprefixer, minification and sourcemap creation
- SCSS files are located in `src/assets/scss`
- `main.scss` in `src/assets/scss` serves as the base that includes the other dependent SASS files
- `main.scss` gets compiled to `dist/assets/css/main.min.css`
- `.stylelintrc` contains the settings for Stylelint
- Info about class namespacing can be found in `src/assets/scss/main.scss`
- Unused CSS (PurgeCSS) will be removed in staging and production builds
##### Scripts
- Features [rollup.js](https://rollupjs.org/guide/en/) as the module bundler
- Includes linting (ESLint), concatenation, minification and sourcemap creation
- Includes [Taxi.js](https://taxi.js.org/) for seamless page transitions
- Includes a custom framework for reuseable content animations
- Includes [Alpine.js](https://alpinejs.dev/) for declarative DOM manipulation
- `main.js` in `src/assets/js` serves as the main JS file that includes and runs all components and will be compiled to `dist/assets/js/main.min.js`
- All local components should be placed in `src/assets/js/components`
- All vendor JS can be manually added to `src/assets/js/vendors` if not found on Yarn
- `.eslintrc` contains the settings for ESLint
##### Images
- Place all unoptimized images in the `src/assets/images` directory
- They will then be optimized and placed in `dist/assets/images`
- Responsive images will be generated at the following widths (if larger): 200w, 400w, 600w, 800w, 1000w, 1200w, 1400w, 1600w, 1800w
- Use `imageSrc` shortcode to render responsive `srcset` in markup
##### SVGS
- Place all SVG files in the `src/assets/svg` directory
- They will then be optimized and added to a sprite at `dist/assets/svg/sprite.svg`
##### Other Assets
- All assets (fonts, videos, swfs, etc) under `src/assets` will be copied to `dist/assets` on build
##### Sitemap
- Generates a sitemap based on the HTML files in `dist`
##### Robots.txt
- Generates a robots.txt file
- Configuration can be found in `src/site/robots.njk`
---
## Tailwind CSS Notes
- All Tailwind settings can be found in `./tailwind.config.js`
- Most styles should be written as utility classes in the template markup but custom SCSS can be used for unique properties and/or magic numbers
- Utilize the [`@apply`](https://tailwindcss.com/docs/functions-and-directives#apply) directive when writing custom SCSS for efficiency:
```scss
svg {
@apply u-inline-block u-fill-current;
}
```
- Tailwind settings can be accessed with the [`theme()`](https://tailwindcss.com/docs/functions-and-directives#theme) function:
```scss
.button {
animation-duration: theme('transitionDuration.normal');
}
```
- Media queries can be used with the shorthand `screen()` function:
```scss
.button {
margin-right: 2.8rem;
@screen sm {
margin-right: 4.2rem;
}
}
```
---
## Contact
- Matt Lee - `@bymattlee` on most platforms
- Visit my website at [bymattlee.com](https://bymattlee.com)
[](https://twitter.com/bymattlee)
Explore similar templates
Compare previews and descriptions within the same stack and category.

eleventy-base-blog
The officially maintained Eleventy blog starter template, MIT licensed, includes posts, tag pages, archives, an about page, a 404 page, an Atom feed, and sitemap.xml, with per-page CSS bundling, syntax highlighting, and image optimization.
Eleventy · Blog

eleventy-garden
An Eleventy-based digital garden starter template for building a personal knowledge site organized through hyperlinks. It supports Roam-style double-bracket links, backlink display, and hover cards for backlinks.
Eleventy · Starter

eleventastic
Eleventastic is an Eleventy starter kit by Max Böck, used as the base for new 11ty projects. It integrates Sass, Webpack, SVG icon sprites, critical CSS, and HTML minification into the 11ty build without external steps.
Eleventy · Starter

neat-starter
An Eleventy-based static site starter template integrating Netlify CMS, Alpine.js, and Tailwind CSS. It provides a ready-to-run example site, a one-click Netlify deploy button, and an MIT-licensed codebase.
Eleventy · Starter

Eleventy-Starter-Boilerplate
An Eleventy-based blog starter template with Tailwind CSS, Webpack, PostCSS, ESLint, and Prettier, optional Netlify CMS, and built-in SEO metadata, sitemap, and 404 page.
Eleventy · Blog

eleventy-plus-vite
A static site starter combining Eleventy and Vite, with a live-reloading development server, Vite-based production post-processing, a PostCSS pipeline with Autoprefixer and cssnano, critical CSS inlining and asynchronous CSS loading, a web font loading strategy example, fluid typography, basic dark mode, an…
Eleventy · Starter
