ema-0.2.0.0: Static site generator library with hot reload
Safe HaskellNone
LanguageHaskell2010

Ema.Helper.Tailwind

Description

Use Tailwind CSS with blaze-html? Try this module for rapid prototyping of websites in Ema.

Synopsis

Main functions

layout :: Action -> Html -> Html -> LByteString Source #

A simple and off-the-shelf layout using Tailwind CSS

layoutWith :: AttributeValue -> AttributeValue -> Html -> Html -> Html -> LByteString Source #

Like layout, but pick your own language, encoding and tailwind shim.

Tailwind shims

twindShimCdn :: Html Source #

Loads full tailwind CSS from CDN (not good for production)

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.