Welcome to Brewventy, a coffee-themed Eleventy starter. This guide covers detailed usage of themes, build processes, and advanced customization.
- Node.js v14 or later
- npm v6+ or Yarn v1+
- Git
- Clone the repo:
git clone https://github.com/kylereddoch/brewventy.git cd brewventy - Install dependencies:
npm install # or yarn install
Run Eleventy with live-reload and SCSS compilation:
npm run dev
# or
yarn dev- Eleventy serves at
http://localhost:8080by default - Browsersync reloads on file changes
- SCSS watches and compiles styles in real-time
| Script | Description |
|---|---|
npm run dev |
Start local dev server with watch |
npm run build |
Compile SCSS, build Eleventy site into _site |
npm run clean |
Remove _site folder |
npm run serve |
Serve production build at http://localhost:5000 |
Brewventy uses two themes:
- Mocha (dark) -
data-theme="mocha" - Latte (light) -
data-theme="latte"
Use the coffeeToggle shortcode or HTML:
{% coffeeToggle %}This renders a button with sun/moon icons. JS listens for clicks and toggles data-theme on <html>.
All theme colors are in src/styles/themes/_variables.scss:
$color-bg: #ffffff;
$color-bg-alt: #fafafa;
$color-text: #333333;
$color-primary: #b5651d;
$color-secondary: #d9a066;
// etc...Customize colors by editing these variables before recompiling.
Modify .eleventy.js for template and plugin settings:
module.exports = function(eleventyConfig) {
// Add plugins
eleventyConfig.addPlugin(require('@11ty/eleventy-navigation'));
// Watch targets
eleventyConfig.addWatchTarget("src/styles/");
// Pass through assets
eleventyConfig.addPassthroughCopy({ "src/assets/": "assets/" });
};├── src/
│ ├── _includes/
│ │ ├── layouts/
│ │ └── partials/
│ ├── _data/
│ ├── assets/
│ ├── scripts/
│ ├── styles/
│ └── index.md
├── .eleventy.js
├── package.json
└── README.md
- Build:
npm run build
- Preview:
npm run serve
- Deploy:
- Netlify, Vercel, or GitHub Pages (see DEPLOYMENT.md)
- Internationalization: Use
eleventy-i18nplugin - RSS Feeds: Configure via
@11ty/eleventy-plugin-rss - Custom Shortcodes: Define in
.eleventy.js
For full customization options, refer to src/styles/_variables.scss and .eleventy.js.