Skip to content

Commit 2e4c6f5

Browse files
style: improve light mode look
1 parent 0fcf12d commit 2e4c6f5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/routes/package/[...package]/ReleaseCard.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@
137137

138138
<Accordion.Item
139139
value={release.id.toString()}
140-
class={["border-b-0", { "rounded-xl border border-primary": isMajorRelease && index < 3 }]}
140+
class={[
141+
"rounded-xl border-b-0 shadow-lg outline outline-transparent transition-colors duration-300 data-[state=open]:outline-muted-foreground/20",
142+
{ "rounded-xl border border-primary": isMajorRelease && index < 3 }
143+
]}
141144
>
142145
<Accordion.Trigger
143146
class="group rounded-t-xl bg-secondary px-4 py-3 hover:bg-secondary/75 hover:no-underline data-[state=closed]:rounded-b-xl"

src/routes/package/[...package]/SidePanel.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
});
3636
</script>
3737

38-
<div class={cn("flex flex-col *:shadow-lg *:shadow-black", className)}>
38+
<div class={cn("flex flex-col *:shadow-lg dark:*:shadow-black", className)}>
3939
<Card.Root class="z-10 border border-muted-foreground/25 bg-secondary">
4040
<Card.Header class="flex-row items-start justify-between">
4141
<Card.Title class="font-display">Packages</Card.Title>

src/routes/packages/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<li>
1818
<a
1919
href="/package/{pkg.name}"
20-
class="group flex items-center rounded-xl px-4 py-3 transition-colors hover:bg-neutral-800"
20+
class="group flex items-center rounded-xl px-4 py-3 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-800"
2121
>
2222
<div class="flex flex-col">
2323
<h4 class="font-medium">{pkg.name}</h4>

0 commit comments

Comments
 (0)