Theming Guide


Norgolith theming system allows you to customize the appearance and layout of your site. This guide will walk you through installing, customizing, and creating themes, as well as advanced theming techniques.

Installing Themes

Norgolith makes it easy to install and manage themes using the lith theme command.

Important

Currently, Norgolith only supports pulling themes from Git tags. This was done on purpose to try to make a good system around releases and versioning mandatory.

Install a Theme

lith theme pull github:NTBBloodbath/norgolith-pico-theme

Update Theme

lith theme update

Rollback Theme

lith theme rollback

Retrieve Theme Information

lith theme info

Theme Structure

A Norgolith theme has the following structure:

theme/
├── assets/         # Static files (CSS, JS, images)
├── templates/      # Tera templates for HTML generation
├── theme.toml      # Theme metadata
└── .metadata.toml  # Theme state (auto-generated)

Key Files

Creating Your Own Theme

Step 1: Initialize a New Theme

lith theme init

This will prompt for the theme information and create a new theme structure in the theme/ directory:

theme/
├── assets/
├── templates/
└── theme.toml

Step 2: Create Templates

Add Tera templates to the templates/ directory. Common templates include:

Step 3: Add Assets

Place your CSS, JavaScript, and images in the assets/ directory.

Theme Configuration

The theme.toml file contains metadata for your theme.

name = "Norgolith Pico"
author = "NTBBloodbath"
description = "PicoCSS for Norgolith"
version = "0.1.0"
license = "MIT"
repository = "github:NTBBloodbath/norgolith-pico-theme"

Fields


Best Practices

Organizing Your Theme

Versioning Your Theme

Testing Your Theme


Next Steps