Lightweight masonry article layout
clarity — Astro Blog Template
By nice
Clarity is a minimal blog theme built on Astro that uses a masonry card layout, supports Markdown and MDX content, and provides RSS, sitemap, and customizable accent colors.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Cards support three types—default, text-only, and image-only—and three sizes—small, medium, and large
Customizable accent color, menu items, and posts per page in src/consts.ts
Supports writing content in Markdown and MDX
Built-in RSS feed and sitemap support
Image fade-in animation with a noscript fallback
Template Details
Clarity is an Astro blog theme published on GitHub. The repository describes it as a "Minimal blog theme for Astro!" and it is released under the MIT license. It targets blog sites centered on article lists. The homepage uses a lightweight masonry layout to display article cards. Cards offer three types—default, text-only, and image-only—and three sizes—small, medium, and large—which can be adjusted in the configuration. The theme supports writing in Markdown and MDX, includes built-in RSS feed and sitemap support, and allows switching the accent color, menu items, and posts per page through configuration. Images have a fade-in animation and a noscript fallback. View Transitions are not enabled by default; the README provides specific steps to import ViewTransitions in Layout.astro, add the tag, apply the transition:animate attribute, and register the theme scripts.
To use it, clone the repository, run npm install to install dependencies, npm run dev to start the development server, and npm run build to build the production version. Theme configuration is centralized in src/consts.ts. The README specifically reminds you to change the default email, site title, and description. The repository materials do not describe a content management backend, comment system, multilingual support, or deployment platform bindings; these aspects need to be confirmed separately. The demo site is clarity-astro-theme.netlify.app, where you can view the desktop homepage, mobile homepage, and inner pages.
Is it right for your project?
Use Cases
- Building a personal blog centered on a card-based article list
- Sites that maintain content in Markdown or MDX and need RSS subscription
- Blogs that want to adjust theme colors and menu structure to match their brand
- Sites that need step-by-step instructions to enable Astro view transitions
Suitable For
- Bloggers using Astro who want a quick start
- Sites that prefer a minimal, card-based article list layout
- Content sites that need RSS and sitemap output
- Developers willing to edit src/consts.ts directly for configuration
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
After cloning the repository, run npm install to install dependencies, npm run dev to start the development server, and npm run build to build the production version.
- 2
Theme configuration is in src/consts.ts. The README reminds you to update the default email, site title, and description.
- 3
The accent color, menu items, and posts per page are also modified in src/consts.ts.
- 4
View transitions must be enabled manually: import ViewTransitions in src/layouts/Layout.astro, add the tag inside head, add the transition:animate attribute to the html tag, and register the three astro:after-swap event listeners initGrid, initAppear, and initMenu before the closing html tag.
- 5
The code is MIT licensed and can be used, modified, commercialized, and distributed for free, but the copyright and license notice must be retained when distributing; third-party assets such as demo images, fonts, and icons must be checked separately under their respective licenses.
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version in the public repository under the MIT license; the free scope applies to that version's code and does not imply that external services or third-party assets are free.
Must comply with when using
- You may use, modify, commercialize, and distribute this version's code for free.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Demo images, fonts, icons, and other third-party assets must be checked under their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur additional fees.
View Original Text Basis
https://github.com/nice/clarity/blob/master/LICENSEhttps://github.com/nice/clarity/blob/master/README.mdPermission is hereby granted, free of charge
Original License Text
Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- Partly documented · 69 / 100
- Technologies
- Astro
- Website type
- Blog
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2025-01-22
- Screenshot last checked
- 2026-10-03
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Astro as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 7f7401767898c6d890afe5f31b9b110b27e134fcc096ee7cfe737edb58b3ed27
2026-10-03T00:47:21.108Z
Source file / repository# Clarity: Minimal blog theme for Astro! Demo: https://clarity-astro-theme.netlify.app/  # Features - ✅ Masonry layout (lightweight version) - ✅ 3 card types (default, text only, image only) - ✅ 3 card sizes (small, medium, large) - ✅ Customizable accent colors (see configuration) - ✅ Image fade in animation (with. noscript fallback) - ✅ Good Lighthouse performance - ✅ SEO-friendly - ✅ Sitemap support - ✅ RSS Feed support - ✅ Markdown & MDX support - ✅ View transitions support (see configuration) Lighthouse performance  # Usage ### 1. Clone this repo. ``` git clone [email protected]:nice/clarity.git ``` ### 2. Switch to the cloned folder ``` cd clarity/ ``` ### 3. Install dependencies ``` npm install ``` ### 4. Starting development server ``` npm run dev ``` ## Building for production ``` npm run build ``` ## Configuration Theme configuration can be found inside `src/consts.ts` **!!! Important !!!** Please make sure to update the default email ids, site title and descriptions. You can also change the theme accent colors, menu items and posts per page from the `src/consts.ts` file. ### View transitions Enable view transitions for Clarity theme with the below few steps 1. Import `ViewTransitions` in `src/layouts/Layout.astro` ``` --- import { ViewTransitions } from 'astro:transitions'; --- ``` 2. Add the `<ViewTransitions />` tag inside `<head>` of the same file ``` <head> <ViewTransitions /> </head> ``` 3. Add `transition:animate` attribute to opening `<html>` tag in the same file. ``` <html transition:animate="fade"> </html> ``` 4. Add the below Clarity theme specific script just before the closing `</html>` tag in the same file. ``` <!-- other scripts --> <script> document.addEventListener("astro:after-swap", initGrid); document.addEventListener("astro:after-swap", initAppear); document.addEventListener("astro:after-swap", initMenu); </script> ```
Explore similar templates
Compare previews and descriptions within the same stack and category.

astrowind
AstroWind is a free, open-source Astro starter theme using Astro and Tailwind CSS, released under the MIT license.
Astro · Blog

astro-paper
AstroPaper is a minimal, responsive, accessible, and SEO-friendly Astro blog theme. Articles are stored as Markdown/MDX in src/content/posts/, with subdirectories affecting URLs.
Astro · Blog

fuwari
Fuwari is a static blog template built with Astro and Tailwind CSS for personal blogs. It manages posts as Markdown files in src/content/posts/, with frontmatter for title, date, description, cover, tags, categories, draft status, and language.
Astro · Blog

Firefly
Firefly is a clean personal blog theme forked from Astro and Fuwari, offering four background modes, single/double sidebar and list/grid layouts, Pagefind client-side full-text search, and a six-language UI.
Astro · Blog

astro-theme-cactus
Astro Cactus is an Astro-based blog and portfolio theme that uses Markdown/MDX content collections to manage posts, notes, and tags, with frontmatter type-checked by a schema.
Astro · Portfolio

astrofy
Astrofy is a free and open-source personal portfolio website template built with Astro and TailwindCSS, with built-in blog, CV timeline, project showcase, store, and RSS feed modules.
Astro · Portfolio
