feat(posters): 接入 Base16 主题配色库(276 套 16 色方案)

- 新增 format transform: 'base16'(YAML → 结构化 JSON),零依赖逐行解析 palette.base00–base0F

- 新增源 base16-schemes(MIT,tinted-theming/schemes@spec-0.11,276/277 通过率 99.6%)

- 海报 palette 由 31 → 307 条,库总计 71 源 / 11,598 素材

- 结构校验:276 唯一 id、0 结构异常、198 套 dark 变体;版本联动 20261108f
This commit is contained in:
sgp
2026-11-08 12:22:09 +08:00
parent e55d89d04b
commit 424a63d349
17 changed files with 123 additions and 47 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
const HGB_PosterLib = (function () {
'use strict';
const VERSION = '20261108d'; // 与 poster.html 中 poster-builtin.js?v= 版本联动
const VERSION = '20261108f'; // 与 poster.html 中 poster-builtin.js?v= 版本联动
const cache = {}; // sid -> {items:[...]}
const pending = {}; // sid -> Promise
+3 -3
View File
@@ -5,7 +5,7 @@
## 生成时间
2026-11-08T02:38:04.341Z
2026-11-08T04:20:32.272Z
## ① 图标库(共享,LOGO/头像/海报共用)
@@ -15,8 +15,8 @@
## ② 海报素材库
- 源数:70 | 素材总数:11322
- 类型分布:palette 7 / decoration 4 / bg 5 / font 54
- 源数:71 | 素材总数:11598
- 类型分布:palette 8 / decoration 4 / bg 5 / font 54
- 源清单:js/data/manifest/posters.json
## ③ 技能库
+22 -2
View File
@@ -1,7 +1,7 @@
{
"kind": "posters",
"total": 11322,
"builtAt": "2026-11-07T18:47:36.642Z",
"total": 11598,
"builtAt": "2026-11-08T04:20:06.366Z",
"guide": "js/data/manifest/README.md",
"idRule": "「源:相对路径」,如 fontsource-inter:latin-400-normal.woff2",
"sources": [
@@ -1404,6 +1404,26 @@
"workspaces": [
"poster"
]
},
{
"id": "base16-schemes",
"type": "palette",
"name": "Base16 Schemes",
"nameCn": "Base16 主题配色",
"desc": "Tinted Theming 社区维护的 Base16 配色方案全集(362 套),每套 16 色(base00–base0F)且标注 dark/light 变体与作者,适合海报快速定调与深色/浅色成套取色",
"license": "MIT",
"licenseNote": "MIT 协议,可商用;各方案版权归原作者,建议保留方案名与作者信息",
"home": "https://github.com/tinted-theming/schemes",
"github": "https://github.com/tinted-theming/schemes",
"format": "gh-files",
"coordText": "16 色(base00–base0F,含 dark/light 变体)",
"variants": "362 套社区主题(如 3024 / apathy / arroz-con-dulce)",
"added": "2026-11-08",
"count": 276,
"file": "posters/base16-schemes.js",
"workspaces": [
"poster"
]
}
]
}
File diff suppressed because one or more lines are too long
+22
View File
@@ -1052,6 +1052,28 @@
variants: '按分类轮转挑选 700 张,覆盖木/砖/混凝土/织物/金属/岩砂/植被/地面等',
added: '2026-11-06',
workspaces: ['poster']
},
{
id: 'base16-schemes',
type: 'palette',
name: 'Base16 Schemes',
nameCn: 'Base16 主题配色',
desc: 'Tinted Theming 社区维护的 Base16 配色方案全集(362 套),每套 16 色(base00–base0F)且标注 dark/light 变体与作者,适合海报快速定调与深色/浅色成套取色',
license: 'MIT',
licenseNote: 'MIT 协议,可商用;各方案版权归原作者,建议保留方案名与作者信息',
home: 'https://github.com/tinted-theming/schemes',
github: 'https://github.com/tinted-theming/schemes',
format: 'gh-files',
gh: 'tinted-theming/schemes',
ghBranch: 'spec-0.11',
dirs: ['base16/'],
ext: ['.yaml', '.yml'],
transform: 'base16',
scaleMode: 'wrap',
coordText: '16 色(base00–base0F,含 dark/light 变体)',
variants: '362 套社区主题(如 3024 / apathy / arroz-con-dulce)',
added: '2026-11-08',
workspaces: ['poster']
}
];
});
File diff suppressed because one or more lines are too long