GitHub Pages Theme

Jaace Theme

by @Jaace

A minimal dark/light theme for GitHub Pages. Pure HTML, CSS, and JS — no dependencies, no build step.

Usage

Add two lines to any HTML page:

In <head>
<link rel="stylesheet" href="https://jaace.github.io/theme/style.css">
Before </body>
<script src="https://jaace.github.io/theme/theme.js"></script>

What you get

  1. Dark/light mode with system preference detection and localStorage persistence
  2. Design tokens via CSS custom properties — override --accent to change the entire palette
  3. Pre-styled components: nav, hero, sections, code blocks, steps, callouts, footer
  4. Copy-to-clipboard buttons that just work

Components

Every component below is included in style.css. View source on this page to see the HTML patterns.

Ordered list

  1. First step with a short description
  2. Second step with enough content to wrap onto a second line, showing how the number stays aligned at the top
  3. Third step

Unordered list

Command callout

/example-command

Highlighted callout for CLI commands or important actions. Uses the accent color palette.

Code block with copy

npm install something-cool

Install CTA

$ npm install jaace-theme

Terminal animation

Requires terminal.js. Call TerminalDemo.run({ demo, replay, examples }) after the DOM is ready.

Data table with effort tags

Option Level When to use
Fast
Simple tasks, quick lookups, boilerplate generation
Deep
Complex reasoning, open-ended design, hard tradeoffs

Click effort tags to update descriptions. Data lives in data-effort-text — wired automatically by theme.js.

Starter template

Copy this to start a new GitHub Pages site with the theme:

<!DOCTYPE html> <html lang="en" data-theme="dark"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Project</title> <link rel="stylesheet" href="https://jaace.github.io/theme/style.css"> </head> <body> <nav> <span class="nav-brand"><span>~</span>/my-project</span> <div class="nav-right"> <button class="theme-toggle" id="theme-toggle" aria-label="Toggle theme"> <!-- paste sun/moon SVGs from the theme repo --> </button> </div> </nav> <section class="hero"> <p class="eyebrow">Category</p> <h1>Project Name</h1> <p class="tagline">One-line description.</p> </section> <section> <h2>Section</h2> <p>Content goes here.</p> </section> <footer> <span class="footer-note">Built by @You</span> </footer> <script src="https://jaace.github.io/theme/theme.js"></script> </body> </html>