Skip to content

Commit

Permalink
Add missing helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchal committed Dec 6, 2023
1 parent 07c3c65 commit aaea711
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/helpers/colorized_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module ColorizedHelper
def color_select_options
[""] + Colorized.colors.map { |color| [color, { class: "bg-#{color}-100 text-#{color}-600" }] }
end
end

# NOTE: Tailwind processor catches these
# class="bg-slate-50 border-slate-400 text-slate-600 ring-slate-500/10"
# class="bg-gray-50 border-gray-400 text-gray-600 ring-gray-500/10"
# class="bg-zinc-50 border-zinc-400 text-zinc-600 ring-zinc-500/10"
# class="bg-neutral-50 border-neutral-400 text-neutral-600 ring-neutral-500/10"
# class="bg-stone-50 border-stone-400 text-stone-600 ring-stone-500/10"
# class="bg-red-50 border-red-400 text-red-600 ring-red-500/10"
# class="bg-orange-50 border-orange-400 text-orange-600 ring-orange-500/10"
# class="bg-amber-50 border-amber-400 text-amber-600 ring-amber-500/10"
# class="bg-yellow-50 border-yellow-400 text-yellow-600 ring-yellow-500/10"
# class="bg-lime-50 border-lime-400 text-lime-600 ring-lime-500/10"
# class="bg-green-50 border-green-400 text-green-600 ring-green-500/10"
# class="bg-emerald-50 border-emerald-400 text-emerald-600 ring-emerald-500/10"
# class="bg-teal-50 border-teal-400 text-teal-600 ring-teal-500/10"
# class="bg-cyan-50 border-cyan-400 text-cyan-600 ring-cyan-500/10"
# class="bg-sky-50 border-sky-400 text-sky-600 ring-sky-500/10"
# class="bg-blue-50 border-blue-400 text-blue-600 ring-blue-500/10"
# class="bg-indigo-50 border-indigo-400 text-indigo-600 ring-indigo-500/10"
# class="bg-violet-50 border-violet-400 text-violet-600 ring-violet-500/10"
# class="bg-purple-50 border-purple-400 text-purple-600 ring-purple-500/10"
# class="bg-fuchsia-50 border-fuchsia-400 text-fuchsia-600 ring-fuchsia-500/10"
# class="bg-pink-50 border-pink-400 text-pink-600 ring-pink-500/10"
# class="bg-rose-50 border-rose-400 text-rose-600 ring-rose-500/10"
5 changes: 5 additions & 0 deletions app/helpers/iconized_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module IconizedHelper
def icon_select_options
[""] + Iconized.icons
end
end

0 comments on commit aaea711

Please sign in to comment.