From ca3c32c80462e769d8d9409effd9621dc25eadc7 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 16 Mar 2026 19:43:30 +0000 Subject: [PATCH] Add project convention around using the `icon` class --- docs/project-conventions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/project-conventions.md b/docs/project-conventions.md index 7717b9ea..46e260e7 100644 --- a/docs/project-conventions.md +++ b/docs/project-conventions.md @@ -33,6 +33,7 @@ Rules extracted from commit history that are specific to this project and not al - **Gettext wraps ALL user-facing strings.** Every commit that adds UI text must also update `.pot`/`.po` files. - **Dark mode always paired:** `text-zinc-900 dark:text-zinc-100`, `bg-zinc-50 dark:bg-zinc-800`. - **Wishlisted items get dimmed styling:** `opacity-60 hover:opacity-100 transition-opacity`. +- **Icons inside buttons use the `icon` class** instead of explicit size classes (`h-5 w-5`, `size-3.5`, etc.). The `icon` class is provided by Fluxon and auto-sizes icons based on the button's `size` prop. ## Routes / Navigation