feat: color overhaul
This commit is contained in:
1 parent
8fc452951b
commit
e5fbf7493c
22 files changed
+234
-243
No files matched your search
@@ -2,12 +2,20 @@
|
||||
import { Material } from 'mono-svelte'
|
||||
</script>
|
||||
|
||||
<Material padding="lg" class="flex flex-col gap-3 my-2">
|
||||
<h1 class="font-bold"><slot name="title" /></h1>
|
||||
{#if $$slots.description}
|
||||
<p class="text-slate-700 dark:text-zinc-300">
|
||||
<slot name="description" />
|
||||
</p>
|
||||
<Material color="distinct" padding="none" class="my-2">
|
||||
<div class="px-5 pt-5 flex flex-col gap-3" class:pb-5={!$$slots.default}>
|
||||
<h1 class="font-bold text-lg"><slot name="title" /></h1>
|
||||
{#if $$slots.description}
|
||||
<p class="text-slate-800 dark:text-zinc-200">
|
||||
<slot name="description" />
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
{#if $$slots.default}
|
||||
<div
|
||||
class="w-full px-5 py-3 bg-slate-50 dark:bg-zinc-950 border-t dark:border-zinc-800 mt-4"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
<slot />
|
||||
</Material>
|
||||
Reference in new issue
Block a user