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();

Re-exports§

pub use presets::cupertino::FissionCupertinoDesignSystem;
pub use presets::fluent2::FissionFluent2DesignSystem;
pub use presets::liquid_glass::FissionLiquidGlassDesignSystem;
pub use presets::material3::FissionMaterialDesign3DesignSystem;

Modules§

fonts
Bundled font files embedded at compile time.
presets

Structs§

AlertTheme
Visual parameters for the Alert widget, with per-severity background colors.
BadgeTheme
Visual parameters for the Badge widget.
BoxShadow
ButtonTheme
Visual parameters for the Button widget.
CalendarTheme
Visual parameters for the Calendar widget.
CardTheme
Color
ColorTokens
Semantic color palette for the application.
ComponentBorder
ComponentMotion
ComponentStateStyles
ComponentTheme
Aggregates all per-component visual themes.
DataVisualizationTokens
DesignAsset
DesignAssetManifest
DesignComponentSpec
DesignPatternSpec
DesignProperty
DesignSystemInfo
DesignToken
DesignTokenSet
ElevationTokens
Box shadow levels for surface elevation.
FeatureIconTheme
FissionDefaultDesignSystem
ModalTheme
Visual parameters for the Modal widget.
MotionTokens
PaginationTheme
Visual parameters for the Pagination widget.
ProgressTheme
Visual parameters for the ProgressBar widget.
RadiusTokens
Corner radius scale for rounded containers.
ResolvedComponentStyle
ResolvedDesignSystem
SegmentedControlTheme
Visual parameters for the SegmentedControl widget.
ShadowLayer
SpacingTokens
Standard spacing scale used for padding, margins, and gaps.
Stroke
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.

Enums§

BadgeTone
ButtonHierarchy
CardPattern
ComponentSize
ComponentState
DesignMode
DesignValue
EasingCurve
FeatureIconTone
Fill
LineCap
LineJoin

Traits§

DesignSystem