Releases: dtwrks/elm-ui-book
Releases · dtwrks/elm-ui-book
2.2.1
2.2.0
docs: 2.3.0 features
2.1.0
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
fix: z-index problems on mobile
2.0.0
chore: bump versions
1.0.1
chore: bump elm version