Skip to main content

systemprompt_provider_contracts/web_config/theme/
mobile.rs

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