feat(branding): per-family generic fallback via meta.json

This commit is contained in:
Luca
2026-05-04 22:27:52 +02:00
parent f410207b2d
commit dcff451572
5 changed files with 85 additions and 21 deletions
+4
View File
@@ -3,6 +3,10 @@ import { api } from '../config/api';
export interface FontDefinition {
family: string;
weights: number[];
// CSS generic to use as a fallback when building font-family strings.
// Optional in the type so older backends without this field still work;
// callers must default to 'sans-serif' when undefined.
generic?: 'sans-serif' | 'serif' | 'cursive' | 'monospace';
}
export interface FontsListResponse {