pi-modus-themes

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

Modus Themes for pi

npm version

Previews

Modus Operandi (light)

Modus Operandi

Modus Vivendi (dark)

Modus Vivendi

Install

npm

pi install npm:pi-modus-themes

git

pi install git:github.com/hron/pi-modus-themes

Select

In pi, run /settings and choose modus-operandi or modus-vivendi.

Generate

Themes are generated from palette definitions in src/palettes.js:

npm run generate

Colors

Palette colors and semantic mappings are taken from the official Modus themes by Protesilaos Stavrou.

Publishing (for maintainers)

This package is automatically published to npm via GitHub Actions when a new GitHub Release is created.

Steps to publish a new version

  1. Run npm run release -- <bump> where <bump> is minor, patch, or major.
  2. Push remote: git push.
  3. release-it creates a GitHub Release, which triggers the publish workflow.

Required setup

Add an NPM_TOKEN secret in Settings → Secrets and variables → Actions with an npm automation token that has publish access to pi-modus-themes.