Skip to main content

Crate fission_theme

Crate fission_theme 

Source
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§

AlertTheme
Visual parameters for the Alert widget, with per-severity background colors.
BadgeTheme
Visual parameters for the Badge widget.
ButtonTheme
Visual parameters for the Button widget.
CalendarTheme
Visual parameters for the Calendar widget.
ColorTokens
Semantic color palette for the application.
ComponentTheme
Aggregates all per-component visual themes.
ElevationTokens
Box shadow levels for surface elevation.
ModalTheme
Visual parameters for the Modal widget.
PaginationTheme
Visual parameters for the Pagination widget.
ProgressTheme
Visual parameters for the ProgressBar widget.
RadiusTokens
Corner radius scale for rounded containers.
SegmentedControlTheme
Visual parameters for the SegmentedControl widget.
SpacingTokens
Standard spacing scale used for padding, margins, and gaps.
TabsTheme
Visual parameters for the Tabs widget.
TextInputTheme
Visual parameters for the TextInput widget.
Theme
The top-level theme combining primitive Tokens and derived ComponentTheme.
TimelineTheme
Visual parameters for the Timeline widget.
Tokens
The complete set of primitive design tokens.
TooltipTheme
Visual parameters for the Tooltip widget.
TreeViewTheme
Visual parameters for the TreeView widget.
TypographyTokens
Font size scale for text elements.