🚸 (theme) Improve custom font flow by asking for font-face props directly
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user