webfont.mdx 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. Instead of a specific version, you can use `latest` to always get the newest icons.
  25. ## Usage
  26. ### HTML
  27. ```html
  28. <i class="ti ti-brand-tabler"></i>
  29. ```
  30. ### CSS
  31. ```css
  32. content: 'ec8f';
  33. ```
  34. ### SCSS
  35. ```scss
  36. content: $ti-icon-brand-tabler;
  37. ```