webfont.mdx 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ---
  2. title: Webfont
  3. description: Tabler Icons as a webfont.
  4. summary: Tabler Icons as a webfont allows you to easily include icons in your projects using simple CSS classes, offering a lightweight and scalable solution for web development.
  5. ---
  6. ![](/docs/icons/package-webfont.png)
  7. ## Installation
  8. ```
  9. yarn add @tabler/icons-webfont
  10. ```
  11. or
  12. ```
  13. npm install @tabler/icons-webfont
  14. ```
  15. or
  16. ```
  17. pnpm install @tabler/icons-webfont
  18. ```
  19. or just [download from Github](https://github.com/tabler/tabler-icons/releases).
  20. ### CDN
  21. ```html
  22. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@$ICONS_VERSION/dist/tabler-icons.min.css">
  23. ```
  24. ## Usage
  25. ### HTML
  26. ```html
  27. <i class="ti ti-brand-tabler"></i>
  28. ```
  29. ### CSS
  30. ```css
  31. content: 'ec8f';
  32. ```
  33. ### SCSS
  34. ```scss
  35. content: $ti-icon-brand-tabler;
  36. ```