Skip to content

Commit 75dcded

Browse files
refactor: update component styles for improved consistency and visual hierarchy
- Adjusted border colors in various components for better contrast and consistency. - Simplified class structures by removing unnecessary transition effects. - Enhanced hover effects and text visibility across multiple components.
1 parent dc93d94 commit 75dcded

11 files changed

Lines changed: 15 additions & 17 deletions

File tree

src/lib/components/about/row.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
let { label, value, description, children }: Props = $props();
1212
</script>
1313

14-
<div class="flex flex-col w-full bg-neutral-900/50 border border-neutral-900 rounded-lg overflow-hidden">
14+
<div class="flex flex-col w-full bg-neutral-900/50 border border-neutral-800 rounded-lg overflow-hidden">
1515
<div class="flex flex-col gap-0.5 p-3">
1616
<span class="text-neutral-200 font-medium text-xs">{label}</span>
1717
{#if description}
1818
<span class="text-neutral-500 text-xs leading-tight">{description}</span>
1919
{/if}
2020
</div>
21-
<div class="flex items-center justify-start px-3 py-2 bg-neutral-950/30 border-t border-neutral-900">
21+
<div class="flex items-center justify-start px-3 py-2 bg-neutral-950/30 border-t border-neutral-800">
2222
<span class="text-neutral-400 font-mono text-xs">
2323
{#if value}
2424
{value}

src/lib/components/credits/credit.svelte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717
{href}
1818
target="_blank"
1919
rel="noreferrer"
20-
class="group flex items-center gap-2.5 bg-neutral-900/50 hover:bg-neutral-900 px-3 py-2 rounded-lg border border-neutral-900 transition-all hover:border-yellow-400/30"
20+
class="flex items-center gap-2.5 bg-neutral-900 px-3 py-2 rounded-lg border border-neutral-800 hover:border-yellow-400/30"
2121
>
22-
<div class="text-neutral-400 group-hover:text-white transition-colors">
22+
<div class="text-neutral-400">
2323
<Icon name={icon} />
2424
</div>
2525
<div class="flex flex-col items-start gap-0.5 text-left">
26-
<span
27-
class="font-medium text-sm text-neutral-200 group-hover:text-white transition-colors"
28-
>
26+
<span class="font-medium text-sm text-neutral-200">
2927
{label}
3028
</span>
3129
<span class="text-xs text-neutral-500">{description}</span>

src/lib/components/nav/link.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a
1616
{href}
1717
class={cn(
18-
"text-xs text-neutral-500 hover:text-yellow-400 transition-colors",
18+
"text-xs text-neutral-500 hover:text-yellow-400",
1919
className
2020
)}
2121
>

src/lib/components/page/link.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{target}
2020
{rel}
2121
class={cn(
22-
"text-neutral-400 hover:text-yellow-400 underline underline-offset-4 decoration-neutral-800 hover:decoration-neutral-500 transition-colors",
22+
"text-neutral-400 hover:text-yellow-400 underline underline-offset-4 decoration-neutral-800 hover:decoration-neutral-500",
2323
className
2424
)}
2525
>

src/lib/components/sort/option.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<button
1818
class={cn(
19-
"flex items-center justify-between px-4 py-3 text-sm rounded-lg transition-colors w-full",
19+
"flex items-center justify-between px-4 py-3 text-sm rounded-lg w-full",
2020
sort.key === col.key
2121
? "bg-yellow-400/10 text-yellow-400 font-medium"
2222
: "text-neutral-400 hover:bg-neutral-900/50 hover:text-neutral-200"

src/lib/components/sort/sort.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<Option {col} {sort} {onsort} />
3333
{/each}
3434
</div>
35-
<Drawer.Close class="w-full bg-neutral-900 p-3 rounded-lg text-neutral-300 font-medium hover:bg-neutral-800 transition-colors">
35+
<Drawer.Close class="w-full bg-neutral-900 p-3 rounded-lg text-neutral-300 font-medium hover:bg-neutral-800">
3636
Done
3737
</Drawer.Close>
3838
</div>

src/lib/components/sort/trigger.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</script>
1616

1717
<Drawer.Trigger
18-
class="w-full flex items-center justify-between px-4 py-3 text-sm bg-transparent text-neutral-300 hover:bg-neutral-900/80 transition-colors focus:outline-none"
18+
class="w-full flex items-center justify-between px-4 py-3 text-sm bg-transparent text-neutral-300 hover:bg-neutral-900/80 focus:outline-none"
1919
>
2020
<span class="flex items-center gap-2">
2121
<span class="font-medium text-neutral-200">{label}</span>

src/lib/components/table/head.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{#each columns as col}
2222
<th
2323
class={cn(
24-
"sticky top-0 z-10 bg-neutral-950 border-b border-neutral-900 px-4 py-4 font-medium transition-colors cursor-pointer hover:text-white select-none group uppercase tracking-wider text-xs",
24+
"sticky top-0 z-10 bg-neutral-950 border-b border-neutral-900 px-4 py-4 font-medium cursor-pointer hover:text-white select-none group uppercase tracking-wider text-xs",
2525
col.class
2626
)}
2727
onclick={() => onsort(col.key)}
@@ -38,7 +38,7 @@
3838
<ChevronDown class="w-3 h-3 text-yellow-400 shrink-0" />
3939
{/if}
4040
{:else}
41-
<ChevronsUpDown class="w-3 h-3 text-neutral-600 group-hover:text-neutral-400 transition-colors shrink-0" />
41+
<ChevronsUpDown class="w-3 h-3 text-neutral-600 group-hover:text-neutral-400 shrink-0" />
4242
{/if}
4343
</div>
4444
</th>

src/lib/components/table/row.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
let { row, columns, type, ...rest }: Props = $props();
1717
</script>
1818

19-
<tr class="group hover:bg-yellow-400/5 transition-colors" {...rest}>
19+
<tr class="group hover:bg-yellow-400/5" {...rest}>
2020
{#each columns as col}
2121
<StoreItem {row} {col} />
2222
{/each}

src/lib/components/ui/badge.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<span
3030
class={cn(
31-
"inline-flex items-center rounded px-1.5 py-0.5 text-[10px] font-medium border transition-colors focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:ring-offset-2",
31+
"inline-flex items-center rounded px-1.5 py-0.5 text-[10px] font-medium border focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:ring-offset-2",
3232
variants[variant],
3333
className
3434
)}

0 commit comments

Comments
 (0)