Skip to content

feat: add Prelude themes for Process Compose - #68

Merged
cooper (czxtm) merged 2 commits into
mainfrom
cm/prelude-process-compose-themes-0fed
Oct 3, 2026
Merged

cooper (czxtm) merged 2 commits into
mainfrom
cm/prelude-process-compose-themes-0fed

Conversation

@czxtm

@czxtm cooper (czxtm) commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Inspected Stackpanel's actual Process Compose input: github:Platonic-Systems/process-compose-flake, pinned in flake.lock to 464ff6880737f063c3f0d3d2c7781fda9190868f.
  • Confirmed that process-compose-flake exposes flakeModule, lib, and a template; its module exposes process settings and CLI wrapper options, but no Process Compose theme-definition hook (theme, themes, style attrsets, or custom-theme file option).
  • Source Prelude palettes from the pinned Prelude flake (inputs.prelude.lib.themes) and map those Nix theme definitions into Process Compose's supported custom theme.yaml schema.
  • Added stackpanel.process-compose.theme to select a Process Compose theme, defaulting to the active Prelude theme or minted.
  • Generate .stack/gen/process-compose/theme.yaml and launch Process Compose with --theme "Custom Style" via the existing dev wrapper.
  • Documented the Process Compose theme selection path.

Approach

process-compose-flake does not expose a first-class theme mechanism. Because upstream Process Compose itself loads custom TUI themes from a config directory (theme.yaml) and activates them as Custom Style, Stackpanel now uses Prelude's Nix theme attrset as the source of truth and renders only the required Process Compose custom theme file. This avoids hand-copying Prelude colors while still using the only theme mechanism Process Compose provides.

Ported themes

Sourced from inputs.prelude.lib.themes:

  • phosphor
  • minted
  • amber
  • solarized
  • nord
  • gruvbox
  • mono
  • apathy
  • paper
  • prelude

Config paths and selection

  • Nix role mapping: nix/stackpanel/modules/process-compose/themes.nix
  • Generated Process Compose theme file: .stack/gen/process-compose/theme.yaml
  • Select a theme explicitly:
    stackpanel.process-compose.theme = "nord";
  • If unset, Process Compose follows stackpanel.prelude.theme; if that is unset, it falls back to minted.

Verification

  • git diff --check and git diff --cached --check passed.
  • Full repo gates were not run because this cloud image does not have nix, bun, nixfmt, alejandra, or bd available on PATH.
Open in Web Open in Cursor 

Co-authored-by: cooper <czxtm@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Preview pr-68 has been destroyed.

Co-authored-by: cooper <czxtm@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Docs preview pr-68 has been destroyed.

@czxtm
cooper (czxtm) merged commit 9a9257d into main Oct 3, 2026
14 checks passed
@linear-code

linear-code Bot commented Oct 3, 2026

Copy link
Copy Markdown

ENG-945

This branch was successfully deployed

2 active deployments
docs-preview — 4e4409c1 Deployed Sep 29, 2026 by cursor[bot] via deploy #220
pr-68 — 4e4409c1 Deployed Sep 29, 2026 by cursor[bot] via deploy #234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants