feat: add dark mode with flowbite
This commit is contained in:
@ -15,8 +15,9 @@
|
||||
</script>
|
||||
|
||||
<button
|
||||
class="aspect-square rounded-4xl border border-gray-200"
|
||||
class:bg-cyan-500={selected}
|
||||
class="aspect-square rounded-4xl border border-gray-200 {selected
|
||||
? 'bg-primary-500 dark:bg-primary-500'
|
||||
: ''} {disabled ? 'bg-gray-200 dark:bg-gray-400' : ''}"
|
||||
class:bg-gray-200={disabled}
|
||||
class:cursor-pointer={!disabled}
|
||||
{onclick}
|
||||
@ -29,7 +30,7 @@
|
||||
<div class="flex flex-wrap justify-center space-y-2 space-x-2 md:flex-col">
|
||||
{#each annotations as nb (nb)}
|
||||
<div
|
||||
class="flex h-9 w-9 items-center justify-center rounded-full bg-emerald-300 p-1"
|
||||
class="bg-secondary-300 flex h-9 w-9 items-center justify-center rounded-full p-1 text-black"
|
||||
class:bg-white={selected}
|
||||
>
|
||||
{nb}
|
||||
|
Reference in New Issue
Block a user