framework/front/css

Types

pub type Animation {
  Fade
  SlideUp
  Pulse
}

Constructors

  • Fade
  • SlideUp
  • Pulse
pub type Breakpoint {
  SP
  PC
  Tablet
}

Constructors

  • SP
  • PC
  • Tablet
pub type Flow {
  Stack(gap: Length)
  Row(gap: Length, wrap: Bool)
  Grid(cols: Int, gap: Length)
  GridTracks(cols: List(track.Track), gap: Length)
  Scroller
}

Constructors

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 Length {
  Px(Float)
  Rem(Float)
}

Constructors

  • Px(Float)
  • Rem(Float)
pub type Pin {
  Top
  Bottom
  NoPin
}

Constructors

  • Top
  • Bottom
  • NoPin
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

✨ Search Document