mui / mui/material-ui

[joy-ui] Allow extending the color inversion feature

Open
#41,510 2 comments 1 reaction 1 assignee View on GitHub

@siriwatknp is already working on this.

Since Mar 18, 2024.

customization: theme on hold package: joy-ui scope: all components waiting for 👍
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Summary

The color inversion feature is incredibly neat. Unfortunately it's not clear how to override it so that I can change how font colors change during an inversion, for example.

I have overriden the theme's neutral parameters (to make them darker / lighter depending on whether light/dark is enabled).

Unfortunately, the typography's colors remain default (I believe because of how the default theme works). In other words, the colors of the text is always white.

I was hoping to be able to invert black / white for one section of the page (using <Sheet />), but it seems impossible to do with this feature currently. Please let me know if I am failing to understand something.

Examples

See above.

Motivation

Invert black & white completely

Search keywords: color inversion

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.