Skip to content

feat(web): draw every AI platform's logo in one colour, centred and the same size, and show the Gemini mark for Google AI Mode - #1634

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/platform-logos-mono
Oct 28, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/platform-logos-mono

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Every AI platform's logo is now one colour (black on light, white in dark mode), centred and the same size, and Google AI Mode shows the Gemini mark. This was Ansvisor's request on 2026-10-28.

Before, the logos were mixed:

  • Gemini was a gradient, the Google G and Copilot were in colour, and Grok sat on its own black square.
  • ChatGPT was drawn white and inverted only in some places.
  • Each SVG had different padding, so the marks looked different sizes side by side.

Changes (web/src/components/ai-provider-avatar.tsx, the one component behind every platform logo):

  • Masks: each logo is drawn as a CSS mask in the text colour (bg-current, text-foreground by default, which a caller can change with className). So it's black on light surfaces and white in dark mode.
  • New SVGs in web/public/platforms/: chatgpt, claude, gemini, copilot, perplexity, grok and google, all single colour.
    • The path data is the existing files', unchanged.
    • Each viewBox is square and cut to the mark, so every logo sits centred at one size.
    • Grok's background square and the Gemini and Copilot colours are gone.
    • Perplexity's strokes are weighted (2.4) to match the solid marks at 12–20 px.
    • The G has a little room, so it doesn't read larger than the rest.
  • Google AI Mode shows the Gemini mark. AI Overview keeps the Google G.
  • Badge: a bordered bg-background circle with the logo at 60%. plain fills its box.
  • Removed: the ChatGPT invert / bg-black special cases and the coloured letter fallbacks. Meta AI keeps a letter badge, now neutral.
  • Unchanged: chart line colours per platform.
  • Old files: the old /public/*.svg logos are left in place but no longer referenced.

Related issue

None. Ansvisor's request (2026-10-28).

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. cd web && yarn vitest run src/components/ai-provider-avatar.test.tsx
  2. Open Mentions › Overview › By AI platform in light and dark mode. The eight logos are one colour, the same size and centred, and Google AI Mode shows the Gemini star.

Checked in the browser at 1024 px, light and dark, against the dev DB:

  • Mentions' "By AI platform" table shows all eight logos.
  • Every mark was also drawn at 64, 20 and 12 px on light and dark grounds. That's where Perplexity's thin strokes and the G's size were adjusted.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Also run in web/:

  • yarn format;
  • yarn lint (0 errors, the 7 earlier warnings);
  • yarn typecheck;
  • yarn test (4,350 tests);
  • yarn build.

🤖 Generated with Claude Code

…he same size, and show the Gemini mark for Google AI Mode

AIProviderAvatar draws each logo as a CSS mask in the text colour, so
logos are black on light surfaces and white in dark mode (text-foreground,
overridable with className). New single-colour SVGs in public/platforms
have square viewBoxes cut to each mark, so they sit centred at one size;
Grok's background square and the Gemini and Copilot colours are gone,
Perplexity's strokes are weighted to match, and the Google G has room so
it doesn't read larger. Google AI Mode shows the Gemini mark; AI Overview
keeps the G. The badge is a bordered background circle with the logo at
60%; the ChatGPT invert and the coloured letter fallbacks are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, with follow-ups.

Merge state. Clean on main. #1635 is built on this PR's commit, so once this one is squashed, #1635 needs main merged in again. The conflict there is in ai-provider-avatar.tsx and its test, and #1635's side is the one to keep.

Checked

  • Hosts. All seven marks are files in web/public/platforms/, served from our own origin. The proxy's matcher skips paths with a dot, so they aren't sent through the locale redirect. Nothing loads from another host, and the comment about remote favicon URLs is gone with the <img>.
  • The SVGs. One path each (four for Copilot), no scripts or links, and each viewBox is a square around the mark, so the marks sit centred at the same size. Perplexity is drawn with a stroke, which masks the same way.
  • Colour and dark mode. The mark is a CSS mask filled with bg-current, on text-foreground by default. It is black on light and white on dark, and a caller's text colour overrides it (tested). The round badge keeps bg-background and a border, so the mark stays readable in a selected chip or a row with a coloured background.
  • Names. The outer span keeps title and aria-label, and the mask span is aria-hidden. Meta AI keeps its letter badge, now in the same neutral style.
  • Callers. 19 call sites. Only the Positions sheet, the Improve tab and Settings › AI providers use plain. The OpenAI special case (invert, bg-black) is gone everywhere.
  • Tests. With main's ai-provider-avatar.tsx, 13 of the 14 new tests fail.

Follow-ups

  1. Give the badge a role. aria-label on a span with no role isn't read out by every screen reader. role="img" on the outer span makes the name dependable. This was already the case before this PR.
  2. High-contrast mode. In forced-colours mode (Windows High Contrast), the browser repaints backgrounds, so a mask filled with bg-current can disappear. forced-color-adjust: none on the mask span (Tailwind's forced-color-adjust-none), or forced-colors:bg-[CanvasText], keeps the mark visible.
  3. Old files. web/public/{chatgpt,claude,gemini,grok,copilot,perplexity,ai_overview,ai_mode}.svg are no longer used anywhere in the repo. They can be deleted, here or in a follow-up.

Before the API deploy. This is web only and doesn't depend on the API. Users see one-colour logos once it merges.

@gkhngyk
gkhngyk merged commit db0c526 into ansvisor:main Oct 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants