feat(posters): 新增图案/纹理源 pattern.css(48) 与 Radix Colors(288 色),海报库达 2358/65

This commit is contained in:
sgp
2026-11-05 01:38:40 +08:00
parent b1b269519d
commit d3204ab459
85 changed files with 839 additions and 19 deletions
+3 -3
View File
@@ -15,9 +15,9 @@ h1{font-size:16px}h2{font-size:14px}
<p>支持参数:<code>?only=源1,源2</code> 定向审计;<code>?max=N</code> 每源最多素材数;<code>?size=N</code> 渲染尺寸;<code>?compare=1</code> 开启「原始 vs 下载」逐像素对比。</p>
<div id="out"><p>加载中…</p></div>
<script src="js/data/poster-sources.js?v=20261105c"></script>
<script src="js/data/poster-builtin.js?v=20261105c"></script>
<script src="js/core/posterlib.js?v=20261105c"></script>
<script src="js/data/poster-sources.js?v=20261105d"></script>
<script src="js/data/poster-builtin.js?v=20261105d"></script>
<script src="js/core/posterlib.js?v=20261105d"></script>
<script>
/** 渲染 svg 字符串 → 像素统计 {blank, alphaSum, data, width, height} */
+1 -1
View File
@@ -12,7 +12,7 @@
const HGB_PosterLib = (function () {
'use strict';
const VERSION = '20261105c'; // 与 poster.html 中 poster-builtin.js?v= 版本联动
const VERSION = '20261105d'; // 与 poster.html 中 poster-builtin.js?v= 版本联动
const cache = {}; // sid -> {items:[...]}
const pending = {}; // sid -> Promise
+3 -3
View File
@@ -5,7 +5,7 @@
## 生成时间
2026-11-04T17:22:11.022Z
2026-11-04T17:37:47.941Z
## ① 图标库(共享,LOGO/头像/海报共用)
@@ -15,8 +15,8 @@
## ② 海报素材库
- 源数:63 | 素材总数:2286
- 类型分布:palette 6 / decoration 4 / bg 3 / font 50
- 源数:65 | 素材总数:2358
- 类型分布:palette 7 / decoration 4 / bg 4 / font 50
- 源清单:js/data/manifest/posters.json
## ③ 技能库
+42 -2
View File
@@ -1,7 +1,7 @@
{
"kind": "posters",
"total": 2286,
"builtAt": "2026-11-04T16:49:42.601Z",
"total": 2358,
"builtAt": "2026-11-04T17:37:15.001Z",
"guide": "js/data/manifest/README.md",
"idRule": "「源:相对路径」,如 fontsource-inter:latin-400-normal.woff2",
"sources": [
@@ -1264,6 +1264,46 @@
"workspaces": [
"poster"
]
},
{
"id": "patterncss",
"type": "bg",
"name": "Pattern.css",
"nameCn": "CSS 几何图案",
"desc": "pattern.css(MIT)48 款几何底纹:棋盘格、网格、圆点阵、交错点、横/竖/斜线、横/竖/斜条纹、锯齿、三角,各 4 档尺寸,可无缝平铺,适合海报背景与信息图分区底纹",
"license": "MIT",
"licenseNote": "MIT 协议,可自由商用、修改、再分发,需保留版权声明",
"home": "https://bansal.io/pattern-css",
"github": "https://github.com/bansal/pattern.css",
"format": "local",
"coordText": "平铺单元 SVG(各家族 4 档尺寸,保留原始 viewBox)",
"variants": "12 家族 × 4 尺寸 = 48 款(currentColor 着色,可任意换色)",
"added": "2026-11-05",
"count": 48,
"file": "posters/patterncss.js",
"workspaces": [
"poster"
]
},
{
"id": "radix-colors",
"type": "palette",
"name": "Radix Colors",
"nameCn": "Radix 色阶配色",
"desc": "Radix UI 出品的 24 组专业色阶(MIT),每组 12 级明暗递进,共 288 色,专为界面与图形对比度调校,适合海报主色/辅助色体系搭建",
"license": "MIT",
"licenseNote": "MIT 协议,可自由商用、修改、再分发,需保留版权声明",
"home": "https://www.radix-ui.com/colors",
"github": "https://github.com/radix-ui/colors",
"format": "local",
"coordText": "配色 JSON(每组 name + colors 十二级色值)",
"variants": "24 组色系 × 12 级色阶 = 288 色",
"added": "2026-11-05",
"count": 24,
"file": "posters/radix-colors.js",
"workspaces": [
"poster"
]
}
]
}
File diff suppressed because one or more lines are too long
+46 -1
View File
@@ -16,6 +16,7 @@
* license 协议 licenseNote 协议中文说明(署名要求等)
* home 官网 github GitHub 仓库
* format 拉取方式:gh-files(GitHub 仓库直拉)| dir-files(npm 目录枚举)
* local(读取 js/data/posters/{id}/files 下预生成素材,用于 CSS 库提取物)
* gh/ghBranch GitHub 仓库与分支(format=gh-files 必填)
* npm npm 包名(format=dir-files 必填)
* dirs 目标目录(gh-files / dir-files 均用)
@@ -884,6 +885,50 @@
{ id: 'fontsource-anton', type: 'font', name: 'Anton', nameCn: 'Anton 字体', desc: '超粗窄体展示字(OFL 1.1),冲击力极强,适合促销、运动与街头大标题', license: 'OFL-1.1', licenseNote: 'SIL Open Font License 1.1,可自由商用与修改', home: 'https://fonts.google.com/specimen/Anton', github: 'https://github.com/googlefonts/Anton', format: 'dir-files', npm: '@fontsource/anton', npmVersion: '5.3.0', dirs: ['files'], ext: ['.woff2'], scaleMode: 'wrap', coordText: '静态 woff2', variants: '单字重 400', added: '2026-11-05', workspaces: ['poster'] },
{ id: 'fontsource-archivo-black', type: 'font', name: 'Archivo Black', nameCn: 'Archivo Black 字体', desc: '超粗几何展示字(OFL 1.1),块面厚重、视觉重量大,适合海报主标题', license: 'OFL-1.1', licenseNote: 'SIL Open Font License 1.1,可自由商用与修改', home: 'https://fonts.google.com/specimen/Archivo+Black', github: 'https://github.com/Omnibus-Type/Archivo-Black', format: 'dir-files', npm: '@fontsource/archivo-black', npmVersion: '5.3.0', dirs: ['files'], ext: ['.woff2'], scaleMode: 'wrap', coordText: '静态 woff2', variants: '单字重 400', added: '2026-11-05', workspaces: ['poster'] },
{ id: 'fontsource-abril-fatface', type: 'font', name: 'Abril Fatface', nameCn: 'Abril Fatface 字体', desc: '高对比复古展示衬线(OFL 1.1),浪漫厚重,适合时尚、餐饮与活动主视觉', license: 'OFL-1.1', licenseNote: 'SIL Open Font License 1.1,可自由商用与修改', home: 'https://fonts.google.com/specimen/Abril+Fatface', github: 'https://github.com/googlefonts/AbrilFatface', format: 'dir-files', npm: '@fontsource/abril-fatface', npmVersion: '5.3.0', dirs: ['files'], ext: ['.woff2'], scaleMode: 'wrap', coordText: '静态 woff2', variants: '单字重 400', added: '2026-11-05', workspaces: ['poster'] },
{ id: 'fontsource-dancing-script', type: 'font', name: 'Dancing Script', nameCn: 'Dancing Script 字体', desc: '优雅连笔手写体(OFL 1.1),自然流畅,适合婚礼、邀请函与温情主题', license: 'OFL-1.1', licenseNote: 'SIL Open Font License 1.1,可自由商用与修改', home: 'https://fonts.google.com/specimen/Dancing+Script', github: 'https://github.com/googlefonts/dancing-script', format: 'dir-files', npm: '@fontsource-variable/dancing-script', npmVersion: '5.3.0', dirs: ['files'], ext: ['.woff2'], scaleMode: 'wrap', coordText: '可变字体 woff2', variants: '400-700 可变', added: '2026-11-05', workspaces: ['poster'] }
{ id: 'fontsource-dancing-script', type: 'font', name: 'Dancing Script', nameCn: 'Dancing Script 字体', desc: '优雅连笔手写体(OFL 1.1),自然流畅,适合婚礼、邀请函与温情主题', license: 'OFL-1.1', licenseNote: 'SIL Open Font License 1.1,可自由商用与修改', home: 'https://fonts.google.com/specimen/Dancing+Script', github: 'https://github.com/googlefonts/dancing-script', format: 'dir-files', npm: '@fontsource-variable/dancing-script', npmVersion: '5.3.0', dirs: ['files'], ext: ['.woff2'], scaleMode: 'wrap', coordText: '可变字体 woff2', variants: '400-700 可变', added: '2026-11-05', workspaces: ['poster'] },
/* ============================================================
* —— 2026-11-05 图案 / 纹理批次:CSS 库提取为静态素材 ——
* pattern.css 几何图案 bg(MIT;原库用 CSS 渐变定义,由
* scripts/import-css-assets.js 按各家族几何规则
* 还原为等价可平铺 SVG,currentColor 着色)
* radix-colors 配色 palette(MIT;24 组各 12 级色阶,共 288 色)
* 说明:本地预生成源(format: 'local'),构建时读 js/data/posters/{id}/files
* ============================================================ */
{
id: 'patterncss',
type: 'bg',
name: 'Pattern.css',
nameCn: 'CSS 几何图案',
desc: 'pattern.css(MIT)48 款几何底纹:棋盘格、网格、圆点阵、交错点、横/竖/斜线、横/竖/斜条纹、锯齿、三角,各 4 档尺寸,可无缝平铺,适合海报背景与信息图分区底纹',
license: 'MIT',
licenseNote: 'MIT 协议,可自由商用、修改、再分发,需保留版权声明',
home: 'https://bansal.io/pattern-css',
github: 'https://github.com/bansal/pattern.css',
format: 'local',
ext: ['.svg'],
scaleMode: 'wrap',
coordText: '平铺单元 SVG(各家族 4 档尺寸,保留原始 viewBox)',
variants: '12 家族 × 4 尺寸 = 48 款(currentColor 着色,可任意换色)',
added: '2026-11-05',
workspaces: ['poster']
},
{
id: 'radix-colors',
type: 'palette',
name: 'Radix Colors',
nameCn: 'Radix 色阶配色',
desc: 'Radix UI 出品的 24 组专业色阶(MIT),每组 12 级明暗递进,共 288 色,专为界面与图形对比度调校,适合海报主色/辅助色体系搭建',
license: 'MIT',
licenseNote: 'MIT 协议,可自由商用、修改、再分发,需保留版权声明',
home: 'https://www.radix-ui.com/colors',
github: 'https://github.com/radix-ui/colors',
format: 'local',
ext: ['.json'],
scaleMode: 'wrap',
coordText: '配色 JSON(每组 name + colors 十二级色值)',
variants: '24 组色系 × 12 级色阶 = 288 色',
added: '2026-11-05',
workspaces: ['poster']
}
];
});
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><rect x="0" y="0" width="50" height="50" fill="currentColor"/><rect x="0" y="100" width="50" height="50" fill="currentColor"/><rect x="50" y="50" width="50" height="50" fill="currentColor"/><rect x="50" y="150" width="50" height="50" fill="currentColor"/><rect x="100" y="0" width="50" height="50" fill="currentColor"/><rect x="100" y="100" width="50" height="50" fill="currentColor"/><rect x="150" y="50" width="50" height="50" fill="currentColor"/><rect x="150" y="150" width="50" height="50" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 596 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><rect x="0" y="0" width="25" height="25" fill="currentColor"/><rect x="0" y="50" width="25" height="25" fill="currentColor"/><rect x="25" y="25" width="25" height="25" fill="currentColor"/><rect x="25" y="75" width="25" height="25" fill="currentColor"/><rect x="50" y="0" width="25" height="25" fill="currentColor"/><rect x="50" y="50" width="25" height="25" fill="currentColor"/><rect x="75" y="25" width="25" height="25" fill="currentColor"/><rect x="75" y="75" width="25" height="25" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 588 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><rect x="0" y="0" width="10" height="10" fill="currentColor"/><rect x="0" y="20" width="10" height="10" fill="currentColor"/><rect x="10" y="10" width="10" height="10" fill="currentColor"/><rect x="10" y="30" width="10" height="10" fill="currentColor"/><rect x="20" y="0" width="10" height="10" fill="currentColor"/><rect x="20" y="20" width="10" height="10" fill="currentColor"/><rect x="30" y="10" width="10" height="10" fill="currentColor"/><rect x="30" y="30" width="10" height="10" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 586 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><rect x="0" y="0" width="100" height="100" fill="currentColor"/><rect x="0" y="200" width="100" height="100" fill="currentColor"/><rect x="100" y="100" width="100" height="100" fill="currentColor"/><rect x="100" y="300" width="100" height="100" fill="currentColor"/><rect x="200" y="0" width="100" height="100" fill="currentColor"/><rect x="200" y="200" width="100" height="100" fill="currentColor"/><rect x="300" y="100" width="100" height="100" fill="currentColor"/><rect x="300" y="300" width="100" height="100" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 616 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="none"><circle cx="1.5" cy="1.5" r="1.5" fill="currentColor"/><circle cx="16.5" cy="16.5" r="1.5" fill="currentColor"/><circle cx="1.5" cy="31.5" r="1.5" fill="currentColor"/><circle cx="16.5" cy="46.5" r="1.5" fill="currentColor"/><circle cx="31.5" cy="1.5" r="1.5" fill="currentColor"/><circle cx="46.5" cy="16.5" r="1.5" fill="currentColor"/><circle cx="31.5" cy="31.5" r="1.5" fill="currentColor"/><circle cx="46.5" cy="46.5" r="1.5" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 530 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><circle cx="1" cy="1" r="1" fill="currentColor"/><circle cx="11" cy="11" r="1" fill="currentColor"/><circle cx="1" cy="21" r="1" fill="currentColor"/><circle cx="11" cy="31" r="1" fill="currentColor"/><circle cx="21" cy="1" r="1" fill="currentColor"/><circle cx="31" cy="11" r="1" fill="currentColor"/><circle cx="21" cy="21" r="1" fill="currentColor"/><circle cx="31" cy="31" r="1" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 482 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><circle cx="0.5" cy="0.5" r="0.5" fill="currentColor"/><circle cx="5.5" cy="5.5" r="0.5" fill="currentColor"/><circle cx="0.5" cy="10.5" r="0.5" fill="currentColor"/><circle cx="5.5" cy="15.5" r="0.5" fill="currentColor"/><circle cx="10.5" cy="0.5" r="0.5" fill="currentColor"/><circle cx="15.5" cy="5.5" r="0.5" fill="currentColor"/><circle cx="10.5" cy="10.5" r="0.5" fill="currentColor"/><circle cx="15.5" cy="15.5" r="0.5" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 526 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="none"><circle cx="2" cy="2" r="2" fill="currentColor"/><circle cx="22" cy="22" r="2" fill="currentColor"/><circle cx="2" cy="42" r="2" fill="currentColor"/><circle cx="22" cy="62" r="2" fill="currentColor"/><circle cx="42" cy="2" r="2" fill="currentColor"/><circle cx="62" cy="22" r="2" fill="currentColor"/><circle cx="42" cy="42" r="2" fill="currentColor"/><circle cx="62" cy="62" r="2" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 482 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><path d="M-200 0L0 200" stroke="currentColor" stroke-width="1"/><path d="M-150 0L50 200" stroke="currentColor" stroke-width="1"/><path d="M-100 0L100 200" stroke="currentColor" stroke-width="1"/><path d="M-50 0L150 200" stroke="currentColor" stroke-width="1"/><path d="M0 0L200 200" stroke="currentColor" stroke-width="1"/><path d="M50 0L250 200" stroke="currentColor" stroke-width="1"/><path d="M100 0L300 200" stroke="currentColor" stroke-width="1"/><path d="M150 0L350 200" stroke="currentColor" stroke-width="1"/><path d="M200 0L400 200" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 662 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M-100 0L0 100" stroke="currentColor" stroke-width="1"/><path d="M-75 0L25 100" stroke="currentColor" stroke-width="1"/><path d="M-50 0L50 100" stroke="currentColor" stroke-width="1"/><path d="M-25 0L75 100" stroke="currentColor" stroke-width="1"/><path d="M0 0L100 100" stroke="currentColor" stroke-width="1"/><path d="M25 0L125 100" stroke="currentColor" stroke-width="1"/><path d="M50 0L150 100" stroke="currentColor" stroke-width="1"/><path d="M75 0L175 100" stroke="currentColor" stroke-width="1"/><path d="M100 0L200 100" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 656 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><path d="M-40 0L0 40" stroke="currentColor" stroke-width="1"/><path d="M-30 0L10 40" stroke="currentColor" stroke-width="1"/><path d="M-20 0L20 40" stroke="currentColor" stroke-width="1"/><path d="M-10 0L30 40" stroke="currentColor" stroke-width="1"/><path d="M0 0L40 40" stroke="currentColor" stroke-width="1"/><path d="M10 0L50 40" stroke="currentColor" stroke-width="1"/><path d="M20 0L60 40" stroke="currentColor" stroke-width="1"/><path d="M30 0L70 40" stroke="currentColor" stroke-width="1"/><path d="M40 0L80 40" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 638 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><path d="M-400 0L0 400" stroke="currentColor" stroke-width="1"/><path d="M-300 0L100 400" stroke="currentColor" stroke-width="1"/><path d="M-200 0L200 400" stroke="currentColor" stroke-width="1"/><path d="M-100 0L300 400" stroke="currentColor" stroke-width="1"/><path d="M0 0L400 400" stroke="currentColor" stroke-width="1"/><path d="M100 0L500 400" stroke="currentColor" stroke-width="1"/><path d="M200 0L600 400" stroke="currentColor" stroke-width="1"/><path d="M300 0L700 400" stroke="currentColor" stroke-width="1"/><path d="M400 0L800 400" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 665 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><path d="M-400 0L-200 200" stroke="currentColor" stroke-width="50"/><path d="M-300 0L-100 200" stroke="currentColor" stroke-width="50"/><path d="M-200 0L0 200" stroke="currentColor" stroke-width="50"/><path d="M-100 0L100 200" stroke="currentColor" stroke-width="50"/><path d="M0 0L200 200" stroke="currentColor" stroke-width="50"/><path d="M100 0L300 200" stroke="currentColor" stroke-width="50"/><path d="M200 0L400 200" stroke="currentColor" stroke-width="50"/><path d="M300 0L500 200" stroke="currentColor" stroke-width="50"/><path d="M400 0L600 200" stroke="currentColor" stroke-width="50"/></svg>

After

Width:  |  Height:  |  Size: 676 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M-200 0L-100 100" stroke="currentColor" stroke-width="25"/><path d="M-150 0L-50 100" stroke="currentColor" stroke-width="25"/><path d="M-100 0L0 100" stroke="currentColor" stroke-width="25"/><path d="M-50 0L50 100" stroke="currentColor" stroke-width="25"/><path d="M0 0L100 100" stroke="currentColor" stroke-width="25"/><path d="M50 0L150 100" stroke="currentColor" stroke-width="25"/><path d="M100 0L200 100" stroke="currentColor" stroke-width="25"/><path d="M150 0L250 100" stroke="currentColor" stroke-width="25"/><path d="M200 0L300 100" stroke="currentColor" stroke-width="25"/></svg>

After

Width:  |  Height:  |  Size: 672 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><path d="M-80 0L-40 40" stroke="currentColor" stroke-width="10"/><path d="M-60 0L-20 40" stroke="currentColor" stroke-width="10"/><path d="M-40 0L0 40" stroke="currentColor" stroke-width="10"/><path d="M-20 0L20 40" stroke="currentColor" stroke-width="10"/><path d="M0 0L40 40" stroke="currentColor" stroke-width="10"/><path d="M20 0L60 40" stroke="currentColor" stroke-width="10"/><path d="M40 0L80 40" stroke="currentColor" stroke-width="10"/><path d="M60 0L100 40" stroke="currentColor" stroke-width="10"/><path d="M80 0L120 40" stroke="currentColor" stroke-width="10"/></svg>

After

Width:  |  Height:  |  Size: 651 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><path d="M-800 0L-400 400" stroke="currentColor" stroke-width="100"/><path d="M-600 0L-200 400" stroke="currentColor" stroke-width="100"/><path d="M-400 0L0 400" stroke="currentColor" stroke-width="100"/><path d="M-200 0L200 400" stroke="currentColor" stroke-width="100"/><path d="M0 0L400 400" stroke="currentColor" stroke-width="100"/><path d="M200 0L600 400" stroke="currentColor" stroke-width="100"/><path d="M400 0L800 400" stroke="currentColor" stroke-width="100"/><path d="M600 0L1000 400" stroke="currentColor" stroke-width="100"/><path d="M800 0L1200 400" stroke="currentColor" stroke-width="100"/></svg>

After

Width:  |  Height:  |  Size: 687 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="none"><circle cx="1.5" cy="1.5" r="1.5" fill="currentColor"/><circle cx="1.5" cy="16.5" r="1.5" fill="currentColor"/><circle cx="1.5" cy="31.5" r="1.5" fill="currentColor"/><circle cx="1.5" cy="46.5" r="1.5" fill="currentColor"/><circle cx="16.5" cy="1.5" r="1.5" fill="currentColor"/><circle cx="16.5" cy="16.5" r="1.5" fill="currentColor"/><circle cx="16.5" cy="31.5" r="1.5" fill="currentColor"/><circle cx="16.5" cy="46.5" r="1.5" fill="currentColor"/><circle cx="31.5" cy="1.5" r="1.5" fill="currentColor"/><circle cx="31.5" cy="16.5" r="1.5" fill="currentColor"/><circle cx="31.5" cy="31.5" r="1.5" fill="currentColor"/><circle cx="31.5" cy="46.5" r="1.5" fill="currentColor"/><circle cx="46.5" cy="1.5" r="1.5" fill="currentColor"/><circle cx="46.5" cy="16.5" r="1.5" fill="currentColor"/><circle cx="46.5" cy="31.5" r="1.5" fill="currentColor"/><circle cx="46.5" cy="46.5" r="1.5" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 982 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><circle cx="1" cy="1" r="1" fill="currentColor"/><circle cx="1" cy="11" r="1" fill="currentColor"/><circle cx="1" cy="21" r="1" fill="currentColor"/><circle cx="1" cy="31" r="1" fill="currentColor"/><circle cx="11" cy="1" r="1" fill="currentColor"/><circle cx="11" cy="11" r="1" fill="currentColor"/><circle cx="11" cy="21" r="1" fill="currentColor"/><circle cx="11" cy="31" r="1" fill="currentColor"/><circle cx="21" cy="1" r="1" fill="currentColor"/><circle cx="21" cy="11" r="1" fill="currentColor"/><circle cx="21" cy="21" r="1" fill="currentColor"/><circle cx="21" cy="31" r="1" fill="currentColor"/><circle cx="31" cy="1" r="1" fill="currentColor"/><circle cx="31" cy="11" r="1" fill="currentColor"/><circle cx="31" cy="21" r="1" fill="currentColor"/><circle cx="31" cy="31" r="1" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 886 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><circle cx="0.5" cy="0.5" r="0.5" fill="currentColor"/><circle cx="0.5" cy="5.5" r="0.5" fill="currentColor"/><circle cx="0.5" cy="10.5" r="0.5" fill="currentColor"/><circle cx="0.5" cy="15.5" r="0.5" fill="currentColor"/><circle cx="5.5" cy="0.5" r="0.5" fill="currentColor"/><circle cx="5.5" cy="5.5" r="0.5" fill="currentColor"/><circle cx="5.5" cy="10.5" r="0.5" fill="currentColor"/><circle cx="5.5" cy="15.5" r="0.5" fill="currentColor"/><circle cx="10.5" cy="0.5" r="0.5" fill="currentColor"/><circle cx="10.5" cy="5.5" r="0.5" fill="currentColor"/><circle cx="10.5" cy="10.5" r="0.5" fill="currentColor"/><circle cx="10.5" cy="15.5" r="0.5" fill="currentColor"/><circle cx="15.5" cy="0.5" r="0.5" fill="currentColor"/><circle cx="15.5" cy="5.5" r="0.5" fill="currentColor"/><circle cx="15.5" cy="10.5" r="0.5" fill="currentColor"/><circle cx="15.5" cy="15.5" r="0.5" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 974 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="none"><circle cx="2" cy="2" r="2" fill="currentColor"/><circle cx="2" cy="22" r="2" fill="currentColor"/><circle cx="2" cy="42" r="2" fill="currentColor"/><circle cx="2" cy="62" r="2" fill="currentColor"/><circle cx="22" cy="2" r="2" fill="currentColor"/><circle cx="22" cy="22" r="2" fill="currentColor"/><circle cx="22" cy="42" r="2" fill="currentColor"/><circle cx="22" cy="62" r="2" fill="currentColor"/><circle cx="42" cy="2" r="2" fill="currentColor"/><circle cx="42" cy="22" r="2" fill="currentColor"/><circle cx="42" cy="42" r="2" fill="currentColor"/><circle cx="42" cy="62" r="2" fill="currentColor"/><circle cx="62" cy="2" r="2" fill="currentColor"/><circle cx="62" cy="22" r="2" fill="currentColor"/><circle cx="62" cy="42" r="2" fill="currentColor"/><circle cx="62" cy="62" r="2" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 886 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><path d="M0 0V200M0 0H200" stroke="currentColor" stroke-width="1"/><path d="M50 0V200M0 50H200" stroke="currentColor" stroke-width="1"/><path d="M100 0V200M0 100H200" stroke="currentColor" stroke-width="1"/><path d="M150 0V200M0 150H200" stroke="currentColor" stroke-width="1"/><path d="M200 0V200M0 200H200" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 429 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M0 0V100M0 0H100" stroke="currentColor" stroke-width="1"/><path d="M25 0V100M0 25H100" stroke="currentColor" stroke-width="1"/><path d="M50 0V100M0 50H100" stroke="currentColor" stroke-width="1"/><path d="M75 0V100M0 75H100" stroke="currentColor" stroke-width="1"/><path d="M100 0V100M0 100H100" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 425 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><path d="M0 0V40M0 0H40" stroke="currentColor" stroke-width="1"/><path d="M10 0V40M0 10H40" stroke="currentColor" stroke-width="1"/><path d="M20 0V40M0 20H40" stroke="currentColor" stroke-width="1"/><path d="M30 0V40M0 30H40" stroke="currentColor" stroke-width="1"/><path d="M40 0V40M0 40H40" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 411 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><path d="M0 0V400M0 0H400" stroke="currentColor" stroke-width="1"/><path d="M100 0V400M0 100H400" stroke="currentColor" stroke-width="1"/><path d="M200 0V400M0 200H400" stroke="currentColor" stroke-width="1"/><path d="M300 0V400M0 300H400" stroke="currentColor" stroke-width="1"/><path d="M400 0V400M0 400H400" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 431 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><path d="M0 0H200" stroke="currentColor" stroke-width="1"/><path d="M0 50H200" stroke="currentColor" stroke-width="1"/><path d="M0 100H200" stroke="currentColor" stroke-width="1"/><path d="M0 150H200" stroke="currentColor" stroke-width="1"/><path d="M0 200H200" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 382 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M0 0H100" stroke="currentColor" stroke-width="1"/><path d="M0 25H100" stroke="currentColor" stroke-width="1"/><path d="M0 50H100" stroke="currentColor" stroke-width="1"/><path d="M0 75H100" stroke="currentColor" stroke-width="1"/><path d="M0 100H100" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 380 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><path d="M0 0H40" stroke="currentColor" stroke-width="1"/><path d="M0 10H40" stroke="currentColor" stroke-width="1"/><path d="M0 20H40" stroke="currentColor" stroke-width="1"/><path d="M0 30H40" stroke="currentColor" stroke-width="1"/><path d="M0 40H40" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 372 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><path d="M0 0H400" stroke="currentColor" stroke-width="1"/><path d="M0 100H400" stroke="currentColor" stroke-width="1"/><path d="M0 200H400" stroke="currentColor" stroke-width="1"/><path d="M0 300H400" stroke="currentColor" stroke-width="1"/><path d="M0 400H400" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 383 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><rect x="0" y="0" width="200" height="25" fill="currentColor"/><rect x="0" y="50" width="200" height="25" fill="currentColor"/><rect x="0" y="100" width="200" height="25" fill="currentColor"/><rect x="0" y="150" width="200" height="25" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 337 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><rect x="0" y="0" width="100" height="12.5" fill="currentColor"/><rect x="0" y="25" width="100" height="12.5" fill="currentColor"/><rect x="0" y="50" width="100" height="12.5" fill="currentColor"/><rect x="0" y="75" width="100" height="12.5" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 343 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><rect x="0" y="0" width="40" height="5" fill="currentColor"/><rect x="0" y="10" width="40" height="5" fill="currentColor"/><rect x="0" y="20" width="40" height="5" fill="currentColor"/><rect x="0" y="30" width="40" height="5" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 325 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><rect x="0" y="0" width="400" height="50" fill="currentColor"/><rect x="0" y="100" width="400" height="50" fill="currentColor"/><rect x="0" y="200" width="400" height="50" fill="currentColor"/><rect x="0" y="300" width="400" height="50" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 338 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><polygon points="0,50 50,50 0,0" fill="currentColor"/><polygon points="0,100 50,100 0,50" fill="currentColor"/><polygon points="0,150 50,150 0,100" fill="currentColor"/><polygon points="0,200 50,200 0,150" fill="currentColor"/><polygon points="50,50 100,50 50,0" fill="currentColor"/><polygon points="50,100 100,100 50,50" fill="currentColor"/><polygon points="50,150 100,150 50,100" fill="currentColor"/><polygon points="50,200 100,200 50,150" fill="currentColor"/><polygon points="100,50 150,50 100,0" fill="currentColor"/><polygon points="100,100 150,100 100,50" fill="currentColor"/><polygon points="100,150 150,150 100,100" fill="currentColor"/><polygon points="100,200 150,200 100,150" fill="currentColor"/><polygon points="150,50 200,50 150,0" fill="currentColor"/><polygon points="150,100 200,100 150,50" fill="currentColor"/><polygon points="150,150 200,150 150,100" fill="currentColor"/><polygon points="150,200 200,200 150,150" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><polygon points="0,25 25,25 0,0" fill="currentColor"/><polygon points="0,50 25,50 0,25" fill="currentColor"/><polygon points="0,75 25,75 0,50" fill="currentColor"/><polygon points="0,100 25,100 0,75" fill="currentColor"/><polygon points="25,25 50,25 25,0" fill="currentColor"/><polygon points="25,50 50,50 25,25" fill="currentColor"/><polygon points="25,75 50,75 25,50" fill="currentColor"/><polygon points="25,100 50,100 25,75" fill="currentColor"/><polygon points="50,25 75,25 50,0" fill="currentColor"/><polygon points="50,50 75,50 50,25" fill="currentColor"/><polygon points="50,75 75,75 50,50" fill="currentColor"/><polygon points="50,100 75,100 50,75" fill="currentColor"/><polygon points="75,25 100,25 75,0" fill="currentColor"/><polygon points="75,50 100,50 75,25" fill="currentColor"/><polygon points="75,75 100,75 75,50" fill="currentColor"/><polygon points="75,100 100,100 75,75" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 992 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><polygon points="0,10 10,10 0,0" fill="currentColor"/><polygon points="0,20 10,20 0,10" fill="currentColor"/><polygon points="0,30 10,30 0,20" fill="currentColor"/><polygon points="0,40 10,40 0,30" fill="currentColor"/><polygon points="10,10 20,10 10,0" fill="currentColor"/><polygon points="10,20 20,20 10,10" fill="currentColor"/><polygon points="10,30 20,30 10,20" fill="currentColor"/><polygon points="10,40 20,40 10,30" fill="currentColor"/><polygon points="20,10 30,10 20,0" fill="currentColor"/><polygon points="20,20 30,20 20,10" fill="currentColor"/><polygon points="20,30 30,30 20,20" fill="currentColor"/><polygon points="20,40 30,40 20,30" fill="currentColor"/><polygon points="30,10 40,10 30,0" fill="currentColor"/><polygon points="30,20 40,20 30,10" fill="currentColor"/><polygon points="30,30 40,30 30,20" fill="currentColor"/><polygon points="30,40 40,40 30,30" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 978 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><polygon points="0,100 100,100 0,0" fill="currentColor"/><polygon points="0,200 100,200 0,100" fill="currentColor"/><polygon points="0,300 100,300 0,200" fill="currentColor"/><polygon points="0,400 100,400 0,300" fill="currentColor"/><polygon points="100,100 200,100 100,0" fill="currentColor"/><polygon points="100,200 200,200 100,100" fill="currentColor"/><polygon points="100,300 200,300 100,200" fill="currentColor"/><polygon points="100,400 200,400 100,300" fill="currentColor"/><polygon points="200,100 300,100 200,0" fill="currentColor"/><polygon points="200,200 300,200 200,100" fill="currentColor"/><polygon points="200,300 300,300 200,200" fill="currentColor"/><polygon points="200,400 300,400 200,300" fill="currentColor"/><polygon points="300,100 400,100 300,0" fill="currentColor"/><polygon points="300,200 400,200 300,100" fill="currentColor"/><polygon points="300,300 400,300 300,200" fill="currentColor"/><polygon points="300,400 400,400 300,300" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><path d="M0 0V200" stroke="currentColor" stroke-width="1"/><path d="M50 0V200" stroke="currentColor" stroke-width="1"/><path d="M100 0V200" stroke="currentColor" stroke-width="1"/><path d="M150 0V200" stroke="currentColor" stroke-width="1"/><path d="M200 0V200" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 382 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M0 0V100" stroke="currentColor" stroke-width="1"/><path d="M25 0V100" stroke="currentColor" stroke-width="1"/><path d="M50 0V100" stroke="currentColor" stroke-width="1"/><path d="M75 0V100" stroke="currentColor" stroke-width="1"/><path d="M100 0V100" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 380 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><path d="M0 0V40" stroke="currentColor" stroke-width="1"/><path d="M10 0V40" stroke="currentColor" stroke-width="1"/><path d="M20 0V40" stroke="currentColor" stroke-width="1"/><path d="M30 0V40" stroke="currentColor" stroke-width="1"/><path d="M40 0V40" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 372 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><path d="M0 0V400" stroke="currentColor" stroke-width="1"/><path d="M100 0V400" stroke="currentColor" stroke-width="1"/><path d="M200 0V400" stroke="currentColor" stroke-width="1"/><path d="M300 0V400" stroke="currentColor" stroke-width="1"/><path d="M400 0V400" stroke="currentColor" stroke-width="1"/></svg>

After

Width:  |  Height:  |  Size: 383 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="none"><rect x="0" y="0" width="25" height="200" fill="currentColor"/><rect x="50" y="0" width="25" height="200" fill="currentColor"/><rect x="100" y="0" width="25" height="200" fill="currentColor"/><rect x="150" y="0" width="25" height="200" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 337 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><rect x="0" y="0" width="12.5" height="100" fill="currentColor"/><rect x="25" y="0" width="12.5" height="100" fill="currentColor"/><rect x="50" y="0" width="12.5" height="100" fill="currentColor"/><rect x="75" y="0" width="12.5" height="100" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 343 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none"><rect x="0" y="0" width="5" height="40" fill="currentColor"/><rect x="10" y="0" width="5" height="40" fill="currentColor"/><rect x="20" y="0" width="5" height="40" fill="currentColor"/><rect x="30" y="0" width="5" height="40" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 325 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none"><rect x="0" y="0" width="50" height="400" fill="currentColor"/><rect x="100" y="0" width="50" height="400" fill="currentColor"/><rect x="200" y="0" width="50" height="400" fill="currentColor"/><rect x="300" y="0" width="50" height="400" fill="currentColor"/></svg>

After

Width:  |  Height:  |  Size: 338 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" fill="none"><path d="M0 25L25 0L50 25L75 0L100 25L125 0L150 25L175 0L200 25" stroke="currentColor" stroke-width="25"/><path d="M0 75L25 50L50 75L75 50L100 75L125 50L150 75L175 50L200 75" stroke="currentColor" stroke-width="25"/></svg>

After

Width:  |  Height:  |  Size: 296 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50" fill="none"><path d="M0 12.5L12.5 0L25 12.5L37.5 0L50 12.5L62.5 0L75 12.5L87.5 0L100 12.5" stroke="currentColor" stroke-width="12.5"/><path d="M0 37.5L12.5 25L25 37.5L37.5 25L50 37.5L62.5 25L75 37.5L87.5 25L100 37.5" stroke="currentColor" stroke-width="12.5"/></svg>

After

Width:  |  Height:  |  Size: 327 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 20" fill="none"><path d="M0 5L5 0L10 5L15 0L20 5L25 0L30 5L35 0L40 5" stroke="currentColor" stroke-width="5"/><path d="M0 15L5 10L10 15L15 10L20 15L25 10L30 15L35 10L40 15" stroke="currentColor" stroke-width="5"/></svg>

After

Width:  |  Height:  |  Size: 275 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200" fill="none"><path d="M0 50L50 0L100 50L150 0L200 50L250 0L300 50L350 0L400 50" stroke="currentColor" stroke-width="50"/><path d="M0 150L50 100L100 150L150 100L200 150L250 100L300 150L350 100L400 150" stroke="currentColor" stroke-width="50"/></svg>

After

Width:  |  Height:  |  Size: 309 B

File diff suppressed because one or more lines are too long
@@ -0,0 +1,17 @@
{
"name": "amber",
"colors": [
"#fefdfb",
"#fefbe9",
"#fff7c2",
"#ffee9c",
"#fbe577",
"#f3d673",
"#e9c162",
"#e2a336",
"#ffc53d",
"#ffba18",
"#ab6400",
"#4f3422"
]
}
@@ -0,0 +1,17 @@
{
"name": "blue",
"colors": [
"#fbfdff",
"#f4faff",
"#e6f4fe",
"#d5efff",
"#c2e5ff",
"#acd8fc",
"#8ec8f6",
"#5eb1ef",
"#0090ff",
"#0588f0",
"#0d74ce",
"#113264"
]
}
@@ -0,0 +1,17 @@
{
"name": "bronze",
"colors": [
"#fdfcfc",
"#fdf7f5",
"#f6edea",
"#efe4df",
"#e7d9d3",
"#dfcdc5",
"#d3bcb3",
"#c2a499",
"#a18072",
"#957468",
"#7d5e54",
"#43302b"
]
}
@@ -0,0 +1,17 @@
{
"name": "brown",
"colors": [
"#fefdfc",
"#fcf9f6",
"#f6eee7",
"#f0e4d9",
"#ebdaca",
"#e4cdb7",
"#dcbc9f",
"#cea37e",
"#ad7f58",
"#a07553",
"#815e46",
"#3e332e"
]
}
@@ -0,0 +1,17 @@
{
"name": "crimson",
"colors": [
"#fffcfd",
"#fef7f9",
"#ffe9f0",
"#fedce7",
"#facedd",
"#f3bed1",
"#eaacc3",
"#e093b2",
"#e93d82",
"#df3478",
"#cb1d63",
"#621639"
]
}
@@ -0,0 +1,17 @@
{
"name": "cyan",
"colors": [
"#fafdfe",
"#f2fafb",
"#def7f9",
"#caf1f6",
"#b5e9f0",
"#9ddde7",
"#7dcedc",
"#3db9cf",
"#00a2c7",
"#0797b9",
"#107d98",
"#0d3c48"
]
}
@@ -0,0 +1,17 @@
{
"name": "gold",
"colors": [
"#fdfdfc",
"#faf9f2",
"#f2f0e7",
"#eae6db",
"#e1dccf",
"#d8d0bf",
"#cbc0aa",
"#b9a88d",
"#978365",
"#8c7a5e",
"#71624b",
"#3b352b"
]
}
@@ -0,0 +1,17 @@
{
"name": "grass",
"colors": [
"#fbfefb",
"#f5fbf5",
"#e9f6e9",
"#daf1db",
"#c9e8ca",
"#b2ddb5",
"#94ce9a",
"#65ba74",
"#46a758",
"#3e9b4f",
"#2a7e3b",
"#203c25"
]
}
@@ -0,0 +1,17 @@
{
"name": "green",
"colors": [
"#fbfefc",
"#f4fbf6",
"#e6f6eb",
"#d6f1df",
"#c4e8d1",
"#adddc0",
"#8eceaa",
"#5bb98b",
"#30a46c",
"#2b9a66",
"#218358",
"#193b2d"
]
}
@@ -0,0 +1,17 @@
{
"name": "indigo",
"colors": [
"#fdfdfe",
"#f7f9ff",
"#edf2fe",
"#e1e9ff",
"#d2deff",
"#c1d0ff",
"#abbdf9",
"#8da4ef",
"#3e63dd",
"#3358d4",
"#3a5bc7",
"#1f2d5c"
]
}
@@ -0,0 +1,17 @@
{
"name": "iris",
"colors": [
"#fdfdff",
"#f8f8ff",
"#f0f1fe",
"#e6e7ff",
"#dadcff",
"#cbcdff",
"#b8baf8",
"#9b9ef0",
"#5b5bd6",
"#5151cd",
"#5753c6",
"#272962"
]
}
@@ -0,0 +1,17 @@
{
"name": "jade",
"colors": [
"#fbfefd",
"#f4fbf7",
"#e6f7ed",
"#d6f1e3",
"#c3e9d7",
"#acdec8",
"#8bceb6",
"#56ba9f",
"#29a383",
"#26997b",
"#208368",
"#1d3b31"
]
}
@@ -0,0 +1,17 @@
{
"name": "lime",
"colors": [
"#fcfdfa",
"#f8faf3",
"#eef6d6",
"#e2f0bd",
"#d3e7a6",
"#c2da91",
"#abc978",
"#8db654",
"#bdee63",
"#b0e64c",
"#5c7c2f",
"#37401c"
]
}
@@ -0,0 +1,17 @@
{
"name": "mint",
"colors": [
"#f9fefd",
"#f2fbf9",
"#ddf9f2",
"#c8f4e9",
"#b3ecde",
"#9ce0d0",
"#7ecfbd",
"#4cbba5",
"#86ead4",
"#7de0cb",
"#027864",
"#16433c"
]
}
@@ -0,0 +1,17 @@
{
"name": "orange",
"colors": [
"#fefcfb",
"#fff7ed",
"#ffefd6",
"#ffdfb5",
"#ffd19a",
"#ffc182",
"#f5ae73",
"#ec9455",
"#f76b15",
"#ef5f00",
"#cc4e00",
"#582d1d"
]
}
@@ -0,0 +1,17 @@
{
"name": "pink",
"colors": [
"#fffcfe",
"#fef7fb",
"#fee9f5",
"#fbdcef",
"#f6cee7",
"#efbfdd",
"#e7acd0",
"#dd93c2",
"#d6409f",
"#cf3897",
"#c2298a",
"#651249"
]
}
@@ -0,0 +1,17 @@
{
"name": "plum",
"colors": [
"#fefcff",
"#fdf7fd",
"#fbebfb",
"#f7def8",
"#f2d1f3",
"#e9c2ec",
"#deade3",
"#cf91d8",
"#ab4aba",
"#a144af",
"#953ea3",
"#53195d"
]
}
@@ -0,0 +1,17 @@
{
"name": "purple",
"colors": [
"#fefcfe",
"#fbf7fe",
"#f7edfe",
"#f2e2fc",
"#ead5f9",
"#e0c4f4",
"#d1afec",
"#be93e4",
"#8e4ec6",
"#8347b9",
"#8145b5",
"#402060"
]
}
@@ -0,0 +1,17 @@
{
"name": "red",
"colors": [
"#fffcfc",
"#fff7f7",
"#feebec",
"#ffdbdc",
"#ffcdce",
"#fdbdbe",
"#f4a9aa",
"#eb8e90",
"#e5484d",
"#dc3e42",
"#ce2c31",
"#641723"
]
}
@@ -0,0 +1,17 @@
{
"name": "sky",
"colors": [
"#f9feff",
"#f1fafd",
"#e1f6fd",
"#d1f0fa",
"#bee7f5",
"#a9daed",
"#8dcae3",
"#60b3d7",
"#7ce2fe",
"#74daf8",
"#00749e",
"#1d3e56"
]
}
@@ -0,0 +1,17 @@
{
"name": "teal",
"colors": [
"#fafefd",
"#f3fbf9",
"#e0f8f3",
"#ccf3ea",
"#b8eae0",
"#a1ded2",
"#83cdc1",
"#53b9ab",
"#12a594",
"#0d9b8a",
"#008573",
"#0d3d38"
]
}
@@ -0,0 +1,17 @@
{
"name": "tomato",
"colors": [
"#fffcfc",
"#fff8f7",
"#feebe7",
"#ffdcd3",
"#ffcdc2",
"#fdbdaf",
"#f5a898",
"#ec8e7b",
"#e54d2e",
"#dd4425",
"#d13415",
"#5c271f"
]
}
@@ -0,0 +1,17 @@
{
"name": "violet",
"colors": [
"#fdfcfe",
"#faf8ff",
"#f4f0fe",
"#ebe4ff",
"#e1d9ff",
"#d4cafe",
"#c2b5f5",
"#aa99ec",
"#6e56cf",
"#654dc4",
"#6550b9",
"#2f265f"
]
}
@@ -0,0 +1,17 @@
{
"name": "yellow",
"colors": [
"#fdfdf9",
"#fefce9",
"#fffab8",
"#fff394",
"#ffe770",
"#f3d768",
"#e4c767",
"#d5ae39",
"#ffe629",
"#ffdc00",
"#9e6c00",
"#473b1f"
]
}
+3 -3
View File
@@ -118,7 +118,7 @@
<script src="js/core/dicebear.js?v=20260822e"></script>
<script src="js/data/builtin-icons.js?v=20261105c"></script>
<script src="js/data/poster-builtin.js?v=20261105c"></script>
<script src="js/data/poster-builtin.js?v=20261105d"></script>
<script>
(function () {
'use strict';
@@ -176,7 +176,7 @@
.catch(function () { ICON_SRC = window.HGB_IconSources || []; });
}
function loadPosterManifest() {
return fetch('js/data/manifest/posters.json?v=20261105c')
return fetch('js/data/manifest/posters.json?v=20261105d')
.then(function (r) { return r.json(); })
.then(function (m) { POSTER_SRC = m.sources || []; })
.catch(function () { POSTER_SRC = window.HGB_PosterSources || []; });
@@ -191,7 +191,7 @@
}
function loadPosterData(id) {
if (loadedCache['p_' + id]) return loadedCache['p_' + id];
loadedCache['p_' + id] = loadScript('js/data/posters/' + id + '.js?v=20261105c')
loadedCache['p_' + id] = loadScript('js/data/posters/' + id + '.js?v=20261105d')
.then(function () { return window['HGB_PosterSource_' + id] || null; });
return loadedCache['p_' + id];
}
+2 -2
View File
@@ -84,7 +84,7 @@
</div>
<script src="js/data/poster-sources.js"></script>
<script src="js/data/poster-builtin.js?v=20261105c"></script>
<script src="js/data/poster-builtin.js?v=20261105d"></script>
<script>
(function () {
const builtin = window.HGB_PosterBuiltin || { sources: {} };
@@ -139,7 +139,7 @@
}
// 优先读机器可读 manifest(js/data/manifest/posters.json,构建时生成);失败回退内置配置
fetch('js/data/manifest/posters.json?v=20261105c')
fetch('js/data/manifest/posters.json?v=20261105d')
.then(r => r.json())
.then(m => { sources = m.sources || []; render(); })
.catch(() => { sources = FALLBACK; render(); });
+2 -2
View File
@@ -90,8 +90,8 @@
<div id="toast" class="toast hidden"></div>
<script src="js/data/poster-sources.js"></script>
<script src="js/data/poster-builtin.js?v=20261105c"></script>
<script src="js/core/posterlib.js?v=20261105c"></script>
<script src="js/data/poster-builtin.js?v=20261105d"></script>
<script src="js/core/posterlib.js?v=20261105d"></script>
<script src="js/core/ai.js?v=20260927a"></script>
<script src="js/core/poster-store.js"></script>
<script src="js/core/poster-generator.js"></script>
+42
View File
@@ -309,6 +309,43 @@ async function downloadDirFiles(src) {
return { items, ok, fail };
}
/**
* 本地源:读取 js/data/posters/{id}/files 下预先生成的素材(不联网)
* 用于从 CSS 提取的图案、渐变与配色 JSON 等无独立文件的开源资源
*/
async function readLocalFiles(src) {
const items = [];
let ok = 0, fail = 0;
const ROOT = path.join(__dirname, '..');
const exts = (Array.isArray(src.ext) ? src.ext : (src.ext ? String(src.ext).split(',') : ['.svg']))
.map(e => e.trim().toLowerCase());
const dir = path.join(ROOT, 'js', 'data', 'posters', src.id, 'files');
if (!fs.existsSync(dir)) throw new Error('本地目录不存在: ' + dir);
const walk = (d, prefix) => {
let out = [];
for (const f of fs.readdirSync(d, { withFileTypes: true })) {
if (f.isDirectory()) out = out.concat(walk(path.join(d, f.name), prefix + f.name + '/'));
else if (exts.some(e => f.name.toLowerCase().endsWith(e))) out.push(prefix + f.name);
}
return out;
};
let picked = walk(dir, '');
picked = dropNonAssets(picked);
if (src.exclude) picked = picked.filter(p => !new RegExp(src.exclude).test(p));
const cap = Number(src.maxItems) > 0 ? Math.min(Number(src.maxItems), picked.length) : picked.length;
picked = picked.slice(0, cap);
for (const p of picked) {
try {
const buf = fs.readFileSync(path.join(dir, p));
const name = path.basename(p, path.extname(p));
const c = classifyPoster(name);
const it = await buildItem(src, name, 'posters/' + src.id + '/files/' + p, buf, c);
if (it) { items.push(it); ok++; } else fail++;
} catch (e) { fail++; }
}
return { items, ok, fail };
}
/**
* hero-patterns 专用转换:ES module 函数模板 → 静态 SVG 字符串
* 源码形如:
@@ -487,6 +524,11 @@ async function main() {
const r = await downloadDirFiles(src);
items = r.items; fail = r.fail; expected = r.ok + r.fail;
usedUrl = 'unpkg.com/' + src.npm;
} else if (src.format === 'local') {
console.log(`读取 ${src.name}(本地预生成 ${src.id})…`);
const r = await readLocalFiles(src);
items = r.items; fail = r.fail; expected = r.ok + r.fail;
usedUrl = 'local';
} else {
throw new Error(`不支持的 format: ${src.format}`);
}
+233
View File
@@ -0,0 +1,233 @@
#!/usr/bin/env node
/**
* 从开源 CSS 库提取静态素材(图案 / 配色),生成本地海报源
*
* 产物:
* js/data/posters/patterncss/files/*.svg ← pattern.css(MIT)图案
* js/data/posters/radix-colors/files/*.json ← Radix Colors(MIT)色阶
*
* pattern.css 的图案由 CSS 渐变定义(无 data URI SVG),
* 本脚本按各家族几何规则还原为等价的可平铺 SVG(currentColor 着色)。
*
* 用法:node scripts/import-css-assets.js
*/
'use strict';
const fs = require('fs');
const path = require('path');
const https = require('https');
const ROOT = path.resolve(__dirname, '..');
const OUT = path.join(ROOT, 'js', 'data', 'posters');
function fetchText(url) {
return new Promise((resolve, reject) => {
https.get(url, { headers: { 'User-Agent': 'drawlogo' }, timeout: 60000 }, res => {
if (res.statusCode >= 300 && res.statusCode < 400 && res.headers.location) {
return fetchText(res.headers.location).then(resolve, reject);
}
let d = '';
res.on('data', c => { d += c; });
res.on('end', () => resolve(d));
}).on('error', reject);
});
}
function writeFile(rel, content) {
const p = path.join(OUT, rel);
fs.mkdirSync(path.dirname(p), { recursive: true });
fs.writeFileSync(p, content);
}
/* ================= 1. pattern.css 图案 → SVG ================= */
/** 尺寸档位(与 pattern.css 的 sm/md/lg/xl 对应) */
const SIZES = { sm: 10, md: 25, lg: 50, xl: 100 };
/** 圆点半径(pattern.css 中 sm/md/lg/xl 对应 0.5 / 1 / 1.5 / 2px,间距 = 10 倍半径) */
const DOT_R = { sm: 0.5, md: 1, lg: 1.5, xl: 2 };
/** 数值去尾零(避免 0.00 这类非法/冗余输出) */
function n(v) {
return String(Math.round(v * 1000) / 1000);
}
/** 组装可平铺 SVG 预览(4 个重复单元) */
function wrap(w, h, body) {
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${n(w)} ${n(h)}" fill="none">${body}</svg>`;
}
const FAMILIES = {
/* 棋盘格:2s 单元内对角填充 */
checks(s) {
const area = 4 * s, out = [];
for (let i = 0; i < 4; i++) {
for (let j = 0; j < 4; j++) {
if ((i + j) % 2 === 0) out.push(`<rect x="${n(i * s)}" y="${n(j * s)}" width="${n(s)}" height="${n(s)}" fill="currentColor"/>`);
}
}
return wrap(area, area, out.join(''));
},
/* 网格线:每 s 一条 1px 线 */
grid(s) {
const area = 4 * s, out = [];
for (let k = 0; k <= 4; k++) {
out.push(`<path d="M${n(k * s)} 0V${n(area)}M0 ${n(k * s)}H${n(area)}" stroke="currentColor" stroke-width="1"/>`);
}
return wrap(area, area, out.join(''));
},
/* 圆点阵:间距 = 10r */
dots(s, key) {
const r = DOT_R[key], sp = 10 * r, area = 4 * sp, out = [];
for (let i = 0; i < 4; i++) {
for (let j = 0; j < 4; j++) {
out.push(`<circle cx="${n(r + i * sp)}" cy="${n(r + j * sp)}" r="${n(r)}" fill="currentColor"/>`);
}
}
return wrap(area, area, out.join(''));
},
/* 交错圆点:间距 20r,第二组偏移 10r */
'cross-dots'(s, key) {
const r = DOT_R[key], sp = 20 * r, area = 2 * sp, out = [];
for (let i = 0; i < 2; i++) {
for (let j = 0; j < 2; j++) {
const x = r + i * sp, y = r + j * sp;
out.push(`<circle cx="${n(x)}" cy="${n(y)}" r="${n(r)}" fill="currentColor"/>`);
out.push(`<circle cx="${n(x + sp / 2)}" cy="${n(y + sp / 2)}" r="${n(r)}" fill="currentColor"/>`);
}
}
return wrap(area, area, out.join(''));
},
/* 竖线:每 s 一条 1px 线 */
'vertical-lines'(s) {
const area = 4 * s, out = [];
for (let k = 0; k <= 4; k++) out.push(`<path d="M${n(k * s)} 0V${n(area)}" stroke="currentColor" stroke-width="1"/>`);
return wrap(area, area, out.join(''));
},
/* 横线:每 s 一条 1px 线 */
'horizontal-lines'(s) {
const area = 4 * s, out = [];
for (let k = 0; k <= 4; k++) out.push(`<path d="M0 ${n(k * s)}H${n(area)}" stroke="currentColor" stroke-width="1"/>`);
return wrap(area, area, out.join(''));
},
/* 斜线:45°,水平间距 s */
'diagonal-lines'(s) {
const area = 4 * s, out = [];
for (let k = -4; k <= 4; k++) {
const x = k * s;
out.push(`<path d="M${n(x)} 0L${n(x + area)} ${n(area)}" stroke="currentColor" stroke-width="1"/>`);
}
return wrap(area, area, out.join(''));
},
/* 竖条纹:每 s 内半宽填充 */
'vertical-stripes'(s) {
const area = 4 * s, out = [];
for (let k = 0; k < 4; k++) out.push(`<rect x="${n(k * s)}" y="0" width="${n(s / 2)}" height="${n(area)}" fill="currentColor"/>`);
return wrap(area, area, out.join(''));
},
/* 横条纹:每 s 内半高填充 */
'horizontal-stripes'(s) {
const area = 4 * s, out = [];
for (let k = 0; k < 4; k++) out.push(`<rect x="0" y="${n(k * s)}" width="${n(area)}" height="${n(s / 2)}" fill="currentColor"/>`);
return wrap(area, area, out.join(''));
},
/* 斜条纹:45°,带宽 s、水平周期 2s */
'diagonal-stripes'(s) {
const area = 4 * s, out = [];
for (let k = -4; k <= 4; k++) {
const x = k * 2 * s;
out.push(`<path d="M${n(x)} 0L${n(x + area)} ${n(area)}" stroke="currentColor" stroke-width="${n(s)}"/>`);
}
return wrap(area, area, out.join(''));
},
/* 锯齿:两条上下起伏的折线带 */
zigzag(s) {
const w = 4 * s, h = 2 * s, out = [];
for (const y0 of [s / 2, (3 * s) / 2]) {
out.push(`<path d="M0 ${n(y0)}L${n(s / 2)} ${n(y0 - s / 2)}L${n(s)} ${n(y0)}L${n((3 * s) / 2)} ${n(y0 - s / 2)}L${n(2 * s)} ${n(y0)}L${n((5 * s) / 2)} ${n(y0 - s / 2)}L${n(3 * s)} ${n(y0)}L${n((7 * s) / 2)} ${n(y0 - s / 2)}L${n(4 * s)} ${n(y0)}" stroke="currentColor" stroke-width="${n(s / 2)}"/>`);
}
return wrap(w, h, out.join(''));
},
/* 三角:每 s 单元半格三角 */
triangles(s) {
const area = 4 * s, out = [];
for (let i = 0; i < 4; i++) {
for (let j = 0; j < 4; j++) {
const x = i * s, y = j * s;
out.push(`<polygon points="${n(x)},${n(y + s)} ${n(x + s)},${n(y + s)} ${n(x)},${n(y)}" fill="currentColor"/>`);
}
}
return wrap(area, area, out.join(''));
}
};
/** 从 pattern.css 提取图案类名(依据真实 CSS 校验,避免收录不存在/工具类) */
function patternNames(css) {
const names = [...css.matchAll(/\.pattern-([a-z0-9-]+)\s*\{/g)].map(m => m[1]);
const out = [];
for (const name of names) {
const m = name.match(/^([a-z-]+)-(sm|md|lg|xl)$/);
if (!m) continue; // 过滤 pattern-w-* / pattern-h-* 等尺寸工具类
if (!FAMILIES[m[1]]) continue; // 未知家族跳过
if (out.indexOf(name) === -1) out.push(name);
}
return out;
}
async function importPatternCss() {
const css = await fetchText('https://unpkg.com/pattern.css@1.0.0/dist/pattern.css');
const names = patternNames(css);
let ok = 0;
for (const name of names) {
const m = name.match(/^([a-z-]+)-(sm|md|lg|xl)$/);
const svg = FAMILIES[m[1]](SIZES[m[2]], m[2]);
if (!/^<svg[\s\S]*<\/svg>$/.test(svg)) continue;
writeFile('patterncss/files/' + name + '.svg', svg);
ok++;
}
console.log(`pattern.css: 提取 ${ok} 个图案(共 ${names.length} 个图案类)`);
return ok;
}
/* ---------------- 2. Radix Colors 色阶 ---------------- */
const RADIX = [
'tomato', 'red', 'crimson', 'pink', 'plum', 'purple', 'violet', 'iris', 'indigo', 'blue',
'cyan', 'teal', 'jade', 'green', 'grass', 'lime', 'mint', 'sky', 'gold', 'bronze',
'brown', 'orange', 'amber', 'yellow'
];
async function importRadixColors() {
let n2 = 0;
for (const color of RADIX) {
let css;
try { css = await fetchText(`https://unpkg.com/@radix-ui/colors@3.0.0/${color}.css`); }
catch (e) { continue; }
const vals = [];
for (let i = 1; i <= 12; i++) {
const m = css.match(new RegExp(`--${color}-${i}:\\s*([^;]+);`));
if (m) vals.push(m[1].trim());
}
if (vals.length < 10) continue;
writeFile(`radix-colors/files/${color}.json`, JSON.stringify({ name: color, colors: vals }, null, 2));
n2++;
}
console.log(`Radix Colors: 提取 ${n2} 组色阶(${n2 * 12} 色)`);
return n2;
}
(async () => {
console.log('开始提取 CSS 静态素材…');
const a = await importPatternCss();
const b = await importRadixColors();
console.log(`完成:图案 ${a} 个,色阶 ${b} 组`);
})();