Safe Haskell | None |
---|---|
Language | Haskell2010 |
Use Tailwind CSS with blaze-html? Try this module for rapid prototyping of websites in Ema.
Synopsis
- layoutWith :: AttributeValue -> AttributeValue -> Html -> Html -> LByteString
- twindLayout :: Some Action -> Html -> Html -> LByteString
- tailwind2ShimCdn :: Html
- twindShimOfficial :: Html
- twindShimUnofficial :: Html
Main functions
layoutWith :: AttributeValue -> AttributeValue -> Html -> Html -> LByteString Source #
A general layout
twindLayout :: Some Action -> Html -> Html -> LByteString Source #
A simple and off-the-shelf layout using Tailwind CSS
Tailwind official shims
tailwind2ShimCdn :: Html Source #
Loads full tailwind CSS from CDN (not good for production)
Twind.dev shims
twindShimOfficial :: Html Source #
This shim may not work with hot reload.
twindShimUnofficial :: Html Source #
This shim does work with hot reload, but it spams console with warnings.