feat(badges): cfg_json body_text_color applied in renderer

This commit is contained in:
Scott Idem
2026-04-08 12:32:13 -04:00
parent 56b4e5c627
commit b02843e467
4 changed files with 147 additions and 5 deletions

View File

@@ -0,0 +1,35 @@
// Type definition for badge template cfg_json stored on templates.
export interface BadgeTemplateCfg {
hide_badge_header?: boolean;
hide_badge_footer?: boolean;
show_qr_front?: boolean;
show_qr_back?: boolean;
// Per-field hide toggles
hide_title?: boolean;
hide_affiliations?: boolean;
hide_location?: boolean;
// Alignment overrides
align?: {
name?: string;
title?: string;
affiliations?: string;
location?: string;
};
// QR alignment
qr_alignment?: {
front?: string;
back?: string;
};
// Layout fit height overrides
fit_heights?: Record<string, string>;
// Body text color: either a Tailwind `text-*` class or a hex color like `#112233`.
body_text_color?: string;
// Allow arbitrary extra keys to preserve forward-compatibility.
[key: string]: any;
}