POI2 套主题27 个端GitHub
POIREADMEv0.1.0
给整台电脑的一套主题 · Samaritan

黑色的屏幕,米色的窗口,藏青的终端

近黑,暖白,只有一种红

POI 是一份颜色和形状的令牌,写给 27 个工具:终端、编辑器、Rime 候选窗、KDE 和 macOS、壁纸和网页。黄色只标当前聚焦的那一样东西。

Samaritan 是 POI 的第二套主题:同一份令牌、同样的 27 个工具,全部用一像素的平直线条画。红色是唯一的颜色,只标当前聚焦的那一样东西。

$npx github:pseudoyu/poi-theme install

列出找到的工具,逐个问过再装。每个被替换的文件都先备份,uninstall 原样放回。

或者从 27 个端里挑一个

终端zsh
># poi-theme apply machine
>#  ghostty:-------------------  Done
>#  neovim:--------------------  Done
>#  claude-code:---------------  Done
>#  rime-squirrel:-------------  Done
>#  zed:-----------------------  Done
>#  btop:----------------------  Done
># 
># poi-theme apply samaritan
>#  ghostty:-------------------  Done
>#  neovim:--------------------  Done
>#  claude-code:---------------  Done
>#  rime-squirrel:-------------  Done
>#  zed:-----------------------  Done
>#  btop:----------------------  Done
># 
Ghostty · Rime 候选窗
色板

五个面,每个面上是同样的八个角色

一个面,八个角色

工具画在某一个面上,要的是角色,不是十六进制值。所以一份文件能同时给黑色面板、米色窗口和藏青终端上色,三者不会各走各的。

每个工具都画在同一块近黑上,要的是角色,不是十六进制值。

bgbg-2linetx-3tx-2txaccenton-accent
屏幕桌面、面板、状态行
bg#050505
bg-2#101010
line#3c3c3a
tx-3#8b8b88
tx-2#c9c9c6
tx#e2e2df
accent#f2e02a
on-accent#0a0a0a
窗口应用窗口,浅色的网页
bg#d4ccb8
bg-2#f7f3e8
line#8c8471
tx-3#5a5447
tx-2#3f3a31
tx#1d1b17
accent#f2e02a
on-accent#0a0a0a
终端Ghostty、herdr、代码
bg#0c1a3d
bg-2#1a2955
line#2a3a66
tx-3#8d93a8
tx-2#a9aec0
tx#ece4cf
accent#f2e02a
on-accent#0a0a0a
数据表格和监控
bg#30301d
bg-2#4b4a2d
line#5c5a3b
tx-3#a69e72
tx-2#dccb8e
tx#f6ebc2
accent#f0c24a
on-accent#30301d
日志日志,绿底深色字
bg#46c27a
bg-2#2c9a5a
line#2c9a5a
tx-3#0f4424
tx-2#06200f
tx#000000
accent#06200f
on-accent#46c27a
bgbg-2linetx-3tx-2txaccenton-accent
屏幕所有工具都画在这一个面上
bg#0d0f0e
bg-2#171a19
line#3d423e
tx-3#7b827c
tx-2#bfc4be
tx#dfe2dc
accent#e3202b
on-accent#ffffff
终端 16 色
信号色,每个面各一组dangerokwarnlink

三条规则

黄色是当前聚焦的那一样东西红色是当前聚焦的那一样东西

选中的行、最前面的窗口、即将上屏的候选。不做装饰,不同时出现两处。鼠标或键盘所在的东西,再加四个角标。

红色只用于威胁失败要用文字说

有东西失败了,有东西要被销毁。不用来强调,旁边一定有文字。

强调色本来就是红的,所以失败从不只靠颜色:一定有文字,用更亮的红。

直角,一像素的边一像素的平直线条

能按的东西是凸起的,能输入的地方是凹陷的。没有圆角,没有模糊,不浮起来就没有阴影。

没有凸起也没有凹陷。控件就是一像素的方框。

对比度,每次构建都算

面组合比值
窗口正文10.7
窗口弱化文字4.7
终端正文13.5
终端弱化文字5.6
屏幕正文15.7
数据正文11.2
日志正文9.3
屏幕强调色上的字14.6
面组合比值
屏幕正文14.7
屏幕弱化文字4.9
屏幕强调色上的字4.7
屏幕强调色本身,只用于角标和大字4.1
端

27 个工具,都从同一份令牌文件写出来

一个端就是一个文件夹:生成器、它给每套主题写的文件、怎么装、怎么撤。这是 0.1 版:标「日常在用」的端,写出的文件和作者电脑上每天用的一样;安装器是新写的,只在临时的家目录里测过。

$npx github:pseudoyu/poi-theme install <id>
或者点开某个端,看它的文件和步骤
输入法

Rime 候选窗,macOS、Linux 和 Windows

鼠须管、fcitx5 和小狼毫用同一套配色。它以补丁的方式装进去,雾凇拼音和其它方案照常更新。

每一个都是同一套 zhu ti
# squirrel.custom.yaml, 安装器加进去的部分
patch:
  style/color_scheme: poi_machine
  style/color_scheme_dark: poi_machine
  preset_color_schemes/poi_machine:
    name: Machine
    author: pseudoyu
    candidate_list_layout: linear
    candidate_format: "%c %@ "
    inline_preedit: true
    # square, with a thin line round the window
    corner_radius: 0
    hilited_corner_radius: 0
    border_height: 2
    border_width: 2
    shadow_size: 0
    font_face: "PingFangSC-Regular,HanaMinB"
    font_point: 16
    label_font_face: "IBMPlexMono-Regular"
    label_font_point: 12
    comment_font_face: "IBMPlexMono-Regular"
    comment_font_point: 13
    back_color: 0x101010   # #101010
    border_color: 0x3A3C3C   # #3c3c3a
    text_color: 0xC6C9C9   # #c9c9c6
    hilited_text_color: 0x2AE0F2   # #f2e02a
    hilited_back_color: 0x101010   # #101010
    candidate_text_color: 0xF2F4F4   # #f4f4f2
    comment_text_color: 0x888B8B   # #8b8b88
    label_color: 0x888B8B   # #8b8b88
    hilited_candidate_back_color: 0x2AE0F2   # #f2e02a
    hilited_candidate_text_color: 0x0A0A0A   # #0a0a0a
    hilited_candidate_label_color: 0x0A0A0A   # #0a0a0a
    hilited_comment_text_color: 0x0A0A0A   # #0a0a0a
# squirrel.custom.yaml, 安装器加进去的部分
patch:
  style/color_scheme: poi_samaritan
  style/color_scheme_dark: poi_samaritan
  preset_color_schemes/poi_samaritan:
    name: Samaritan
    author: pseudoyu
    candidate_list_layout: linear
    candidate_format: "%c %@ "
    inline_preedit: true
    # square, with a thin line round the window
    corner_radius: 0
    hilited_corner_radius: 0
    border_height: 2
    border_width: 2
    shadow_size: 0
    font_face: "PingFangSC-Regular,HanaMinB"
    font_point: 16
    label_font_face: "IBMPlexMono-Regular"
    label_font_point: 12
    comment_font_face: "IBMPlexMono-Regular"
    comment_font_point: 13
    back_color: 0x191A17   # #171a19
    border_color: 0x3E423D   # #3d423e
    text_color: 0xBEC4BF   # #bfc4be
    hilited_text_color: 0x2B20E3   # #e3202b
    hilited_back_color: 0x191A17   # #171a19
    candidate_text_color: 0xEAEEEC   # #eceeea
    comment_text_color: 0x858B85   # #858b85
    label_color: 0x858B85   # #858b85
    hilited_candidate_back_color: 0x2B20E3   # #e3202b
    hilited_candidate_text_color: 0xFFFFFF   # #ffffff
    hilited_candidate_label_color: 0xFFFFFF   # #ffffff
    hilited_comment_text_color: 0xFFFFFF   # #ffffff
  1. 安装

    ~/Library/Rime/squirrel.custom.yaml patch 下 3 项:配色方案本身,以及用哪一套

    $npx github:pseudoyu/poi-theme install rime
  2. 重新部署

    重新部署:输入法菜单里点「重新部署」,或按 ⌃ ⌥ `。

  3. 撤销

    把文件恢复成第一次安装之前的样子。

    $npx github:pseudoyu/poi-theme uninstall rime
壁纸

按你的屏幕现画,用的是同一份令牌

没有要缩放的图片。给它尺寸和名字,面板、框和表格都是矢量画出来的。

没有要缩放的图片。给它尺寸和名字,框和这台电脑的节点都是矢量画出来的。

主题
尺寸
×
按所选尺寸画出的壁纸预览

表里列的是你自己的电脑。开箱只有这一台,其余的写在你自己的一个小文件里。

开箱只画这一台电脑。把其它的写进你自己的一个小文件,每台就是一个节点。

PNG 在你的浏览器里转换,用的是这台电脑上装的字体。

Agent

让你的编程 agent 来做

仓库带着几个 skill,教 agent 认识这套主题;还有一个只读的服务,agent 可以向它要令牌、文件和预览图。

Skill

$npx skills add pseudoyu/poi-theme
poi-theme
在这台电脑上装主题,在 Machine 和 Samaritan 之间切换,或者撤销。装完逐个检查。
poi-ui
用这套主题做网页或者改网页:颜色用角色,守三条规则,加角标。说完成之前先查对比度。
poi-wallpaper
按这块屏幕的尺寸画一张壁纸,并告诉你怎么设。
poi-port
给还没有端的应用写一个:生成器、测试、清单里的一条。

MCP 服务

$claude mcp add --transport http poi https://poi.pseudoyu.com/mcp
get_tokens
某套主题的令牌:JSON、CSS 变量或 Tailwind 预设,整份或只要一个面。
get_port
某个工具的文件、每个文件放哪、安装和撤销的步骤。
preview
一张图:色板、终端、候选窗,或某套主题的壁纸。
check_colors
你的 CSS 里不属于这套主题的颜色,每个配上最接近的令牌,以及每组文字和底色的对比度。

POI(Palette of Interest)是一份非官方的致敬,致敬的是某台机器看世界的方式。这里的每一张图都是原创的,没有用任何剧集的画面、标志或名称。

MIT 许可。字体是 IBM Plex,SIL Open Font License。线条图标来自 Lucide,ISC 许可。Telegram 那一个端是 GPL-3.0。

v0.1.0Machine · 经典Machine · 深色Samaritantokens/machine.jsontokens/samaritan.jsonMIT