Add the dark theme for core component texts.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 3 months ago
parent 6f47e58a30
commit f2a6af8366

@ -495,7 +495,7 @@ defmodule DecentralisedBookIndexWeb.CoreComponents do
<h1 class="text-lg font-semibold leading-8 text-zinc-800 dark:text-white">
{render_slot(@inner_block)}
</h1>
<p :if={@subtitle != []} class="mt-2 text-sm leading-6 text-zinc-600">
<p :if={@subtitle != []} class="mt-2 text-sm leading-6 text-zinc-600 dark:text-white">
{render_slot(@subtitle)}
</p>
</div>
@ -601,8 +601,8 @@ defmodule DecentralisedBookIndexWeb.CoreComponents do
<div class="mt-14">
<dl class="-my-4 divide-y divide-zinc-100">
<div :for={item <- @item} class="flex gap-4 py-4 text-sm leading-6 sm:gap-8">
<dt class="w-1/4 flex-none text-zinc-500">{item.title}</dt>
<dd class="text-zinc-700">{render_slot(item)}</dd>
<dt class="w-1/4 flex-none text-zinc-500 dark:text-white">{item.title}</dt>
<dd class="text-zinc-700 dark:text-white">{render_slot(item)}</dd>
</div>
</dl>
</div>

Loading…
Cancel
Save