Skip to main content

ferrox_front_ui/
tokens.rs

1//! # Design Tokens Submodule (`ferrox-front-ui::tokens`)
2//!
3//! Provides constants and CSS custom property helpers for Ferrox Front's Glassmorphism Design System.
4
5pub struct DesignTokens;
6
7impl DesignTokens {
8    // Spacing Tokens
9    pub const SPACE_XS: &'static str = "0.25rem";
10    pub const SPACE_SM: &'static str = "0.5rem";
11    pub const SPACE_MD: &'static str = "1rem";
12    pub const SPACE_LG: &'static str = "1.5rem";
13    pub const SPACE_XL: &'static str = "2rem";
14
15    // Border Radius Tokens
16    pub const RADIUS_SM: &'static str = "4px";
17    pub const RADIUS_MD: &'static str = "8px";
18    pub const RADIUS_LG: &'static str = "12px";
19    pub const RADIUS_FULL: &'static str = "9999px";
20
21    // Glassmorphism FX Tokens
22    pub const BACKDROP_BLUR: &'static str = "backdrop-filter: blur(12px);";
23    pub const BORDER_GLASS: &'static str = "border: var(--border-glass);";
24    pub const SHADOW_GLASS: &'static str = "box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);";
25}