Skip to content

kpab/astro-darkness

Repository files navigation

Darkness — Astro Portfolio & Blog Theme

The only Astro theme with a live 5,000-particle Three.js background. A production-ready dark portfolio + blog template with modern typography, smooth animations, and a fully responsive design — built on Astro 6.

GitHub stars Version Astro Three.js License: MIT

Live Demo · Get Started · Star this repo if it helps you!

Darkness hero

Deploy in one click

Deploy to Vercel Deploy to Netlify

Why Darkness?

Most dark themes are just a flipped color palette. Darkness ships a real WebGL experience — an animated 5,000-particle starfield that reacts as you scroll — without sacrificing performance or accessibility.

  • Three.js particle background — 5,000 animated particles, GPU-accelerated
  • Blog system — powered by Astro Content Collections + MDX
  • Portfolio — project showcase with featured highlighting
  • Responsive — mobile-first design with a floating navbar
  • Easy theming — change the whole look from a handful of CSS variables
  • Astro 6 — ships zero JS by default, sitemap + SEO ready
  • TypeScript — type-safe content and components

Screenshots

Blog Projects
Blog Projects
About Mobile
About Mobile view

Quick Start

Requires Node.js 22+ (Astro 6).

# Clone this template
git clone https://github.com/kpab/astro-darkness.git
cd astro-darkness

# Install dependencies
npm install

# Start dev server
npm run dev

# Build for production
npm run build

Adding Content

Blog Posts

Create markdown files in src/content/blog/:

---
title: 'Your Post Title'
description: 'Brief description'
pubDate: 2025-12-15
tags: ['astro', 'three.js']
---

Your content here...

Projects

Create markdown files in src/content/projects/:

---
title: 'Your Project'
description: 'Project description'
github: 'https://github.com/...'
tags: ['react', 'typescript']
featured: true
---

Customization

Edit CSS variables in src/styles/global.css:

:root {
  --color-bg-dark: #0F172A;
  --color-primary: #3B82F6;
  --color-accent-purple: #8B5CF6;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

Project Structure

src/
├── components/    # Reusable components
├── content/       # Blog posts & projects (Markdown)
├── layouts/       # Page layouts
├── pages/         # Routes
└── styles/        # Global styles

Tech Stack

  • Astro - Static site generator
  • Three.js - 3D graphics
  • TypeScript - Type safety
  • Google Fonts (Space Grotesk + DM Sans)

Support

If Darkness saved you time, please give it a star on GitHub — it helps others discover the theme and motivates further development.

License

MIT - see LICENSE


Made by kpab

About

A stunning dark-themed portfolio template for Astro with interactive Three.js particle animations, blog system, and modern glassmorphism UI.

Topics

Resources

License

Stars

10 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors