module Plutonium class Icons ICON_CACHE = {} ICON_SIZES = { sm: "w-3 h-3", md: "w-4 h-4", lg: "w-6 h-6", xl: "w-8 h-8" } class << self def render(name, size: :md, classname: nil) size = ICON_SIZES.key?(size) ? size : :sm classname = (Array(classname) + [ICON_SIZES[size]]).join(" ") resolve(name).sub("