Orasund / elm-html-style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-html-style

This package provides shortshands for writing css.

All functions have been generated from the MDN data repository, ensuring that you can always use the most recent css features.

The following functions are currently generated:

  • Generic functions returning a Html.Attributes

    maxWidth string = 
      Html.Attributes.style "max-width" string
    
  • Variants for constant values

    maxWidthMaxContent = 
      Html.Attributes.style "max-width" "max-content"
    
  • Variants for lengths (currently only "px" and "rem")

    maxWidthPx float =
      Html.Attributes.style "max-width" (float ++ "px")
    

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 99.9%Language:TypeScript 0.1%