Skip to content

docs-bug(COMPONENT): Provide a way to generate prebuild different combination of theme #30113

Open
@bitrxjs

Description

@bitrxjs

Documentation Feedback

When looking at dist folder for M3 theme following themes are prebuilt

  • indigo-pink
  • deeppurple-amber
  • pink-bluegrey
  • purple-green
  • azure-blue
  • rose-red
  • cyan-orange
  • magenta-violet

provide a different way to build a different combination. For eg.

  • pink-indigo

Directly using

html {
  @include mat.theme((
    color: (
      primary: mat.$pink-palette,
      tertiary: mat.$indigo-palette,
      theme-type: light,
    ),
    typography: Roboto,
    density: 0
  ));
}

break ui on some older mobile browser due light-dark css function and using the css in angular json provides more compatibility.

Affected documentation page

https://material.angular.io/guide/theming

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions