Skip to content

Remove the legacy icon-* classes (icons.css) #67413

Todo

Description

@skjnldsv

build/icons.mjs generates dist/icons.css (305 KB, loaded on every page) with icon-* classes that only switch between black and white. They've been deprecated since 25. The plan is to stop using them in server, deprecate the APIs that hand them out, then delete the file once apps had a release to migrate. Icons drawn as inline SVG or masks with currentColor replace them.

Related: nextcloud/standards#16 (long term icon system), #45579 (mime icon theming).

Server usages

Public APIs

Removal

  • Drop the --background-invert-if-* / --primary-invert-if-* variables
  • Drop build/icons.mjs and dist/icons.css (37 or later)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions