mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
61 lines
912 B
Markdown
61 lines
912 B
Markdown
---
|
|
title: Webfont
|
|
description: Tabler Icons as a webfont.
|
|
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.
|
|
---
|
|
|
|

|
|
|
|
|
|
## Installation
|
|
|
|
```
|
|
yarn add @tabler/icons-webfont
|
|
```
|
|
|
|
or
|
|
|
|
```
|
|
npm install @tabler/icons-webfont
|
|
```
|
|
|
|
or
|
|
|
|
```
|
|
pnpm install @tabler/icons-webfont
|
|
```
|
|
|
|
or just [download from Github](https://github.com/tabler/tabler-icons/releases).
|
|
|
|
### CDN
|
|
|
|
```html
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@$ICONS_VERSION/dist/tabler-icons.min.css"
|
|
/>
|
|
```
|
|
|
|
Instead of a specific version, you can use `latest` to always get the newest icons.
|
|
|
|
## Usage
|
|
|
|
### HTML
|
|
|
|
```html
|
|
<i class="ti ti-brand-tabler"></i>
|
|
```
|
|
|
|
### CSS
|
|
|
|
```css
|
|
content: 'ec8f';
|
|
```
|
|
|
|
|
|
### SCSS
|
|
|
|
```scss
|
|
content: $ti-icon-brand-tabler;
|
|
```
|