Skip to content

feat(files): a color and an icon per kind of file - #112

Merged
httpsphl merged 1 commit into
mainfrom
feat/file-kind-colors
Oct 2, 2026
Merged

httpsphl merged 1 commit into
mainfrom
feat/file-kind-colors

Conversation

@httpsphl

@httpsphl httpsphl commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

In a bot's files panel every file had the same grey icon, so a Word document, a sheet and a PDF looked alike. Now each kind gets its own icon in a tile of its own color:

  • PDF red, Word blue, sheet green, slides orange
  • image purple, audio and video pink, archive amber, code teal
  • text and anything else stay grey

Colors live in files.css, with their own values for the dark theme. The kind comes from the extension first (old .doc/.xls/.ppt, OpenDocument and most media arrive as application/octet-stream), then from the media type. Spec 15.1 updated.

Checked in the preview in both themes. No real Claude needed.

Word documents are blue, sheets green, PDFs red, slides orange, images
purple, audio and video pink, archives amber and code teal, each in a
tinted tile, so the list reads at a glance. The kind comes from the
extension first, since old Office and OpenDocument files arrive as
octet-stream.
@httpsphl
httpsphl merged commit ae97719 into main Oct 2, 2026
4 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.

1 participant