Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Material Design - What does 'use the tint 700' mean?

I want my Android app to have its background color set as #F1F1F1. The Material design guidelines suggest 'The status bar should be the darker 700 tint of your primary color.' What does it mean ?

Should I use #(F1*0.7)(F1*0.7)(F1*0.7) as my status bar color ?

like image 458
Jeremie Vincke Avatar asked Nov 19 '14 19:11

Jeremie Vincke


People also ask

How do you define color in material UI?

Picking colors The Material Design team has also built an awesome palette configuration tool: material.io/resources/color/. This can help you create a color palette for your UI, as well as measure the accessibility level of any color combination.

What are material colors?

The Material Design color system supports alternative colors, which are colors used as alternatives to your brand's primary and secondary colors (they constitute additional colors to your theme). Alternative colors can be used to distinguish different sections of a UI.

How do you use colors in MUI?

import { green, purple } from "./colors"; import { ThemeProvider, createTheme } from "@mui/material/styles"; const theme = createTheme({ palette: { primary: { main: green[300], dark: green[500] }, secondary: { main: purple[600], dark: purple[800] } } });

What is Coloronsecondary?

colorPrimary and colorSecondary represent the colors of your brand colorPrimaryVariant and colorSecondaryVariant are lighter or darker shades of your brand colors colorSurface is used for “sheets” of material (like cards and bottom sheets) android:colorBackground is the window background color of your app colorError is ...


2 Answers

Look at the color palettes on the material design spec page (http://www.google.com/design/spec/style/color.html#color-color-palette). Each tint in a palette has a number—that's what the 700 refers to.

like image 129
JstnPwll Avatar answered Oct 20 '22 21:10

JstnPwll


There is actually an online tool you can use to generate a material palette from a custom color. Check it out: Material Design Palette Generator.

Your original color will be set as the 500 hue value.

Also, check out this question for a somewhat working calculation formula: Convert colorPrimary to colorPrimaryDark (how much darker)

Color.colorToHSV(colorPrimary, hsv);
hsv[2] *= 0.7f;
int colorPrimaryDark = Color.HSVToColor(hsv);

While testing, I noticed that changing the brightness value gets you close to the corresponding colorPrimaryDark, but it's not exactly the value that corresponds to the Google color palette.

The tool I mentioned in the beginning gets it right though.

like image 45
Bandreid Avatar answered Oct 20 '22 20:10

Bandreid