Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: release

# On a v* tag, pushes every theme version that is not published yet to
# ghcr.io/gameplanepanel/gameplane-themes/<name>:<version> and signs it with
# the project cosign key (the same key pair as the official modules; the public
# half is signing/cosign.pub in GameplanePanel/Gameplane). A theme whose
# version is already published is left alone: change the theme, bump its
# version in theme.yaml, then tag.
#
# Needs in this repository: the `release-signing` environment with the secrets
# COSIGN_PRIVATE_KEY and COSIGN_PASSWORD.

on:
push:
tags:
- "v*"

permissions:
contents: read

concurrency:
group: release
cancel-in-progress: false

env:
GAMEPLANE_REF: 380e2718d1859e68e2d7b9a476b2f64557764860 # master

jobs:
themes:
name: push & sign theme packages
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
packages: write
environment: release-signing
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# Signing is mandatory: fail rather than publish unsigned themes.
- name: require signing key
env:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
run: |
if [ -z "$COSIGN_PRIVATE_KEY" ]; then
echo "::error::COSIGN_PRIVATE_KEY is required for official theme publishing"
exit 1
fi

- name: check out Gameplane (gp-module source)
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: GameplanePanel/Gameplane
ref: ${{ env.GAMEPLANE_REF }}
path: .gameplane
persist-credentials: false

- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: .gameplane/gp-module/go.mod
cache-dependency-path: .gameplane/gp-module/go.sum

- name: build gp-module
run: |
cd .gameplane/gp-module
GOWORK=off go build -o "$RUNNER_TEMP/gp-module" ./cmd/gp-module

- name: install oras
uses: oras-project/setup-oras@ac735097e22fe643015b0d19645f7c9a69942128 # v2.0.4

- name: install cosign
uses: sigstore/cosign-installer@881c63bd87e38389154debd8331404ce7ca8a3ab # v4.1.4
with:
cosign-release: 'v3.1.2'

- name: refresh sigstore trust root
run: cosign initialize

- name: login to registry
uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# --tlog-upload records each signature in the public Rekor transparency
# log, as the module release does.
- name: push & sign themes
env:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
GP_MODULE: ${{ runner.temp }}/gp-module
REPOSITORY_OWNER: ${{ github.repository_owner }}
run: |
owner_lc="$(echo "$REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]')"
./build.sh push \
--registry "ghcr.io/${owner_lc}/gameplane-themes" \
--sign --tlog-upload --skip-existing
55 changes: 55 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: validate themes

# Runs every theme folder through `gp-module theme validate` (the same rules
# the panel applies when it indexes and installs a theme), on every pull
# request and on pushes to master. gp-module is built from the pinned
# GameplanePanel/Gameplane commit below; bump GAMEPLANE_REF when the theme
# package rules change there.

on:
pull_request:
push:
branches: [master]

permissions:
contents: read

concurrency:
group: validate-${{ github.ref }}
cancel-in-progress: true

env:
GAMEPLANE_REF: 380e2718d1859e68e2d7b9a476b2f64557764860 # master

jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: check out Gameplane (gp-module source)
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: GameplanePanel/Gameplane
ref: ${{ env.GAMEPLANE_REF }}
path: .gameplane
persist-credentials: false

- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: .gameplane/gp-module/go.mod
cache-dependency-path: .gameplane/gp-module/go.sum

- name: build gp-module
run: |
cd .gameplane/gp-module
GOWORK=off go build -o "$RUNNER_TEMP/gp-module" ./cmd/gp-module

- name: check build.sh syntax
run: bash -n build.sh

- name: validate every theme
run: GP_MODULE="$RUNNER_TEMP/gp-module" ./build.sh validate
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gameplane/
node_modules/
21 changes: 21 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# themes — AI assistant guide

This repository holds the official themes of the [GameplanePanel/Gameplane](https://github.com/GameplanePanel/Gameplane) theme marketplace (spec 043 there). It is content only: one folder per theme, no application code. Default branch: `master`. What a theme package is and how to work on one: [`README.md`](README.md).

## How it fits into Gameplane

- **Package rules live in Gameplane:** `specs/043-theme-marketplace/contracts/theme-package.md`, enforced by the `themepkg` module and the `gp-module theme` commands. Nothing here re-implements them.
- **CI** is `.github/workflows/validate.yaml`: it builds `gp-module` from the Gameplane commit pinned in `GAMEPLANE_REF` and runs `./build.sh validate`. Bump the pin (in both workflows) when the package rules change.
- **Release** is `.github/workflows/release.yaml`: a `v*` tag pushes every unpublished theme version to `ghcr.io/gameplanepanel/gameplane-themes/<name>:<version>` and signs it with the project cosign key (the module key pair). Sessions cannot push tags: the maintainer tags.
- **The list of official themes ships in the Gameplane chart** (`themes.officialSource.themes`). A new theme needs a Gameplane PR that adds its name there, with a `changelog/unreleased/` entry.

## Rules

Gameplane's [`AGENTS.md`](https://github.com/GameplanePanel/Gameplane/blob/master/AGENTS.md) core rules apply here. The ones that matter most in this repository:

- **Validate, never bypass:** every theme passes `./build.sh validate`. Fix the theme; never loosen the check or skip a theme.
- **A published version is immutable:** any change to a released theme bumps `version` in its `theme.yaml` and adds a `changelog` line.
- **Folder name = `name` in `theme.yaml`.** No file other than `theme.yaml`, `theme.css` and `previews/{light,dark}.{png,webp}` in a theme folder.
- **Previews are real:** regenerate them with `hack/capture-previews.ts` after any token or CSS change; never hand-edit or reuse another theme's preview.
- **No remote content in `theme.css`:** no `@import`, no remote `url()`, no fonts fetched from the network.
- **Git:** signed commits (`git commit -s`), conventional prefixes (`feat:`, `fix:`, `chore:`, `docs:` …), one branch per unit of work, never amend pushed commits; delete the branch after merge.
1 change: 1 addition & 0 deletions CLAUDE.md
98 changes: 97 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,97 @@
# themes
# Gameplane official themes

The official themes of the [Gameplane](https://github.com/GameplanePanel/Gameplane) theme marketplace. Every Gameplane install lists them in the **Theme catalog** (Settings → Theme), from the built-in `official` source (`ghcr.io/gameplanepanel/gameplane-themes`).

A theme is one folder:

```
<name>/
theme.yaml name, version, author, license, and the 14 color tokens per mode
theme.css optional extra CSS (sanitized: no @import, no remote url())
previews/light.png one preview per mode that has tokens (PNG or WebP,
previews/dark.png at most 1600x1000 px and 512 KiB)
```

The package rules live in Gameplane: [`contracts/theme-package.md`](https://github.com/GameplanePanel/Gameplane/blob/master/specs/043-theme-marketplace/contracts/theme-package.md). The same validator runs here in CI, in the panel when it indexes a source, and again at install.

## Themes

| Theme | What it does |
|---|---|
| [Arcade Neon](arcade-neon/) | Electric violet with a cyan focus ring, in both modes. |
| [Arctic Blue](arctic-blue/) | Cool slate surfaces and glacial blue. |
| [Blueprint Board](blueprint-board/) | Drafting grid, ruled panels, and dashed focus rings. |
| [Brutalist](brutalist/) | Square corners, 2px borders, hard offset shadows. |
| [Catppuccin](catppuccin/) | Catppuccin Latte in light mode and Mocha in dark mode. |
| [Compact Density](compact-density/) | Scales the whole interface down through the root font size. No color changes. |
| [Cyberpunk Neon](cyberpunk-neon/) | Neon magenta and cyan on near-black, with a restrained glow in dark mode. |
| [Dashboard Bento](dashboard-bento/) | Asymmetric 12-column layout for metrics and fleet panels. |
| [Deep Ocean](deep-ocean/) | Midnight blue surfaces and sea-glass teal. |
| [Dracula](dracula/) | Dracula in dark mode and a lightened paper variant in light mode. |
| [Elegant Serif](elegant-serif/) | Serif body text, no color changes. |
| [Ember Forge](ember-forge/) | Charcoal, kiln orange, and squared corners. |
| [Flat Workbench](flat-workbench/) | Removes card boxes and organizes content with dividers. |
| [Forest Camp](forest-camp/) | Pine, fern, and natural warmth. |
| [Glass Observatory](glass-observatory/) | Translucent panels, blur, and atmospheric light. |
| [Gruvbox](gruvbox/) | Gruvbox warm retro colors in both modes. |
| [High Contrast Focus](high-contrast-focus/) | Stronger borders and muted text, a global focus ring, and underlined content links. |
| [Kinetic Hover](kinetic-hover/) | Responsive hover and press feedback with reduced-motion support. |
| [Large Type](large-type/) | Scales the whole interface up through the root font size. No color changes. |
| [Lavender Dream](lavender-dream/) | Lilac surfaces, violet controls, and generous corners. |
| [No Motion](no-motion/) | Turns off nearly all transitions and animations across the app. |
| [Nord](nord/) | Nord: Snow Storm in light mode and Polar Night in dark mode. |
| [Ocean Deep](ocean-deep/) | Dark-first abyssal navy with a cyan accent. |
| [Paper Map](paper-map/) | Parchment surfaces, ink, and compact corners. |
| [Pastel Sakura](pastel-sakura/) | Light-first soft cherry-blossom pastel. |
| [Phosphor Terminal](phosphor-terminal/) | Green-phosphor CRT: green palette, monospace type, square corners, scanlines and glow. |
| [Rounded Playful](rounded-playful/) | Maximum roundness: pill buttons and 20px cards. No color changes. |
| [Sepia Paper](sepia-paper/) | Warm e-reader paper tones. |
| [Sidebar Right](sidebar-right/) | Moves the desktop sidebar to the right edge. No color changes. |
| [Soft 3D Controls](soft-3d-controls/) | Raised cards, inset fields, and tactile button presses. |
| [Solarized](solarized/) | The Solarized palette in both modes. |
| [Terminal Green](terminal-green/) | Phosphor green, monospace, and compact corners. |
| [Top Nav Blue](top-nav-blue/) | Moves the desktop sidebar into a horizontal bar above the header, with a blue accent. |

Every theme ships light and dark tokens. The themes that only change layout, shape, type or motion keep the Modern Pink colors.

## Work on a theme

You need `gp-module`, built from a Gameplane checkout:

```sh
cd <Gameplane>/gp-module && go build -o ~/bin/gp-module ./cmd/gp-module
```

Then, from this repository:

```sh
gp-module theme init my-theme --light --dark # scaffold a new theme
gp-module theme preview my-theme # local sample page, nothing is published
./build.sh validate --name my-theme # every package rule
./build.sh validate # every theme
```

Previews are screenshots of the real dashboard with the theme applied. `hack/capture-previews.ts` starts the dashboard in mock mode (no cluster needed) and writes `previews/light.png` and `previews/dark.png`:

```sh
(cd <Gameplane>/web && npm ci)
node hack/capture-previews.ts --web <Gameplane>/web my-theme
```

Changing a published theme means bumping `version` in its `theme.yaml`: a published version is never overwritten. Add a line to `changelog` in `theme.yaml` to say what changed.

## Release

A `v*` tag runs `.github/workflows/release.yaml`. It pushes every theme version that is not published yet to `ghcr.io/gameplanepanel/gameplane-themes/<name>:<version>` and signs it with the project cosign key, the same key pair as the official modules (public half: [`signing/cosign.pub`](https://github.com/GameplanePanel/Gameplane/blob/master/signing/cosign.pub)).

The panel indexes the theme names listed in the Gameplane chart (`themes.officialSource.themes` in `charts/gameplane/values.yaml`). A new theme shows up in installs once its name is added there.

To push to your own registry:

```sh
./build.sh push --registry localhost:5001/themes --plain-http
```

## License

The themes are licensed under AGPL-3.0-only, like Gameplane. Catppuccin, Dracula, Gruvbox, Nord and Solarized follow the color palettes of those projects.
Binary file added arcade-neon/previews/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arcade-neon/previews/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions arcade-neon/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/* Arcade Neon: official Gameplane theme. */
html.dark[data-theme][data-theme-preset][data-theme-type] {
--background: #100b1d;
--foreground: #f6edff;
--surface: #1b1030;
--surface-secondary: #160d27;
--surface-tertiary: #24143a;
--overlay: #281740;
--accent: #e879f9;
--accent-foreground: #21072b;
--accent-soft: #3a1550;
--accent-soft-foreground: #f0abfc;
--default: #291b3b;
--default-foreground: #f6edff;
--border: #4b2862;
--separator: #352047;
--muted: #b8a3cb;
--field-background: #160d27;
--field-border: #59316f;
--field-foreground: #fff7ff;
--field-placeholder: #a68bbd;
--focus: #22d3ee;
--link: #67e8f9;
--radius: 12px;
--radius-md: var(--radius);
--radius-lg: calc(var(--radius) + 2px);
--field-radius: 8px;
}
html.light[data-theme][data-theme-preset][data-theme-type] {
--background: #faf5ff;
--foreground: #271033;
--surface: #fffaff;
--surface-secondary: #f5eafd;
--surface-tertiary: #eeddf8;
--overlay: #fffaff;
--accent: #a21caf;
--accent-foreground: #fff;
--accent-soft: #f5d0fe;
--accent-soft-foreground: #701a75;
--default: #f1e5f7;
--default-foreground: #341143;
--border: #ddc4eb;
--separator: #e9d9f1;
--muted: #70567c;
--field-background: #fffaff;
--field-border: #d5b5e3;
--field-foreground: #271033;
--field-placeholder: #80678b;
--focus: #a21caf;
--link: #86198f;
}

/* Cyan focus gives the neon accent a second, arcade-like signal. */
html.dark[data-theme][data-theme-preset][data-theme-type] :focus-visible {
outline: 2px solid #22d3ee;
outline-offset: 2px;
}
41 changes: 41 additions & 0 deletions arcade-neon/theme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Theme package. Run `gp-module theme validate <dir>` after editing.
apiVersion: gameplane.local/theme/v1
name: arcade-neon
version: 1.0.0
displayName: Arcade Neon
author: Gameplane
description: "Electric violet with a cyan focus ring, in both modes."
tags: [palette, light, dark]
license: AGPL-3.0-only
homepage: https://github.com/GameplanePanel/themes
tokens:
light:
background: "#faf5ff"
foreground: "#271033"
surface: "#fffaff"
surface-secondary: "#f5eafd"
surface-tertiary: "#eeddf8"
overlay: "#fffaff"
accent: "#a21caf"
accent-foreground: "#ffffff"
accent-soft: "#f5d0fe"
accent-soft-foreground: "#701a75"
muted: "#70567c"
border: "#ddc4eb"
focus: "#a21caf"
link: "#86198f"
dark:
background: "#100b1d"
foreground: "#f6edff"
surface: "#1b1030"
surface-secondary: "#160d27"
surface-tertiary: "#24143a"
overlay: "#281740"
accent: "#e879f9"
accent-foreground: "#21072b"
accent-soft: "#3a1550"
accent-soft-foreground: "#f0abfc"
muted: "#b8a3cb"
border: "#4b2862"
focus: "#22d3ee"
link: "#67e8f9"
Binary file added arctic-blue/previews/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arctic-blue/previews/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading