2
0

🚸 (theme) Improve custom font flow by asking for font-face props directly

This commit is contained in:
Baptiste Arnaud
2024-02-27 11:28:37 +01:00
parent b9e54686d5
commit 33d0fcd842
6 changed files with 66 additions and 23 deletions

View File

@@ -47,7 +47,8 @@ export type GoogleFont = z.infer<typeof googleFontSchema>
const customFontSchema = z.object({
type: z.literal(fontTypes[1]),
family: z.string().optional(),
url: z.string().optional(),
css: z.string().optional(),
url: z.string().optional().describe('Deprecated, use `css` instead'),
})
export type CustomFont = z.infer<typeof customFontSchema>