@@ -35,7 +35,7 @@ entire application. The `color-scheme` is explicitly set to `light dark` so that
3535the end user's system preferences are used to determine whether the application
3636appears in light or dark mode.
3737
38- ```
38+ ``` scss
3939@use ' @angular/material' as mat ;
4040
4141html {
5151You can use the following styles to apply the theme’s surface background and
5252on-surface text colors as a default across your application:
5353
54- ```
54+ ``` scss
5555body {
5656 background : var (--mat-sys-surface );
5757 color : var (--mat-sys-on-surface );
@@ -105,7 +105,7 @@ tertiary color. The theme-type is set to `light` which means that only the light
105105color values will be set for the application. The typography is set to Roboto
106106with a standard density setting.
107107
108- ```
108+ ``` scss
109109@use ' @angular/material' as mat ;
110110
111111html {
@@ -150,7 +150,7 @@ and the Open Sans font family to brand text. It specifies that bold weight is
150150900, medium weight is 500, and regular weight is 300\. The color scheme uses the
151151violet color palette with a standard density.
152152
153- ```
153+ ``` scss
154154@use ' @angular/material' as mat ;
155155
156156html {
@@ -182,7 +182,7 @@ The following example theme file has a density setting of \-2 which causes most
182182components to include less whitespace in their layout. The color scheme uses the
183183violet color palette and applies Roboto as the font-family.
184184
185- ```
185+ ``` scss
186186@use ' @angular/material' as mat ;
187187
188188html {
@@ -234,7 +234,7 @@ builds custom color palettes based on a single color input for the primary
234234color, and optionally color inputs to further customize secondary, tertiary, and
235235neutral palettes:
236236
237- ```
237+ ``` bash
238238ng generate @angular/material:theme-color
239239```
240240
@@ -244,7 +244,7 @@ You can use Google Fonts as one option to load fonts in your application. For
244244example, the following code in an application’s ` <head> ` loads the font family
245245Roboto with the font weights 700, 500, and 400:
246246
247- ```
247+ ``` html
248248<link rel =" preconnect" href =" https://fonts.googleapis.com" >
249249<link rel =" preconnect" href =" https://fonts.gstatic.com" crossorigin >
250250<link href =" https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:wght@400;500;700&display=swap" rel =" stylesheet" >
@@ -268,7 +268,7 @@ You can define `color-scheme: light` or `color-scheme: dark` to explicitly
268268define your application’s mode. To set the mode depending on the user’s system
269269preferences, use ` color-scheme: light-dark ` as shown in the following example:
270270
271- ```
271+ ``` scss
272272@use ' @angular/material' as mat ;
273273
274274html {
@@ -286,7 +286,7 @@ that the mode depends on whether that class has been applied. In the following
286286example, the application always displays the light mode theme unless the class
287287“dark-mode” is added to the HTML body.
288288
289- ```
289+ ``` scss
290290@use ' @angular/material' as mat ;
291291
292292html {
@@ -322,7 +322,7 @@ different contexts. In this case, a cyan-based palette is applied to a container
322322of information about deleting data, causing buttons and other components to have
323323a unique and attention-grabbing style applied:
324324
325- ```
325+ ``` scss
326326@use ' @angular/material' as mat ;
327327
328328html {
@@ -356,7 +356,7 @@ The following example styles demonstrate a component using the color and
356356typography variables to create an application-wide banner presenting important
357357information to the user:
358358
359- ```
359+ ``` scss
360360:host {
361361 background : var (--mat-sys-primary-container );
362362 color : var (--mat-sys-on-primary-container );
@@ -389,7 +389,7 @@ the application.
389389The following example applies a violet color palette for the application, but
390390alters the ` primary-container ` token to a specific shade of blue.
391391
392- ```
392+ ``` scss
393393@use ' @angular/material' as mat ;
394394
395395html {
@@ -411,7 +411,7 @@ html {
411411Alternatively, an optional override map can be provided in the ` mat.theme ` mixin
412412to replace values applied by the mixin:
413413
414- ```
414+ ``` scss
415415@use ' @angular/material' as mat ;
416416
417417html {
@@ -439,7 +439,7 @@ The following example demonstrates the Card’s `overrides` API to change the
439439background color to red, increase the corner border radius, and specify a larger
440440title font size.
441441
442- ```
442+ ``` scss
443443html {
444444 @include mat .card-overrides ((
445445 elevated- container- color: red ,
0 commit comments