Skip to content

feat(components): Require indigo-palette to be used in m3 styles #29089

@kai1992cool

Description

@kai1992cool

Feature Description

$indigo-palette does not seem to be usable with m3 when I tried the below code

$m3-dark-theme: matx.define-theme(
  (
    color: (
      theme-type: dark,
      primary: matx.$m3-indigo-palette,
      tertiary: matx.$m3-blue-palette,
    ),
  )
);

I get an error!

./src/theme.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Undefined variable.
  ╷
8 │       primary: matx.$m3-indigo-palette,
  │                ^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  src/theme.scss 8:16  root stylesheet

Stackblitz Demo

Use Case

Indigo palette is one of the common styles used by angular, so it has to be there in m3 right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fixneeds triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions