tabler-icons
Safe HaskellNone
LanguageGHC2021

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

All 981 filled icons have corresponding outline versions with the same name.

Icon Naming

Icon names follow Haskell naming conventions:

  • Hyphens become underscores: building-archbuilding_arch
  • Names starting with numbers get icon_ prefix: 2faicon_2fa
  • Haskell keywords get _ suffix: typetype_