eleventy-theme-aurora
v0.3.22
Published
A drop-in Eleventy theme for @eleventy-plugin-themer, started from theme-base
Maintainers
Readme
eleventy-theme-aurora
A drop-in Eleventy theme built on
@eleventy-plugin-themer/core.
Aurora started as a clone of
@eleventy-plugin-themer/theme-base
and preserves its full contract — the same layout names (base.njk, home.njk,
post.njk), the same partials, the same CSS class names, and the same
theme.config.mjs keys. That means it is a drop-in replacement: switch themes
by changing only the theme name in your Eleventy config.
Status: early. The visual identity is intentionally identical to theme-base for now and will diverge in a follow-up ("clone, then iterate").
Installation
npm install @eleventy-plugin-themer/core eleventy-theme-aurora @11ty/eleventy-plugin-syntaxhighlightWith Vite build optimizations:
npm install -D @eleventy-plugin-themer/build-vite @11ty/eleventy-plugin-viteUsage
Point your themer config at this package instead of theme-base:
// eleventy.config.mjs
import { eleventyPluginThemer } from '@eleventy-plugin-themer/core';
export default async function (eleventyConfig) {
const { dir } = await eleventyPluginThemer(eleventyConfig, {
theme: 'eleventy-theme-aurora',
projectRoot: import.meta.dirname,
input: 'content',
output: '_site',
});
return { dir };
}Everything else (overrides, content/_data/theme.js, features) works exactly as it
does with theme-base — see the theme-base README for the full configuration,
override, shortcode, and feature reference.
Features
Two self-contained, per-page opt-in features ship with the theme:
- code-highlighting — PrismJS syntax highlighting with copy button, optional line numbers, and diff highlighting.
- back-to-top — a floating button that smooth-scrolls to the top.
Enable per page via front matter, e.g. feature: code-highlighting.
Documentation
- Shortcodes — layout shortcodes (
contentGrid,box,hero,heroButton) and post shortcodes (pinnedPost,latestPosts,relatedPosts), with every argument and its default. - Filters — all Nunjucks filters (escaping, dates, tags, content, social, utilities) with signatures.
Local development
This repo lives alongside the
eleventy-plugin-themer
monorepo. To develop against unpublished core/build-vite changes, override the
dependency with a local path instead of the published version:
// package.json (local only — do not commit)
"dependencies": {
"@eleventy-plugin-themer/core": "file:../eleventy-plugin-themer/packages/core"
}npm install
npm test # unit tests for filters + shortcodes
npm run lintLicense
MIT © Artis Lismanis
