Skip to content

Commit 1c70205

Browse files
committed
fix(ui): color mismatches
1 parent 7686613 commit 1c70205

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/lib/components/MDsvexRenderer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
8484
/* For inline code */
8585
:global(p code) {
86-
@apply bg-carbongray-400 px-1 py-0.5;
86+
@apply bg-carbongray-100 rounded-sm px-1 py-0.5;
8787
white-space: normal;
8888
word-wrap: break-word;
8989
overflow-wrap: break-word;

src/lib/components/TagBar.svelte

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts">
2-
import { afterNavigate, beforeNavigate } from '$app/navigation';
3-
import { Tags } from 'lucide-svelte';
4-
import { Button } from '$lib/components/ui/button';
5-
import { ScrollArea } from '$lib/components/ui/scroll-area/index.js';
2+
import { afterNavigate, beforeNavigate } from "$app/navigation";
3+
import { Tags } from "lucide-svelte";
4+
import { Button } from "$lib/components/ui/button";
5+
import { ScrollArea } from "$lib/components/ui/scroll-area/index.js";
66
77
export let tags;
88
let hidden = true;
@@ -21,12 +21,17 @@
2121
</Button>
2222

2323
<ScrollArea
24-
class={`${hidden ? 'hidden' : ''} fixed right-4 top-9 h-[500px] w-[200px] rounded-sm bg-carbongray-100 p-2 shadow`}
24+
class={`${hidden ? "hidden" : ""} fixed right-4 top-9 h-[500px] w-[200px] rounded-sm bg-carbongray-50 dark:bg-carbongray-700 p-2 shadow`}
2525
>
2626
<div class="flex flex-col justify-center gap-2 p-2">
2727
<div class="my-2 text-base font-bold">TAGS</div>
2828
{#each tags as tag (tag.name)}
29-
<div><a class="text-primary" href="/tags/{tag.name}">#{tag.name}</a></div>
29+
<div>
30+
<a
31+
class="text-primary hover:bg-carbongray-100 w-full p-1 rounded-sm dark:hover:bg-carbongray-600"
32+
href="/tags/{tag.name}">#{tag.name}</a
33+
>
34+
</div>
3035
{/each}
3136
</div>
3237
</ScrollArea>

0 commit comments

Comments
 (0)