mdgriffith/elm-ui

CSS and HTML are actually quite difficult to use when you're trying to do the layout and styling of a web page.

This library is a complete alternative to HTML and CSS. Basically you can just write your app using this library and (mostly) never have to think about HTML and CSS again.

The high level goal of this library is to be a design toolkit that draws inspiration from the domains of design, layout, and typography, as opposed to drawing from the ideas as implemented in CSS and HTML.

(Readme.md from the package)

main : Html msg
main = 
    Element.layout [] <|
        row [ width fill, centerY, spacing 30 ]
            [ myElement
            , myElement
            , el [ alignRight ] <|
                el
                    [ Background.color (rgb255 240 0 245)
                    , Font.color (rgb255 255 255 255)
                    , Border.rounded 3
                    , padding 30
                    ] <|
                text "stylish!"
            ]      

This is a summary of the talk Building a Toolkit for Design by Matthew Griffith.

Basics

Alignment

This subject is explained at 3:26 in the Video.

Padding and Spacing

This subject is explained at 7:32 in the Video.

Size

This subject is explained at 9:15 in the Video.

Text Layout

This subject is explained at 12:47 in the Video.

Further Reading

Last updated