lkhrs / cactus-starter-11ty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A boilerplate template built with Eleventy and TailwindCSS

Based on Skeleventy, I wanted a simple boilerplate that included the latest version of Tailwind and was easy to update.

Demo

Todo

  • Mobile nav
  • Desktop nav with dropdowns
  • Build a blog view
  • Contact form
  • Add eleventy-img
  • Add a responsive img shortcode and a non-responsive shortcode - Lighthouse likes explicitly-set image dimensions.
  • Tailwind JIT

Features

  • A vanilla TailwindCSS setup with PostCSS and purge
  • Logo configurable in eleventy.config.js, will show text if logo.svg is removed from config
  • Site title configurable in eleventy.config.js
  • Nav configurable in site/globals/navigation.json
  • Use of @apply in styles/tailwind.css for sane defaults.
  • Alpine.js
  • Optimized lazy-loaded images webp first with a jpeg fallback (throw in a 10mb file and don't worry about it!)
  • And responsive images. Huge difference in file sizes on mobile compared to desktop.

Building and Running

Live dev environment:

  1. Run npm run dev

Production:

  1. Run npm run production

About


Languages

Language:Nunjucks 77.3%Language:JavaScript 18.7%Language:CSS 3.9%