Skip to main content

systemprompt_provider_contracts/web_config/theme/
mobile.rs

1//! Mobile-breakpoint overrides for spacing, typography, layout, and cards.
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
8use super::card::CardPadding;
9use super::scale::SpacingConfig;
10use super::typography::TypographySizes;
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct MobileConfig {
14    pub spacing: SpacingConfig,
15    pub typography: MobileTypography,
16    pub layout: MobileLayout,
17    pub card: MobileCardConfig,
18}
19
20#[derive(Debug, Clone, Serialize, Deserialize)]
21pub struct MobileTypography {
22    pub sizes: TypographySizes,
23}
24
25#[derive(Debug, Clone, Serialize, Deserialize)]
26pub struct MobileLayout {
27    #[serde(rename = "headerHeight")]
28    pub header_height: String,
29    #[serde(rename = "navHeight")]
30    pub nav_height: String,
31}
32
33#[derive(Debug, Clone, Serialize, Deserialize)]
34pub struct MobileCardConfig {
35    pub padding: CardPadding,
36}