https://github.com/elvinaspredkelis/phlex-tabler_icons
Tabler Icons tailored for Phlex
https://github.com/elvinaspredkelis/phlex-tabler_icons
phlex ruby tabler-icons
Last synced: 3 months ago
JSON representation
Tabler Icons tailored for Phlex
- Host: GitHub
- URL: https://github.com/elvinaspredkelis/phlex-tabler_icons
- Owner: elvinaspredkelis
- License: mit
- Created: 2024-08-07T09:35:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-21T09:18:54.000Z (about 1 year ago)
- Last Synced: 2025-07-12T01:49:53.382Z (3 months ago)
- Topics: phlex, ruby, tabler-icons
- Language: Ruby
- Homepage:
- Size: 1.28 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phlex Tabler Icons
[](https://badge.fury.io/rb/phlex-tabler_icons)
This is a port of [Tabler Icons](https://tabler.io/icons) to [Phlex](https://www.phlex.fun/)
> [!NOTE]
> Currently the gem only supports outlined icons. Filled icon variants will be introduced soon.## Instructions
### Installation
Add the gem to your application:
```bash
bundle add phlex-tabler_icons
```That's it!
### Usage
Simply render the desired icon in your views. The name of the icon is the same as in the Tabler Icons library, just in pascal case.
```ruby
render Phlex::TablerIcons::Rocket.new(class: "h-8 w-8", stroke_width: 1.5)
```## Configuration
Add the following to your initializers
```ruby
Phlex::TablerIcons.configure do |config|
config.default_class = "h-6 w-6"
config.default_height = "24"
config.default_width = "24"
config.default_stroke_width = "2"
end
```## Special Thank You
This gem would not be possible without the following projects:
- [Tabler Icons](https://tabler.io/icons)
- [Phlex](https://github.com/phlex-ruby/phlex)
- [Phlexing](https://github.com/marcoroth/phlexing)