@scribdown/ui-handdrawn 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -1
- package/src/styles/fonts.css +3 -0
- package/src/styles/lists.css +1 -2
- package/src/styles/mermaid.css +2 -1
- package/src/styles/tokens.css +3 -2
- package/src/styles.css +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scribdown/ui-handdrawn",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Scribdown 手绘风格视觉组件:设计 Token、样式与 SVG 资产。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"typescript": "^5.8.3",
|
|
28
28
|
"vitest": "^3.2.4"
|
|
29
29
|
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@fontsource-variable/noto-serif-sc": "5.3.0",
|
|
32
|
+
"lxgw-wenkai-screen-webfont": "1.7.0"
|
|
33
|
+
},
|
|
30
34
|
"scripts": {
|
|
31
35
|
"test": "vitest run --passWithNoTests",
|
|
32
36
|
"lint": "eslint .",
|
package/src/styles/lists.css
CHANGED
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
left: 0;
|
|
40
40
|
min-width: 26px;
|
|
41
41
|
color: var(--scribdown-color-warning);
|
|
42
|
-
font-family:
|
|
43
|
-
var(--scribdown-font-heading);
|
|
42
|
+
font-family: var(--scribdown-font-heading);
|
|
44
43
|
font-size: 22px;
|
|
45
44
|
font-style: normal;
|
|
46
45
|
font-weight: 700;
|
package/src/styles/mermaid.css
CHANGED
package/src/styles/tokens.css
CHANGED
|
@@ -120,8 +120,9 @@
|
|
|
120
120
|
|
|
121
121
|
/* ─── 与主题无关的 Token ──────────────────────────────────────────── */
|
|
122
122
|
:root {
|
|
123
|
-
|
|
124
|
-
--scribdown-font-
|
|
123
|
+
/* 字体由 styles.css 本地加载;同一字体覆盖中英文,避免逐字符回退造成视觉基线错位。 */
|
|
124
|
+
--scribdown-font-body: "Noto Serif SC Variable", "Songti SC", serif;
|
|
125
|
+
--scribdown-font-heading: "LXGW WenKai Screen", "Kaiti SC", serif;
|
|
125
126
|
--scribdown-font-code: "JetBrains Mono", "Fira Code", monospace;
|
|
126
127
|
|
|
127
128
|
/* 四角独立写法,呼应手绘感 */
|