@@ -35,7 +35,7 @@ entire application. The `color-scheme` is explicitly set to `light dark` so that
35
35
the end user's system preferences are used to determine whether the application
36
36
appears in light or dark mode.
37
37
38
- ```
38
+ ``` scss
39
39
@use ' @angular/material' as mat ;
40
40
41
41
html {
51
51
You can use the following styles to apply the theme’s surface background and
52
52
on-surface text colors as a default across your application:
53
53
54
- ```
54
+ ``` scss
55
55
body {
56
56
background : var (--mat-sys-surface );
57
57
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
105
105
color values will be set for the application. The typography is set to Roboto
106
106
with a standard density setting.
107
107
108
- ```
108
+ ``` scss
109
109
@use ' @angular/material' as mat ;
110
110
111
111
html {
@@ -150,7 +150,7 @@ and the Open Sans font family to brand text. It specifies that bold weight is
150
150
900, medium weight is 500, and regular weight is 300\. The color scheme uses the
151
151
violet color palette with a standard density.
152
152
153
- ```
153
+ ``` scss
154
154
@use ' @angular/material' as mat ;
155
155
156
156
html {
@@ -182,7 +182,7 @@ The following example theme file has a density setting of \-2 which causes most
182
182
components to include less whitespace in their layout. The color scheme uses the
183
183
violet color palette and applies Roboto as the font-family.
184
184
185
- ```
185
+ ``` scss
186
186
@use ' @angular/material' as mat ;
187
187
188
188
html {
@@ -234,7 +234,7 @@ builds custom color palettes based on a single color input for the primary
234
234
color, and optionally color inputs to further customize secondary, tertiary, and
235
235
neutral palettes:
236
236
237
- ```
237
+ ``` bash
238
238
ng generate @angular/material:theme-color
239
239
```
240
240
@@ -244,7 +244,7 @@ You can use Google Fonts as one option to load fonts in your application. For
244
244
example, the following code in an application’s ` <head> ` loads the font family
245
245
Roboto with the font weights 700, 500, and 400:
246
246
247
- ```
247
+ ``` html
248
248
<link rel =" preconnect" href =" https://fonts.googleapis.com" >
249
249
<link rel =" preconnect" href =" https://fonts.gstatic.com" crossorigin >
250
250
<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
268
268
define your application’s mode. To set the mode depending on the user’s system
269
269
preferences, use ` color-scheme: light-dark ` as shown in the following example:
270
270
271
- ```
271
+ ``` scss
272
272
@use ' @angular/material' as mat ;
273
273
274
274
html {
@@ -286,7 +286,7 @@ that the mode depends on whether that class has been applied. In the following
286
286
example, the application always displays the light mode theme unless the class
287
287
“dark-mode” is added to the HTML body.
288
288
289
- ```
289
+ ``` scss
290
290
@use ' @angular/material' as mat ;
291
291
292
292
html {
@@ -322,7 +322,7 @@ different contexts. In this case, a cyan-based palette is applied to a container
322
322
of information about deleting data, causing buttons and other components to have
323
323
a unique and attention-grabbing style applied:
324
324
325
- ```
325
+ ``` scss
326
326
@use ' @angular/material' as mat ;
327
327
328
328
html {
@@ -356,7 +356,7 @@ The following example styles demonstrate a component using the color and
356
356
typography variables to create an application-wide banner presenting important
357
357
information to the user:
358
358
359
- ```
359
+ ``` scss
360
360
:host {
361
361
background : var (--mat-sys-primary-container );
362
362
color : var (--mat-sys-on-primary-container );
@@ -389,7 +389,7 @@ the application.
389
389
The following example applies a violet color palette for the application, but
390
390
alters the ` primary-container ` token to a specific shade of blue.
391
391
392
- ```
392
+ ``` scss
393
393
@use ' @angular/material' as mat ;
394
394
395
395
html {
@@ -411,7 +411,7 @@ html {
411
411
Alternatively, an optional override map can be provided in the ` mat.theme ` mixin
412
412
to replace values applied by the mixin:
413
413
414
- ```
414
+ ``` scss
415
415
@use ' @angular/material' as mat ;
416
416
417
417
html {
@@ -439,7 +439,7 @@ The following example demonstrates the Card’s `overrides` API to change the
439
439
background color to red, increase the corner border radius, and specify a larger
440
440
title font size.
441
441
442
- ```
442
+ ``` scss
443
443
html {
444
444
@include mat .card-overrides ((
445
445
elevated- container- color: red ,
0 commit comments