Expand description
Design token system and component themes for the Fission UI framework.
This crate defines the complete visual language: colors, spacing, typography, corner radii, elevations (box shadows), and per-component theme overrides. It follows the Material Design 3 token architecture.
§Usage
ⓘ
use fission_theme::Theme;
let light = Theme::default();
let dark = Theme::dark();Modules§
- fonts
- Bundled font files embedded at compile time.
Structs§
- Alert
Theme - Visual parameters for the
Alertwidget, with per-severity background colors. - Badge
Theme - Visual parameters for the
Badgewidget. - Button
Theme - Visual parameters for the
Buttonwidget. - Calendar
Theme - Visual parameters for the
Calendarwidget. - Color
Tokens - Semantic color palette for the application.
- Component
Theme - Aggregates all per-component visual themes.
- Elevation
Tokens - Box shadow levels for surface elevation.
- Modal
Theme - Visual parameters for the
Modalwidget. - Pagination
Theme - Visual parameters for the
Paginationwidget. - Progress
Theme - Visual parameters for the
ProgressBarwidget. - Radius
Tokens - Corner radius scale for rounded containers.
- Segmented
Control Theme - Visual parameters for the
SegmentedControlwidget. - Spacing
Tokens - Standard spacing scale used for padding, margins, and gaps.
- Tabs
Theme - Visual parameters for the
Tabswidget. - Text
Input Theme - Visual parameters for the
TextInputwidget. - Theme
- The top-level theme combining primitive
Tokensand derivedComponentTheme. - Timeline
Theme - Visual parameters for the
Timelinewidget. - Tokens
- The complete set of primitive design tokens.
- Tooltip
Theme - Visual parameters for the
Tooltipwidget. - Tree
View Theme - Visual parameters for the
TreeViewwidget. - Typography
Tokens - Font size scale for text elements.