Skip to content

docs(theming): add docs about the tokens / CSS variables used for theming #26847

Closed
@ChrTall

Description

@ChrTall

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: themingdocsThis issue is related to documentationfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions