Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: minor styling tweak #12

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/docs/examples/ButtonExamples.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<CardTitle>Shapes</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-wrap gap-1">
<div class="flex flex-wrap gap-4">
{#each shapes as shape}
<Button {shape} class="capitalize">{shape}</Button>
{/each}
Expand All @@ -30,7 +30,7 @@
<CardTitle>Colors</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-wrap gap-1">
<div class="flex flex-wrap gap-4">
{#each colors as color}
<Button {color} class="capitalize">{color}</Button>
{/each}
Expand All @@ -43,7 +43,7 @@
<CardTitle>Outline</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-wrap gap-1">
<div class="flex flex-wrap gap-4">
{#each colors as color}
<Button variant="outline" {color}>Button</Button>
{/each}
Expand All @@ -56,7 +56,7 @@
<CardTitle>Ghost</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-wrap gap-1">
<div class="flex flex-wrap gap-4">
{#each colors as color}
<Button variant="ghost" {color}>Button</Button>
{/each}
Expand All @@ -69,7 +69,7 @@
<CardTitle>Hero</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-wrap gap-1">
<div class="flex flex-wrap gap-4">
{#each colors as color}
<Button variant="hero" {color}>Button</Button>
{/each}
Expand All @@ -82,7 +82,7 @@
<CardTitle>Disabled</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-wrap gap-1">
<div class="flex flex-wrap gap-4">
{#each colors as color}
<Button {color} disabled>Button</Button>
{/each}
Expand All @@ -95,7 +95,7 @@
<CardTitle>Sizes</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-wrap gap-1">
<div class="flex flex-wrap gap-4">
{#each sizes as size}
<div>
<Button {size} class="capitalize">{size}</Button>
Expand All @@ -110,7 +110,7 @@
<CardTitle>Full width</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-col gap-1">
<div class="flex flex-col gap-4">
{#each colors as color}
<div>
<Button fullWidth {color}>Button</Button>
Expand Down
12 changes: 6 additions & 6 deletions src/docs/examples/CheckboxExamples.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<CardTitle>Colors</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-col gap-1">
<div class="flex flex-col gap-4">
{#each colors as color}
<div class="flex gap-1">
<div class="flex gap-4">
<Checkbox checked {color} />
<Checkbox {color} />
<Checkbox checked="indeterminate" {color} />
Expand All @@ -34,9 +34,9 @@
<CardTitle>Sizes</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-col gap-1">
<div class="flex flex-col gap-4">
{#each sizes as size}
<div class="flex gap-1">
<div class="flex gap-4">
<Checkbox checked {size} />
<Checkbox {size} />
<Checkbox checked="indeterminate" {size} />
Expand All @@ -51,9 +51,9 @@
<CardTitle>Shapes</CardTitle>
</CardHeader>
<CardBody>
<div class="flex flex-col gap-1">
<div class="flex flex-col gap-4">
{#each shapes as shape}
<div class="flex gap-1">
<div class="flex gap-4">
<Checkbox checked {shape} />
<Checkbox {shape} />
<Checkbox checked="indeterminate" {shape} />
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
variants: {
shape: {
rectangle: 'rounded-none',
'semi-round': 'rounded-lg',
'semi-round': 'rounded-xl',
round: 'rounded-full',
},
size: {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div
bind:this={ref}
class={cleanClass(
'rounded-lg border border-gray-300 bg-light text-dark shadow-lg dark:border-gray-600',
'rounded-2xl border border-gray-300 bg-light text-dark shadow-sm dark:border-gray-600',
className,
)}
{...restProps}
Expand Down