Skip to main content

systemprompt_provider_contracts/web_config/theme/
fonts.rs

1//! Font-family declarations and self-hosted font-file metadata.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6use 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}