Overview
Brutal is a minimal neobrutalist theme for Astro. It is based on Neobrutalist Web Design, which aims to create websites with a minimalistic and functional design. The theme includes integrations such as Image Optimization, RSS, and Sitemap, making it ideal for optimizing SEO. Although the theme does not have JavaScript integration by default, it can easily be added. The template is based on the developer’s personal website, with additional generic features.
Features
- Neobrutalist Web Design: The theme follows the principles of neobrutalist web design, creating websites with minimalistic and functional design.
- Image Optimization: The theme includes an integration for optimizing images, enhancing the website’s performance.
- RSS Integration: The theme automatically generates an RSS feed from the Markdown files in the src/content/blog folder, allowing users to easily distribute content.
- Sitemap Generation: The theme automatically generates a sitemap when building the site, simplifying the process of creating and maintaining a sitemap for SEO purposes.
- No JavaScript Integration: By default, the theme does not include JavaScript integration. However, JavaScript functionality can be added if desired.
- UnoCSS Integration: The theme uses UnoCSS, a utility-first CSS framework that offers a simple way to style elements using a single class. UnoCSS is compatible with TailwindCSS and allows the use of PureCSS icons.
- Customizable Colors: The theme includes a selection of predefined colors that can be used in its components. Additional colors can be easily added in the astro.config.mjs file.
Installation
To use the Brutal theme for your Astro project, follow these steps:
Bootstrap a new Astro project using the following command:
npx create-astro@latest projectName --template brutalChange the directory to the project folder:
cd projectNameInstall the project dependencies:
pnpm installStart the local development server:
pnpm devBuild the production site:
pnpm buildPreview the build locally before deploying:
pnpm previewUse Astro CLI commands like
astro addorastro previewwith the following syntax:pnpm astro ...Use
pnpm astro --helpto get help using the Astro CLI.
Summary
Brutal is a minimal neobrutalist theme for Astro, inspired by Neobrutalist Web Design. It offers various features such as image optimization, RSS integration, sitemap generation, and customizable colors. Although it does not include JavaScript integration by default, it can be easily added. The theme uses UnoCSS for styling and offers the flexibility to switch to TailwindCSS if desired. By following the installation guide, users can quickly implement the Brutal theme in their Astro projects.