Skip to content

Experiments using stylish-elephants: the next version of style-elements for Elm

License

Notifications You must be signed in to change notification settings

jbrgfx/elm-style-elements-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

style-elements experiment in Elm

Exercise in upgrading 4.2.1 style-elements package in Elm to the new experimental package.

Demo

stylish-elephants-experiments

This experiment is a refactoring exercise of style-elements for Elm, v4.2.1 to the next version of the package. Matthew Griffith is actively working on the next version. This project is now using the latest version of the experimental package. The latest stylish-elephants may be read at elm-package.

The new version eliminates "StyleSheets" as they are known in the production package and moves all elements and styles into basic view functions inline. This revision of style-elements reduces pain points and speeds development (IMHO).

This 2-column design is based on extensive work by Oliver Searle-Barnes, opsb, who has published an advanced demo of the stylish-elephants experimental package. This example uses only a few of the available features that Oliver Searle-Barnes demonstrated, and even fewer of the experimental package's features. Searle-Barnes' work inspired this minor experiment, but my hope is that by demonstrating one way of reworking 4.2.1 code to exercise the new package, others will get working with the new package easily and find that experiments are fun and enjoyable to work with.

Getting started

You need to have Elm 0.18 installed on your machine.

Clone this repo.

Then generate it from within the new project's root directory using:

elm reactor

And view it: localhost:8000/src/Main.elm

About

Experiments using stylish-elephants: the next version of style-elements for Elm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages