Safe Haskell | None |
---|---|
Language | GHC2021 |
Web.TablerIcons
Description
Tabler Icons
Haskell bindings for Tabler Icons - a set of over 5,000 free SVG icons.
Each icon is exported as a ByteString
containing the raw SVG content.
Quick Start
Using with Lucid:
import Web.TablerIcons.Outline qualified as Outline import Web.TablerIcons.Filled qualified as Filled import Lucid myButton = button_ [class_ "btn"] $ do div_ [class_ "w-6 h-6 text-blue-500"] $ toHtmlRaw Outline.home "Home" myFilledIcon = div_ [class_ "w-6 h-6 text-red-500"] $ toHtmlRaw Filled.heart
Available Icon Sets
- Web.TablerIcons.Outline - 4964 outline style icons (comprehensive set)
- Web.TablerIcons.Filled - 981 filled style icons (subset of popular icons)
All 981 filled icons have corresponding outline versions with the same name.
Icon Naming
Icon names follow Haskell naming conventions:
- Hyphens become underscores:
building-arch
→building_arch
- Names starting with numbers get
icon_
prefix:2fa
→icon_2fa
- Haskell keywords get
_
suffix:type
→type_