mui / mui/material-ui

[material-ui][docs] How to find out where all colors are defined?

Open
#35,530 4 comments 0 reactions 1 assignee View on GitHub

@mnajdova is already working on this.

Since Dec 19, 2022.

customization: theme docs scope: all components support: question
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Summary 💡

Hi there 👋

We are working on customizing the Material UI theme.
To do this job, we already modified the values of colors, borders, shadows, etc. but we have some problems with the colors in particular.

We already changed all the definitions in the pallet.ts file, but, when we tried it out, we found out that there are more complex color settings.

We think those colors come from taking one of the previous colors and having applied a transparent white or black (at different percentages).

Can you help us find where those colors are defined, so we can replicate correctly each component on Figma?

We are already working with the MUI for Figma file, and for example, with the Alert component, there are many color shades, and all of those use the main color + black/white at 60/90%, but when we use the code, the alert rendered uses the lighter value too, not only the main one.

There are some other colors that we are missing too, like:

  • Actions active
  • Standard Input Line
  • Filled input background

Hope you can help us.

Greetings from Membrane

Examples 🌈

No response

Motivation 🔦

No response

Order ID 💳 (optional)

55430

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.