Skip to content

feat(frontend): brand the favicon and page metadata - #319

Merged
nourshoreibah merged 1 commit into
mainfrom
ns/favicon-branch-tree
Aug 12, 2026
Merged

feat(frontend): brand the favicon and page metadata#319
nourshoreibah merged 1 commit into
mainfrom
ns/favicon-branch-tree

Conversation

@nourshoreibah

Copy link
Copy Markdown
Collaborator

Summary

Browser tabs still showed the create-next-app icon, title and description. This swaps in BRANCH branding.

  • Favicon — now the tree from the sidebar (public/branch-logo.png), composited onto the sidebar's brand green (#2E6038). The artwork is white line work on transparency, so left as-is it would be invisible against a light tab.
  • TitleCreate Next App becomes BRANCH.
  • DescriptionGenerated by create next app becomes Accounting platform for BRANCH. This one shows up in link previews and search results, so it was worth more than a placeholder.

No code change was needed to register the icon: Next's App Router picks up app/favicon.ico automatically, and file-based metadata routes get the preview basePath prefix for free.

On the small renditions

The .ico carries 256/48/32/16px images. The small ones are not plain downscales — shrinking the hairline strokes smears them into faint partial alpha, which renders as grey mush rather than a tree. Each small size is levels-corrected on the alpha mask: low alpha is pushed back to transparent so the gaps between leaves reopen, high alpha is driven to solid white so the branches stay crisp. 16px is tuned for a readable silhouette instead, since a leaf is well under a pixel there.

The 256px entry is listed first so Next advertises sizes="256x256" rather than 16x16, which matters on retina displays where a 16px hint gets upscaled into a blurry tab icon.

Test plan

  • npm run dev in apps/frontend, hard-reload (Cmd+Shift+R — browsers cache favicons aggressively) and confirm the tab shows the green tree icon and the title BRANCH
  • View /favicon.ico directly and confirm it is the tree, not the Next.js logo
  • Confirm the rendered HTML has <title>BRANCH</title> and the BRANCH description meta tag
  • npm run build still exports cleanly

Made with Cursor

Tabs still showed the create-next-app icon, title and description. The
favicon is now the sidebar tree from public/branch-logo.png, composited
onto the sidebar's brand green because the artwork is white line work on
transparency and would otherwise be invisible against a light tab.

The .ico carries 256/48/32/16px renditions. The small ones are not plain
downscales: hairline strokes shrink into faint partial alpha, so each is
levels-corrected to reopen the gaps between leaves and drive the stroke
cores opaque, keeping the tree readable at tab size.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions
github-actions Bot requested review from Rayna-Yu and mehanana August 12, 2026 03:48
github-actions Bot added a commit that referenced this pull request Aug 12, 2026
@nourshoreibah nourshoreibah added the no-review The PR review bot won't run label Aug 12, 2026
github-actions Bot added a commit that referenced this pull request Aug 12, 2026
@nourshoreibah
nourshoreibah merged commit 481c478 into main Aug 12, 2026
20 checks passed
@nourshoreibah
nourshoreibah deleted the ns/favicon-branch-tree branch August 12, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-review The PR review bot won't run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant