Skip to main content

systemprompt_provider_contracts/web_config/theme/
typography.rs

1//! Typography sizes and weights.
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 TypographyConfig {
10    pub sizes: TypographySizes,
11    pub weights: TypographyWeights,
12}
13
14#[derive(Debug, Clone, Serialize, Deserialize)]
15pub struct TypographySizes {
16    pub xs: String,
17    pub sm: String,
18    pub md: String,
19    pub lg: String,
20    pub xl: String,
21    pub xxl: String,
22}
23
24#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
25pub struct TypographyWeights {
26    pub regular: u16,
27    pub medium: u16,
28    pub semibold: u16,
29    pub bold: u16,
30}