From a8b0d3c722dc0002f091b4648313b1d0327f4ef2 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Thu, 23 Apr 2026 16:05:19 +0200 Subject: [PATCH] style(recipes): swap heart emoji for lucide icon Replaces heart/black-heart emoji on the favorite button and the card favorite indicators with the lucide Heart icon. Favorited state uses a vivid #ff2d55 fill with layered drop-shadows so the mark reads against colorful recipe photos; unfavorited button shows an outlined white heart. --- package.json | 2 +- src/lib/components/FavoriteButton.svelte | 24 +++++++++++++------ src/lib/components/recipes/Card.svelte | 16 +++++++++---- src/lib/components/recipes/CompactCard.svelte | 13 ++++++---- 4 files changed, 38 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 91c888d4..c5eeb96f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homepage", - "version": "1.46.27", + "version": "1.46.28", "private": true, "type": "module", "scripts": { diff --git a/src/lib/components/FavoriteButton.svelte b/src/lib/components/FavoriteButton.svelte index c43f7df1..0f9eace2 100644 --- a/src/lib/components/FavoriteButton.svelte +++ b/src/lib/components/FavoriteButton.svelte @@ -2,6 +2,7 @@ import { browser } from '$app/environment'; import { enhance } from '$app/forms'; import { page } from '$app/stores'; + import Heart from '@lucide/svelte/icons/heart'; let { recipeId, isFavorite = $bindable(false), isLoggedIn = false } = $props<{ recipeId: string, isFavorite?: boolean, isLoggedIn?: boolean }>(); @@ -44,21 +45,28 @@