Skip to content

Custom theming md-core() is not defined #3140

@MurhafSousli

Description

@MurhafSousli

Bug, feature request, or proposal:

bug

Which versions of Angular, Material, OS, browsers are affected?

angular 2.4.0, material 2.0.0-beta.2, Win 10, chrome

Is there anything else we should know?

I followed the guide for custom theme

@import '~@angular/material/core/theming/all-theme';

@include md-core();

$md-default: $font-color;
$md-action: $action-color;
$md-output: $output-color;

$candy-app-primary: md-palette($md-default);
$candy-app-accent: md-palette($md-action, A200, A100, A400);
$candy-app-warn: md-palette($md-output);
$candy-app-theme: md-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn);

@include angular-material-theme($candy-app-theme);

Error:

ERROR in ./~/css-loader?{"sourceMap":false}!./~/postcss-loader!./~/sass-loader!./src/styles.scss Module build failed: @include md-core(); ^ No mixin named md-core

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions