Skip to content

Commit 40e9333

Browse files
committed
Remove hardcoded colors
1 parent 0fa7c90 commit 40e9333

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/lib/components/AlphabetStrip.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
{#each alphabet as letter}
1111
<button
1212
class="px-3 py-2 text-sm font-bold border rounded-md bg-gray-100 hover:bg-gray-200 cursor-pointer snap-start
13-
{activeLetter === letter ? 'bg-[#bb9ac2] border-black' : ''}
1413
sm:px-4 sm:py-3 sm:text-base
1514
md:px-5 md:py-4 md:text-base
1615
lg:px-6 lg:py-4 lg:text-lg"
16+
style={activeLetter === letter
17+
? 'background-color: var(--TitleBackgroundColor); border-color: black;'
18+
: ''}
1719
on:click={() => onLetterSelect(letter)}
1820
>
1921
{letter}

src/lib/components/WordNavigationStrip.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@
8484
}
8585
</script>
8686

87-
<div class="flex items-center justify-between bg-[#e1bee8] p-2 sticky top-0 z-10">
87+
<div
88+
class="flex items-center justify-between p-2"
89+
style="background-color: var(--TabBackgroundColor);"
90+
>
8891
<button
8992
class="flex items-center justify-center w-10 h-10 text-gray-700 hover:text-black disabled:opacity-50 disabled:cursor-not-allowed"
9093
on:click={goToPrevious}

0 commit comments

Comments
 (0)