npm.io
0.2.0 • Published 1h ago

@ptlm-azulejo/icons

Licence
MIT
Version
0.2.0
Deps
0
Size
85 kB
Vulns
0
Weekly
0

Icons

Azulejo icon font — SVG sources under src/svg/ compiled to a WOFF2 font with CSS classes (az az-<name>).

Installation

npm install @ptlm-azulejo/icons
# or
yarn add @ptlm-azulejo/icons

Styles

import '@ptlm-azulejo/icons/style.css'

Basic usage

<span class="az az-ui-chevron-down" aria-hidden="true"></span>
  • Size with font-size or Tailwind text-*
  • Color with color / text-* (the glyph inherits currentColor)
  • Decorative icons should set aria-hidden="true" — the accessible name comes from the control that owns them

Exports

Export Path Description
CSS @ptlm-azulejo/icons/style.css @font-face + .az / .az-* classes
JSON @ptlm-azulejo/icons/icons.json Name → codepoint map

Build

yarn turbo run build --filter=@ptlm-azulejo/icons

fantasticon (Node ≥ 22) turns src/svg/**/*.svg into dist/azulejo-icons.{woff2,css,json}. Path names become class names (ui/chevron/down.svgaz-ui-chevron-down).