Skip to content

Document hue options available for mat-color sass function #9539

@KlausHans

Description

@KlausHans

Bug, feature request, or proposal:

proposal: Improve documentation for theming

What is the expected behavior?

I find all informations i need in the material documentation regarding the theming feature, especially for custom components.

What is the current behavior?

I don't find all informations i need. Some examples

  • how do i use the correct contrast value to a corresponding value of a palette? I only know
    color: mat-color($app-primary, default-contrast)
    but when i use
    background-color: mat-color($app-primary, 50)
    and the default-contrast is white, i have white text on a bright background
  • how to theme existing components in depth
  • how to theme a input if i use it in the toolbar (default input is black, this often doesn't fit in a toolbar)
  • best practices how to structure theming in the project
  • best practice: what should go in my theme.scss, what belongs to a component.css, what in the styles.(s)css?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsdocsThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions