Add the coffeylabs theme and the image build #1

Merged
jcoffey-dev merged 1 commits from coffeylabs-theme into main 2026-10-06 05:29:27 +00:00
Owner

Adds the coffeylabs theme -- coffeylabs.org's palette, type and blueprint grid -- and the image build for it.

Theme

  • Loads the stock stylesheet, then overrides Mastodon's color tokens for both color schemes: blue-slate greys, the #4EA8FF / #1668C7 accent, bright-blue buttons with dark ink on dark.
  • Bricolage Grotesque for headings and names, JetBrains Mono for the wordmark, timestamps, counts and hashtags (both OFL, served from the instance so the CSP allows them).
  • The 32px blueprint grid and glow behind the columns, and the instance mark with a mono wordmark in place of the Mastodon wordmark.
  • Users can still choose Mastodon's default theme.

Upstream files touched (each with a modification notice): config/themes.yml, app/lib/themes.rb (dark browser-bar color), Dockerfile (SOURCE_BASE_URL / SOURCE_TAG, so "View source code" points here). Upstream's .github/workflows are removed. COFFEYLABS.md lists every change.

CI: .gitea/workflows/ci.yml builds the image on every PR and push to main, and fails if the compiled theme is missing. A tag v<upstream>-coffeylabs.<n> publishes the amd64 image and a release; it refuses a tag that doesn't match lib/mastodon/version.rb or isn't on main. Needs a PACKAGE_TOKEN repository secret before the first tag.

Tested locally: full docker build passed; the image carries themes/coffeylabs-*.css with font URLs under /packs/assets/, the stock default theme compiles byte-identical to upstream v4.7.3's, and the source-link variables are set. Previewed against live timelines in dark and light.

Adds the **coffeylabs** theme -- coffeylabs.org's palette, type and blueprint grid -- and the image build for it. **Theme** - Loads the stock stylesheet, then overrides Mastodon's color tokens for both color schemes: blue-slate greys, the `#4EA8FF` / `#1668C7` accent, bright-blue buttons with dark ink on dark. - Bricolage Grotesque for headings and names, JetBrains Mono for the wordmark, timestamps, counts and hashtags (both OFL, served from the instance so the CSP allows them). - The 32px blueprint grid and glow behind the columns, and the instance mark with a mono wordmark in place of the Mastodon wordmark. - Users can still choose Mastodon's default theme. **Upstream files touched** (each with a modification notice): `config/themes.yml`, `app/lib/themes.rb` (dark browser-bar color), `Dockerfile` (`SOURCE_BASE_URL` / `SOURCE_TAG`, so "View source code" points here). Upstream's `.github/workflows` are removed. `COFFEYLABS.md` lists every change. **CI**: `.gitea/workflows/ci.yml` builds the image on every PR and push to main, and fails if the compiled theme is missing. A tag `v<upstream>-coffeylabs.<n>` publishes the amd64 image and a release; it refuses a tag that doesn't match `lib/mastodon/version.rb` or isn't on main. Needs a `PACKAGE_TOKEN` repository secret before the first tag. **Tested locally**: full `docker build` passed; the image carries `themes/coffeylabs-*.css` with font URLs under `/packs/assets/`, the stock `default` theme compiles byte-identical to upstream v4.7.3's, and the source-link variables are set. Previewed against live timelines in dark and light.
jcoffey-dev added 1 commit 2026-10-06 05:11:42 +00:00
Add the coffeylabs theme and the image build
ci / publish (pull_request) Skipped
ci / docker-build (pull_request) Successful in 16m39s
81adcf107b
The coffeylabs theme brings coffeylabs.org's palette, type and blueprint
grid to Mastodon. It loads the stock stylesheet and then overrides
Mastodon's color tokens for both color schemes, adds Bricolage Grotesque
and JetBrains Mono (OFL, served from the instance), and replaces the
navigation wordmark. The default theme stays available to users.

Small upstream changes, each with a modification notice: themes.yml
registers the theme, themes.rb sets the dark browser-bar color, and the
Dockerfile takes SOURCE_BASE_URL and SOURCE_TAG so "View source code"
points at this repository, as the AGPL expects.

Upstream's GitHub workflows are removed. .gitea/workflows/ci.yml builds
the image on every change and publishes it, with a release, from tags
named v<upstream>-coffeylabs.<n>. COFFEYLABS.md lists every change.
jcoffey-dev merged commit 140f2dbed5 into main 2026-10-06 05:29:27 +00:00
jcoffey-dev deleted branch coffeylabs-theme 2026-10-06 05:29:27 +00:00
Sign in to join this conversation.