systemprompt_provider_contracts/web_config/theme/
fonts.rs1use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct FontsConfig {
10 pub body: FontConfig,
11 pub heading: FontConfig,
12 #[serde(default)]
13 pub brand: Option<FontConfig>,
14}
15
16#[derive(Debug, Clone, Serialize, Deserialize)]
17pub struct FontConfig {
18 pub family: String,
19 pub fallback: String,
20 #[serde(default)]
21 pub files: Vec<FontFile>,
22}
23
24#[derive(Debug, Clone, Serialize, Deserialize)]
25pub struct FontFile {
26 pub path: String,
27 pub weight: u16,
28 pub style: String,
29}