avh4/elm-beautiful-example - version: 2.0.1

for more information visit the package's GitHub page

Package contains the following modules:

Build Status Latest Version

elm-beautiful-example

This package makes it easy to create beautiful examples for your Elm projects and packages.

Screenshot of a Counter example using elm-beautiful-example

Usage

Start with your not-so-pretty Elm example:

Screenshot of the original, not-so-pretty Counter example from the Elm Guide

  1. Install elm-beautiful-example

sh elm install avh4/elm-beautiful-example

  1. Replace Browser.sandbox, Browser.element, Browser.document or Browser.application with BeautifulExample.sandbox, BeautifulExample.element, BeautifulExample.document or BeautifulExample.application and add the beautiful example config, filling in the fields as appropriate for your example:

```diff +import BeautifulExample

main : Program () Model Msg
main =

Now your example will look like this:

Screenshot of a Counter example using elm-beautiful-example