FuJa0815/elm-ui/1.0.0

Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/FuJa0815/elm-ui.

What we checked: Tag 1.0.0 is still on github.com/FuJa0815/elm-ui; its commit 349b7160528c is from 2021-04-22 11:51 UTC, before the version was published (2021-04-22 12:12 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/FuJa0815/elm-ui/zipball/1.0.0/

Element.Background

color : Color -> Attr decorative msg
{ angle : Float
, steps : List Color
}
-> Attr decorative msg

A linear gradient.

First you need to specify what direction the gradient is going by providing an angle in radians. 0 is up and pi is down.

The colors will be evenly spaced.

Images

image : String -> Attribute msg

Resize the image to fit the containing element while maintaining proportions and cropping the overflow.

uncropped : String -> Attribute msg

A centered background image that keeps its natural proportions, but scales to fit the space.

tiled : String -> Attribute msg

Tile an image in the x and y axes.

tiledX : String -> Attribute msg

Tile an image in the x axis.

tiledY : String -> Attribute msg

Tile an image in the y axis.

Note if you want more control over a background image than is provided here, you should try just using a normal Element.image with something like Element.behindContent.