From c9cf3360d2e1b7c28aa72e3b4d7be46dc3ab8ba4 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 5 Nov 2024 08:42:30 +0000 Subject: [PATCH] Use zinc everywhere --- lib/music_library_web/components/layouts.ex | 4 ++-- .../components/pagination.ex | 4 ++-- .../controllers/session_html/new.html.heex | 10 ++++----- .../live/record_live/import_component.ex | 10 ++++----- .../live/record_live/index.html.heex | 12 +++++----- .../live/record_live/show.html.heex | 2 +- .../live/stats_live/data_components.ex | 10 ++++----- .../live/stats_live/index.html.heex | 22 +++++++++---------- .../live/wishlist_live/index.html.heex | 14 ++++++------ .../live/wishlist_live/show.html.heex | 2 +- 10 files changed, 45 insertions(+), 45 deletions(-) diff --git a/lib/music_library_web/components/layouts.ex b/lib/music_library_web/components/layouts.ex index 3c5f6df3..5ddfd63b 100644 --- a/lib/music_library_web/components/layouts.ex +++ b/lib/music_library_web/components/layouts.ex @@ -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] diff --git a/lib/music_library_web/components/pagination.ex b/lib/music_library_web/components/pagination.ex index 51d52ef1..b95bd3fb 100644 --- a/lib/music_library_web/components/pagination.ex +++ b/lib/music_library_web/components/pagination.ex @@ -28,7 +28,7 @@ defmodule MusicLibraryWeb.Pagination do "relative inline-flex items-center rounded-md border", "px-3 py-2 text-sm font-medium", "bg-zinc-900 hover:bg-zinc-700 dark:bg-zinc-100 dark:hover:bg-zinc-400", - "text-white active:text-white/80 dark:text-gray-900 dark:active:text-gray-900/80", + "text-white active:text-white/80 dark:text-zinc-900 dark:active:text-zinc-900/80", "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600" ]} > @@ -41,7 +41,7 @@ defmodule MusicLibraryWeb.Pagination do "relative ml-3 inline-flex items-center rounded-md border", "px-3 py-2 text-sm font-medium", "bg-zinc-900 hover:bg-zinc-700 dark:bg-zinc-100 dark:hover:bg-zinc-400", - "text-white active:text-white/80 dark:text-gray-900 dark:active:text-gray-900/80", + "text-white active:text-white/80 dark:text-zinc-900 dark:active:text-zinc-900/80", "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600" ]} > diff --git a/lib/music_library_web/controllers/session_html/new.html.heex b/lib/music_library_web/controllers/session_html/new.html.heex index 24269e54..c4dd8bc1 100644 --- a/lib/music_library_web/controllers/session_html/new.html.heex +++ b/lib/music_library_web/controllers/session_html/new.html.heex @@ -1,7 +1,7 @@
-

+

<%= gettext("Welcome to your Music Library") %>

@@ -19,10 +19,10 @@ "relative block w-full rounded-md border-0 py-1.5", "sm:text-sm sm:leading-6", "ring-1 ring-inset focus:z-10 focus:ring-2 focus:ring-inset", - "text-gray-900 dark:text-gray-200", + "text-zinc-900 dark:text-zinc-200", "dark:bg-zinc-700", - "ring-gray-200 dark:ring-gray-400", - "placeholder:text-gray-400 dark:placeholder:text-gray-400", + "ring-zinc-200 dark:ring-zinc-400", + "placeholder:text-zinc-400 dark:placeholder:text-zinc-400", "focus:ring-zinc-400 dark:focus:ring-zinc-300" ]} placeholder="Password" @@ -37,7 +37,7 @@ "flex w-full justify-center rounded-md", "bg-zinc-900 hover:bg-zinc-700 dark:bg-zinc-100 dark:hover:bg-zinc-400", "px-3 py-1.5 text-sm font-semibold leading-6", - "text-white dark:text-gray-900", + "text-white dark:text-zinc-900", "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600" ]} > diff --git a/lib/music_library_web/live/record_live/import_component.ex b/lib/music_library_web/live/record_live/import_component.ex index a3161e80..6acee0d9 100644 --- a/lib/music_library_web/live/record_live/import_component.ex +++ b/lib/music_library_web/live/record_live/import_component.ex @@ -30,7 +30,7 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do
    <.result :for={release_group <- @release_groups} release_group={release_group} />
@@ -48,7 +48,7 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do ~H"""
  • @release_group.id} - class="flex justify-between gap-x-6 py-5 hover:bg-gray-50 dark:hover:bg-zinc-700" + class="flex justify-between gap-x-6 py-5 hover:bg-zinc-50 dark:hover:bg-zinc-700" >
    @@ -94,7 +94,7 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do <.focus_wrap id={"actions-#{@release_group.id}"} class={[ - "hidden pointer-events-auto absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-zinc-800 py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none" + "hidden pointer-events-auto absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-zinc-800 py-2 shadow-lg ring-1 ring-zinc-900/5 focus:outline-none" ]} role="menu" aria-orientation="vertical" @@ -103,7 +103,7 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do > <.link :for={format <- Records.Record.formats()} - class="block px-3 py-1 text-sm leading-6 text-gray-900 dark:text-zinc-400 hover:bg-gray-50 dark:hover:text-zinc-300 dark:hover:bg-zinc-700" + class="block px-3 py-1 text-sm leading-6 text-zinc-900 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:text-zinc-300 dark:hover:bg-zinc-700" role="menuitem" tabindex="-1" id={"actions-#{@release_group.id}-#{format}-import"} @@ -124,7 +124,7 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do defp type_badge(assigns) do ~H""" - + <%= @type %> """ diff --git a/lib/music_library_web/live/record_live/index.html.heex b/lib/music_library_web/live/record_live/index.html.heex index 829f2294..94b2fa5b 100644 --- a/lib/music_library_web/live/record_live/index.html.heex +++ b/lib/music_library_web/live/record_live/index.html.heex @@ -29,7 +29,7 @@