feat: tweak color

This commit is contained in:
Xyphyn committed 2023-07-29 12:40:06 -07:00
1 parent a72ce72f7f
commit e2c08d1806
4 files changed
+44 -20

No files matched your search

+3 -3
View File
@@ -15,15 +15,15 @@
<div
class="flex overflow-hidden flex-row items-center max-w-full w-max bg-slate-100
rounded-lg dark:bg-zinc-900 gap-1 p-1 border border-slate-200 dark:border-zinc-800 flex-wrap"
rounded-lg dark:bg-zinc-900 gap-1 p-1 border border-slate-200 dark:border-zinc-800 flex-wrap"
>
{#each options as option, index}
<button
class="px-3 py-1.5 text-sm rounded-md
transition-colors
{selected == option
? 'bg-black text-white dark:bg-white dark:text-black\
hover:bg-zinc-900 hover:dark:bg-zinc-300'
? 'bg-slate-900 text-slate-50 dark:bg-zinc-100 dark:text-black\
hover:bg-slate-800 hover:dark:bg-zinc-300'
: ' hover:bg-slate-200 hover:dark:bg-zinc-800'}
{clazz}
disabled:opacity-60 disabled:pointer-events-none"