Use zinc everywhere

This commit is contained in:
Claudio Ortolina
2024-11-05 08:42:30 +00:00
parent 678e61ecbc
commit c9cf3360d2
10 changed files with 45 additions and 45 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ defmodule MusicLibraryWeb.Layouts do
embed_templates "layouts/*"
@nav_base_classes "inline-flex items-center border-b-2 px-1 pt-1 text-sm font-medium"
@nav_inactive_classes "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-200"
@nav_active_classes "border-zinc-500 text-gray-900 dark:text-gray-100"
@nav_inactive_classes "border-transparent text-zinc-500 hover:border-zinc-300 hover:text-zinc-700 dark:text-zinc-300 dark:hover:text-zinc-200"
@nav_active_classes "border-zinc-500 text-zinc-900 dark:text-zinc-100"
def section_link_classes(current_section, section) when current_section == section do
[@nav_base_classes, @nav_active_classes]