Skip to main content

systemprompt_provider_contracts/web_config/theme/
fonts.rs

1//! Font-family declarations and self-hosted font-file metadata.
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
6pub struct FontsConfig {
7    pub body: FontConfig,
8    pub heading: FontConfig,
9    #[serde(default)]
10    pub brand: Option<FontConfig>,
11}
12
13#[derive(Debug, Clone, Serialize, Deserialize)]
14pub struct FontConfig {
15    pub family: String,
16    pub fallback: String,
17    #[serde(default)]
18    pub files: Vec<FontFile>,
19}
20
21#[derive(Debug, Clone, Serialize, Deserialize)]
22pub struct FontFile {
23    pub path: String,
24    pub weight: u16,
25    pub style: String,
26}