From 4f33e475e51c7a0bedf9d6a948c76a1c57e9ee67 Mon Sep 17 00:00:00 2001 From: Torsten Date: Sun, 22 Jan 2023 23:17:44 +0200 Subject: [PATCH] heroicon --- app/helpers/heroicon_helper.rb | 5 +++++ config/initializers/heroicon.rb | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 app/helpers/heroicon_helper.rb create mode 100644 config/initializers/heroicon.rb diff --git a/app/helpers/heroicon_helper.rb b/app/helpers/heroicon_helper.rb new file mode 100644 index 0000000..c4f9665 --- /dev/null +++ b/app/helpers/heroicon_helper.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +module HeroiconHelper + include Heroicon::Engine.helpers +end \ No newline at end of file diff --git a/config/initializers/heroicon.rb b/config/initializers/heroicon.rb new file mode 100644 index 0000000..db7d89e --- /dev/null +++ b/config/initializers/heroicon.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +Heroicon.configure do |config| + config.variant = :solid # Options are :solid, :outline and :mini + + ## + # You can set a default class, which will get applied to every icon with + # the given variant. To do so, un-comment the line below. + # config.default_class = {solid: "h-5 w-5", outline: "h-6 w-6", mini: "h-4 w-4"} +end