AstroBlog

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.

3 previews
Desktop homepage1 / 3
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 3

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-03View source

What stands out

A quick read of the recorded project description.

01

Lightweight masonry article layout

02

Cards support three types—default, text-only, and image-only—and three sizes—small, medium, and large

03

Customizable accent color, menu items, and posts per page in src/consts.ts

04

Supports writing content in Markdown and MDX

05

Built-in RSS feed and sitemap support

06

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.

AstroBlog

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. 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. 2

    Theme configuration is in src/consts.ts. The README reminds you to update the default email, site title, and description.

  3. 3

    The accent color, menu items, and posts per page are also modified in src/consts.ts.

  4. 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. 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.

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This 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

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/

![screenshot-clarity-astro-theme netlify app-2024 03 05-19_13_15](https://github.com/nice/clarity/assets/2760100/c1289b35-73ed-46bb-b4ef-1754484e70fe)

# 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

![Screenshot from 2024-03-05 19-12-54](https://github.com/nice/clarity/assets/2760100/69916c37-0575-4457-9a84-b248a2855683)

# 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>
```
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.