Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A dark-mode-ready Astro starter template for military units, government agencies, and institutions with Indonesian/English i18n.
Astro Military Theme is a dark-mode-first Astro starter template built on Astro 5.x and Tailwind CSS 4.x, designed to produce a static multi-page website for military units, government agencies, and other institutional organizations.
Astro Military Theme is a starter template that converts centralized content files into a static site with four pages: a landing page, a history page (sejarah.astro), an organization structure page (struktur.astro), and a photo gallery (galeri.astro). The site takes its content from src/data/siteConfig.ts and src/data/content.ts; editing these TypeScript files is the primary customization path. It runs on Astro's static-first architecture and ships zero JavaScript by default, with an MIT license.
src/styles/global.css.src/data/ for one-place editing.Astro Military Theme is for military units that need an official web presence covering history, structure, and galleries; government agencies that want a bilingual (Indonesian/English) institutional site with SEO-ready pages; and developers who want a pre-built Astro + Tailwind starting point with components such as Card, Gallery, and Timeline.
After cloning the repository, you run npm install and npm run dev to start the dev server at localhost:4321. The repository includes a step-by-step customization guide: edit siteConfig.ts for site name, address, and SEO; replace content in content.ts; swap sample images in src/assets/; update translations in src/i18n/translations.js; and adjust color tokens in src/styles/global.css. A production build is made with npm run build, outputting a dist/ folder suitable for deployment on Vercel or Netlify.
Yes, the project is licensed under the MIT License, so it can be freely used, modified, and distributed.
Yes, it includes automatic dark mode detection and a manual toggle, implemented with a no-flash script to avoid color flashing on page load.
The template targets Astro 5.x and Tailwind CSS 4.x, as stated in the repository metadata.
Built-in translations are provided for Indonesian and English, switchable via a one-click language toggle in the navigation.
Edit the CSS custom properties in src/styles/global.css under the @theme block for light mode and the .dark block for dark mode.
