rename color to text_color

This commit is contained in:
2023-01-19 00:07:52 +02:00
parent 2141941f8d
commit 6a8dc3f8c6
23 changed files with 54 additions and 54 deletions

View File

@ -81,8 +81,8 @@ module Merged
{class: clazz}
end
def color_option(section , clazz = "")
if section.has_option?("color")
def text_color_option(section , clazz = "")
if section.has_option?("text_color")
clazz += color_for(section)
end
{class: clazz }
@ -163,7 +163,7 @@ module Merged
"solid_petrol" => " text-teal-700" ,
"solid_indigo" => " text-indigo-800" ,
"solid_black" => " text-slate-800" ,
}[section.option("color")] || ""
}[section.option("text_color")] || ""
end
# need full color names for tailwind to pick it up