You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Using the command below will install Angular Material, the <ahref="https://material.angular.dev/cdk">Component Dev Kit</a> (CDK),
11
11
and <ahref="https://angular.dev/guide/animations">Angular Animations</a> in your project. Then it will run the
12
12
installation schematic.</p>
13
-
<pre><code>ng add @angular/material</code></pre><p>In case you just want to install the <code>@angular/cdk</code>, there are also schematics for the <ahref="https://material.angular.dev/cdk">Component Dev Kit</a></p>
14
-
<pre><code>ng add @angular/cdk</code></pre><p>The Angular Material <code>ng add</code> schematic helps you set up an Angular CLI project that uses Material. Running <code>ng add</code> will:</p>
13
+
<pre><codeclass="language-bash">ng add @angular/material</code></pre><p>In case you just want to install the <code>@angular/cdk</code>, there are also schematics for the <ahref="https://material.angular.dev/cdk">Component Dev Kit</a></p>
14
+
<pre><codeclass="language-bash">ng add @angular/cdk</code></pre><p>The Angular Material <code>ng add</code> schematic helps you set up an Angular CLI project that uses Material. Running <code>ng add</code> will:</p>
15
15
<ul>
16
16
<li>Ensure <ahref="guide/getting-started#step-1-install-angular-material-angular-cdk-and-angular-animations">project dependencies</a> are placed in <code>package.json</code></li>
17
17
<li>Add either a prebuilt theme or a custom theme</li>
<p>The <code>theme-color</code> schematic will generate a file with Material 3 palettes from the specified colors
129
129
that can be used in a theme file. It also generates high contrast color override mixins if
130
130
specified.</p>
131
-
<pre><code>ng generate @angular/material:theme-color</code></pre><p>Learn more about this schematic in its <ahref="https://github.com/angular/components/blob/main/src/material/schematics/ng-generate/theme-color/README.md">documentation</a>.</p>
131
+
<pre><codeclass="language-bash">ng generate @angular/material:theme-color</code></pre><p>Learn more about this schematic in its <ahref="https://github.com/angular/components/blob/main/src/material/schematics/ng-generate/theme-color/README.md">documentation</a>.</p>
0 commit comments