@quartz-community/quartz-fonts 0.1.0
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/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/README.md +192 -0
- package/dist/emitter.d.ts +6 -0
- package/dist/emitter.js +147 -0
- package/dist/emitter.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +414 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +58 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +423 -0
package/package.json
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quartz-community/quartz-fonts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Fine-grained font control for Quartz sites. Supports per-heading fonts, theme font discovery, and Obsidian-compatible defaults.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Quartz Community",
|
|
8
|
+
"homepage": "https://quartz.jzhao.xyz",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/quartz-community/fonts"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"quartz",
|
|
15
|
+
"quartz-plugin",
|
|
16
|
+
"fonts",
|
|
17
|
+
"typography",
|
|
18
|
+
"obsidian"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"CHANGELOG.md"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./types": {
|
|
32
|
+
"types": "./dist/types.d.ts",
|
|
33
|
+
"import": "./dist/types.js"
|
|
34
|
+
},
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
"main": "./dist/index.js",
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"sideEffects": false,
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsup",
|
|
42
|
+
"dev": "tsup --watch",
|
|
43
|
+
"lint": "eslint . --max-warnings=0",
|
|
44
|
+
"format": "prettier . --check",
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"check": "npm run typecheck && npm run lint && npm run format && npm run test",
|
|
48
|
+
"prepublishOnly": "npm run build"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"google-font-metadata": "^6.0.0",
|
|
52
|
+
"preact": "^10.0.0",
|
|
53
|
+
"vfile": "^6.0.3"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"google-font-metadata": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"preact": {
|
|
60
|
+
"optional": false
|
|
61
|
+
},
|
|
62
|
+
"vfile": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@quartz-community/types": "^0.2.1",
|
|
68
|
+
"@quartz-community/utils": "^0.1.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/hast": "^3.0.4",
|
|
72
|
+
"@types/mdast": "^4.0.4",
|
|
73
|
+
"@types/node": "^24.10.0",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
75
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
76
|
+
"eslint": "^8.57.0",
|
|
77
|
+
"eslint-config-prettier": "^9.1.0",
|
|
78
|
+
"github-slugger": "^2.0.0",
|
|
79
|
+
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
80
|
+
"preact": "^10.28.2",
|
|
81
|
+
"prettier": "^3.6.2",
|
|
82
|
+
"sass": "^1.97.3",
|
|
83
|
+
"tsup": "^8.5.0",
|
|
84
|
+
"typescript": "^5.9.3",
|
|
85
|
+
"unified": "^11.0.5",
|
|
86
|
+
"vfile": "^6.0.3",
|
|
87
|
+
"vitest": "^2.1.9"
|
|
88
|
+
},
|
|
89
|
+
"quartz": {
|
|
90
|
+
"name": "fonts",
|
|
91
|
+
"displayName": "Fonts",
|
|
92
|
+
"category": [
|
|
93
|
+
"transformer",
|
|
94
|
+
"emitter"
|
|
95
|
+
],
|
|
96
|
+
"version": "1.0.0",
|
|
97
|
+
"quartzVersion": ">=5.0.0",
|
|
98
|
+
"dependencies": [],
|
|
99
|
+
"defaultOrder": 60,
|
|
100
|
+
"defaultEnabled": true,
|
|
101
|
+
"defaultOptions": {
|
|
102
|
+
"useThemeFonts": true,
|
|
103
|
+
"fontOrigin": "googleFonts"
|
|
104
|
+
},
|
|
105
|
+
"optionSchema": {
|
|
106
|
+
"title": {
|
|
107
|
+
"oneOf": [
|
|
108
|
+
{
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"name": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"weights": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "number"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"includeItalic": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"name"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"body": {
|
|
134
|
+
"oneOf": [
|
|
135
|
+
{
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "object",
|
|
140
|
+
"properties": {
|
|
141
|
+
"name": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"weights": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": {
|
|
147
|
+
"type": "number"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"includeItalic": {
|
|
151
|
+
"type": "boolean"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": [
|
|
155
|
+
"name"
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"header": {
|
|
161
|
+
"oneOf": [
|
|
162
|
+
{
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "object",
|
|
167
|
+
"properties": {
|
|
168
|
+
"name": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"weights": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"items": {
|
|
174
|
+
"type": "number"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"includeItalic": {
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": [
|
|
182
|
+
"name"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"code": {
|
|
188
|
+
"oneOf": [
|
|
189
|
+
{
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"name": {
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
"weights": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "number"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"includeItalic": {
|
|
205
|
+
"type": "boolean"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": [
|
|
209
|
+
"name"
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"interface": {
|
|
215
|
+
"oneOf": [
|
|
216
|
+
{
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"name": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"weights": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "number"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"includeItalic": {
|
|
232
|
+
"type": "boolean"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"name"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"h1": {
|
|
242
|
+
"oneOf": [
|
|
243
|
+
{
|
|
244
|
+
"type": "string"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"name": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
"weights": {
|
|
253
|
+
"type": "array",
|
|
254
|
+
"items": {
|
|
255
|
+
"type": "number"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"includeItalic": {
|
|
259
|
+
"type": "boolean"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"required": [
|
|
263
|
+
"name"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"h2": {
|
|
269
|
+
"oneOf": [
|
|
270
|
+
{
|
|
271
|
+
"type": "string"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"name": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"weights": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"items": {
|
|
282
|
+
"type": "number"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"includeItalic": {
|
|
286
|
+
"type": "boolean"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": [
|
|
290
|
+
"name"
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
"h3": {
|
|
296
|
+
"oneOf": [
|
|
297
|
+
{
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "object",
|
|
302
|
+
"properties": {
|
|
303
|
+
"name": {
|
|
304
|
+
"type": "string"
|
|
305
|
+
},
|
|
306
|
+
"weights": {
|
|
307
|
+
"type": "array",
|
|
308
|
+
"items": {
|
|
309
|
+
"type": "number"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"includeItalic": {
|
|
313
|
+
"type": "boolean"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"required": [
|
|
317
|
+
"name"
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
"h4": {
|
|
323
|
+
"oneOf": [
|
|
324
|
+
{
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "object",
|
|
329
|
+
"properties": {
|
|
330
|
+
"name": {
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
333
|
+
"weights": {
|
|
334
|
+
"type": "array",
|
|
335
|
+
"items": {
|
|
336
|
+
"type": "number"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"includeItalic": {
|
|
340
|
+
"type": "boolean"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"required": [
|
|
344
|
+
"name"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"h5": {
|
|
350
|
+
"oneOf": [
|
|
351
|
+
{
|
|
352
|
+
"type": "string"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"type": "object",
|
|
356
|
+
"properties": {
|
|
357
|
+
"name": {
|
|
358
|
+
"type": "string"
|
|
359
|
+
},
|
|
360
|
+
"weights": {
|
|
361
|
+
"type": "array",
|
|
362
|
+
"items": {
|
|
363
|
+
"type": "number"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"includeItalic": {
|
|
367
|
+
"type": "boolean"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"required": [
|
|
371
|
+
"name"
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"h6": {
|
|
377
|
+
"oneOf": [
|
|
378
|
+
{
|
|
379
|
+
"type": "string"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"type": "object",
|
|
383
|
+
"properties": {
|
|
384
|
+
"name": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
"weights": {
|
|
388
|
+
"type": "array",
|
|
389
|
+
"items": {
|
|
390
|
+
"type": "number"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"includeItalic": {
|
|
394
|
+
"type": "boolean"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"required": [
|
|
398
|
+
"name"
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"useThemeFonts": {
|
|
404
|
+
"type": "boolean"
|
|
405
|
+
},
|
|
406
|
+
"fontOrigin": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"enum": [
|
|
409
|
+
"googleFonts",
|
|
410
|
+
"local",
|
|
411
|
+
"selfHosted"
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"engines": {
|
|
417
|
+
"node": ">=22",
|
|
418
|
+
"npm": ">=10.9.2"
|
|
419
|
+
},
|
|
420
|
+
"publishConfig": {
|
|
421
|
+
"access": "public"
|
|
422
|
+
}
|
|
423
|
+
}
|