styles
v4.9.10arrow_drop_downReturns a number whose value is limited to the given range.
Converts a color from CSS hex format to CSS rgb format.
Converts a color from CSS rgb format to CSS hex format.
Converts a color from hsl format to rgb format.
Returns an object with the type and values of a color.
Note: Does not support rgb % values.
Converts a color object with type and values to a string.
Calculates the contrast ratio between two colors.
Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
The relative brightness of any point in a color space, normalized to 0 for darkest black and 1 for lightest white.
Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
Darken or lighten a color, depending on its luminance. Light colors are darkened, dark colors are lightened.
Set the absolute transparency of a color. Any existing alpha values are overwritten.
Darkens a color.
Lightens a color.
generate a responsive version of a given CSS property
makeStyles
where the passed styles
do not depend on props
makeStyles
where the passed styles
do depend on props
Adapter for StyleRules
from @material-ui/styles
for backwards compatibility.
Order of generic arguments is just reversed.
TODO: to normalize in v5
Deprecated. Will be removed in v5. Refs are now automatically forwarded to the inner component.