framework/front/css
Types
pub type Breakpoint {
SP
PC
Tablet
}
Constructors
-
SP -
PC -
Tablet
pub type FontFamily {
System
SansSerif
Serif
Monospace
}
Constructors
-
System -
SansSerif -
Serif -
Monospace
pub type FontWeight {
Normal
Medium
Bold
}
Constructors
-
Normal -
Medium -
Bold
pub type Img(blob, media) {
Img(blob: blob, media: media)
}
Constructors
-
Img(blob: blob, media: media)
pub type Interaction {
Hover
Focus
Disabled
}
Constructors
-
Hover -
Focus -
Disabled
pub type SpaceProperty {
Margin
Padding
Gap
Width
Height
Radius
}
Constructors
-
Margin -
Padding -
Gap -
Width -
Height -
Radius
pub type Style {
Color(value: String)
Space(property: SpaceProperty, value: Length)
Text(
family: FontFamily,
size: Length,
weight: FontWeight,
line_height: Length,
)
Flow(flow: Flow)
State(state: Interaction, styles: List(Style))
Responsive(at: Breakpoint, styles: List(Style))
Animation(animation: Animation)
}
Constructors
-
Color(value: String) -
Space(property: SpaceProperty, value: Length) -
Text( family: FontFamily, size: Length, weight: FontWeight, line_height: Length, ) -
Flow(flow: Flow) -
State(state: Interaction, styles: List(Style)) -
Responsive(at: Breakpoint, styles: List(Style)) -
Animation(animation: Animation)