Skip to content

Releases: dtwrks/elm-ui-book

2.2.1

18 Jul 11:02
Compare
Choose a tag to compare
chore: version bump 2.2.1

2.2.0

27 May 13:33
Compare
Choose a tag to compare
docs: 2.3.0 features

2.1.0

26 Mar 23:12
Compare
Choose a tag to compare

withGlobals

You can now use the withGlobals function to provide globally available html elements – this is mostly useful when you want to include a CSS reset but you don't want to provide your own index.html + custom server setup.

For instance, if you're using elm-tailwind-modules, you could include the globalStyles like this:

import Css.Global exposing (global)
import Tailwind.Utilities exposing (globalStyles)
import UIBook.ElmCSS exposing (book)

book "MyApp"
    |> withGlobals [
        global globalStyles
    ]

withBackgroundColor

Now you can customize the background color of your chapter sections by providing this function to your builder function. This is useful when you're designing a UI element that will always show up in a dark background and the default white background color just won't do. You can use it like this:

buttonsChapter : UIChapter x
buttonsChapter =
    chapter "Buttons"
        |> withBackgroundColor "#F0F"
        |> withSections
            [ ( "Default", button [] [] )
            , ( "Disabled", button [ disabled True ] [] )
            ]

2.0.1

07 Feb 19:20
Compare
Choose a tag to compare
fix: z-index problems on mobile

2.0.0

07 Feb 19:09
Compare
Choose a tag to compare
chore: bump versions

1.0.1

04 Feb 09:14
Compare
Choose a tag to compare
chore: bump elm version