@material/theme
Advanced tools
Comparing version 0.25.0 to 0.27.0
{ | ||
"name": "@material/theme", | ||
"description": "The Material Components for the web theming system", | ||
"version": "0.25.0", | ||
"version": "0.27.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -239,1 +239,17 @@ <!--docs: | ||
``` | ||
#### `mdc-theme-accessible-ink-color($fill-color, $text-style: primary)` | ||
Returns an accessible ink color that has sufficient contrast against the given fill color. | ||
Params: | ||
- `$fill-color`: Supports the same values as `mdc-theme-prop-value` | ||
- `$text-style`: Value must be one of `primary`, `secondary`, `hint`, `disabled`, `icon` (see `$mdc-theme-text-colors`) | ||
> NOTE: This function is defined in `_variables.scss` instead of `_functions.scss` to avoid circular imports. | ||
```scss | ||
@debug mdc-theme-accessible-ink-color(secondary); // rgba(0, 0, 0, .87) (text-primary-on-light) | ||
@debug mdc-theme-accessible-ink-color(blue); // white (text-primary-on-dark) | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74785
255