Add Tailwind color palette (#452)

This commit is contained in:
Zach Gollwitzer
2024-02-12 17:20:50 -05:00
committed by GitHub
parent 02ce81ba40
commit bbe7323ca4
11 changed files with 251 additions and 64 deletions

View File

@@ -24,8 +24,8 @@ module ApplicationHelper
def sidebar_link_to(name, path, options = {})
base_class_names = [ "block", "border", "border-transparent", "rounded-xl", "-ml-2", "p-2", "text-sm", "font-medium", "text-gray-500", "flex", "items-center" ]
hover_class_names = [ "hover:bg-white", "hover:border-[#141414]/[0.07]", "hover:text-gray-900", "hover:shadow-xs" ]
current_page_class_names = [ "bg-white", "border-[#141414]/[0.07]", "text-gray-900", "shadow-xs" ]
hover_class_names = [ "hover:bg-white", "hover:border-alpha-black-50", "hover:text-gray-900", "hover:shadow-xs" ]
current_page_class_names = [ "bg-white", "border-alpha-black-50", "text-gray-900", "shadow-xs" ]
link_class_names = if current_page?(path)
base_class_names.delete("border-transparent")