nextcloud / nextcloud/server

[RFC] Files mime icons theming

Open
#45,579 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

design enhancement feature: files feature: previews and thumbnails overview
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Since we updated a few mime icons (doc, spreadsheets, pdf, archives...), we stepped away from the themed mime icons to use either org-provided colors (like red for pdf, blue for docx...) or fallback to the standard grey #969696

I am not sure we benefit from supporting the svg coloring feature the mime API provides.
As of technical debt, I think we could deprecate and remove it.

cc @nextcloud/designers @nextcloud/server-frontend

Goal

The goal is to agree on a line to follow from here. If the design team is ok with this:

  1. if the mime is associated with a specific color, often provided by the org that created this file type, use it
  2. else, fallback to a default #969696 grey
  3. if folder, we always use the primary color

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or implementation entry points. Start by reviewing the current mime icon theming behavior and the design team's position on SVG coloring; done means agreeing on whether to deprecate the feature and documenting the color policy for mime types and folders.

Written by the indexing model from the issue text.

Assessment

Domain
design, frontend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.