docs(theming): add docs about the tokens / CSS variables used for theming #26847
Labels
area: theming
docs
This issue is related to documentation
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P4
A relatively minor issue that is not relevant to core functions
Documentation Feedback
When following the guide theming-your-components I can succesfully create a partial scss file to theme my custom implementation of a Card component that should be styled like the Material Card.
For the background I access:
$background-palette: map-get($color-config, background); $background-color: mat.get-color-from-palette($background-palette, background); $background-card-color: mat.get-color-from-palette($background-palette, card);
So far when the user switches to a dark theme the background color changes like in material cards.
However the border of outlined material cards has a CSS Variable value for its color.
On light themes the value is #e0e0e0 for me. On Dark Themes it is #595959.
The Variable is: --mdc-outlined-card-outline-color
It would be nice if the docs could explain how I can apply these border color values to my component via the sass theming api / partial _my-comp.component-theme.scss file.
Affected documentation page
https://material.angular.io/guide/theming-your-components
The text was updated successfully, but these errors were encountered: