Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orasund/elm-html-style
https://github.com/orasund/elm-html-style
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/orasund/elm-html-style
- Owner: Orasund
- License: bsd-3-clause
- Created: 2024-02-15T17:02:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T11:36:40.000Z (6 months ago)
- Last Synced: 2024-07-05T14:02:36.785Z (6 months ago)
- Language: Elm
- Size: 418 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-html-style
This package provides shortshands for writing css.
All functions have been generated from the [MDN data repository](https://github.com/mdn/data), 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")
```