@@ -24,18 +24,18 @@ <h1>Colors</h1>
24
24
colors and follow their uses to add theme colors to your application's custom components.
25
25
</ p >
26
26
< p >
27
- Note that variables starting with "mat-app -on-*" are designed to be used for text or icons
28
- placed on top of its paired parent color. For example, < span class ="demo-surface-variable "> --mat-app -on-primary</ span >
29
- is used for text and icons in elements filled with the < span class ="demo-surface-variable "> --mat-app -primary</ span > color.
27
+ Note that variables starting with "-- mat-sys -on-*" are designed to be used for text or icons
28
+ placed on top of its paired parent color. For example, < span class ="demo-surface-variable "> --mat-sys -on-primary</ span >
29
+ is used for text and icons in elements filled with the < span class ="demo-surface-variable "> --mat-sys -primary</ span > color.
30
30
</ p >
31
31
32
32
< div class ="demo-group ">
33
33
< div class ="demo-color-container ">
34
34
< div class ="demo-heading "
35
- [style.background-color] ="'var(--mat-app -primary)' "
36
- [style.color] ="'var(--mat-app -on-primary)' ">
35
+ [style.background-color] ="'var(--mat-sys -primary)' "
36
+ [style.color] ="'var(--mat-sys -on-primary)' ">
37
37
< div class ="demo-name "> Primary</ div >
38
- < div class ="demo-variable demo-code "> --mat-app -primary</ div >
38
+ < div class ="demo-variable demo-code "> --mat-sys -primary</ div >
39
39
</ div >
40
40
< div class ="demo-description ">
41
41
< p >
@@ -48,7 +48,7 @@ <h1>Colors</h1>
48
48
outline color of form fields.
49
49
</ p >
50
50
< p >
51
- Use the color < span class ="demo-surface-variable "> --mat-app -on-primary</ span > for
51
+ Use the color < span class ="demo-surface-variable "> --mat-sys -on-primary</ span > for
52
52
icons, text, and other visual elements placed on a primary background. This
53
53
color is calculated to be optimal for accessibility and legibility.
54
54
</ p >
@@ -57,10 +57,10 @@ <h1>Colors</h1>
57
57
58
58
< div class ="demo-color-container ">
59
59
< div class ="demo-heading "
60
- [style.background-color] ="'var(--mat-app -surface)' "
61
- [style.color] ="'var(--mat-app -on-surface)' ">
60
+ [style.background-color] ="'var(--mat-sys -surface)' "
61
+ [style.color] ="'var(--mat-sys -on-surface)' ">
62
62
< div class ="demo-name "> Surface</ div >
63
- < div class ="demo-variable code "> --mat-app -surface</ div >
63
+ < div class ="demo-variable code "> --mat-sys -surface</ div >
64
64
</ div >
65
65
< div class ="demo-description ">
66
66
< p >
@@ -72,7 +72,7 @@ <h1>Colors</h1>
72
72
components such as the dialog, card, table, and more.
73
73
</ p >
74
74
< p >
75
- Use the color < span class ="demo-surface-variable "> --mat-app -on-surface</ span > for
75
+ Use the color < span class ="demo-surface-variable "> --mat-sys -on-surface</ span > for
76
76
icons, text, and other visual elements placed on a surface background. This
77
77
color is calculated to be optimal for accessibility and legibility.
78
78
</ p >
@@ -81,10 +81,10 @@ <h1>Colors</h1>
81
81
82
82
< div class ="demo-color-container ">
83
83
< div class ="demo-heading "
84
- [style.background-color] ="'var(--mat-app -error)' "
85
- [style.color] ="'var(--mat-app -on-error)' ">
84
+ [style.background-color] ="'var(--mat-sys -error)' "
85
+ [style.color] ="'var(--mat-sys -on-error)' ">
86
86
< div class ="demo-name "> Error</ div >
87
- < div class ="demo-variable demo-code "> --mat-app -error</ div >
87
+ < div class ="demo-variable demo-code "> --mat-sys -error</ div >
88
88
</ div >
89
89
< div class ="demo-description ">
90
90
< p >
@@ -95,7 +95,7 @@ <h1>Colors</h1>
95
95
form fields inputs.
96
96
</ p >
97
97
< p >
98
- Use the color < span class ="demo-surface-variable "> --mat-app -on-error</ span > for
98
+ Use the color < span class ="demo-surface-variable "> --mat-sys -on-error</ span > for
99
99
icons, text, and other visual elements placed on an error background. This
100
100
color is calculated to be optimal for accessibility and legibility.
101
101
</ p >
@@ -104,10 +104,10 @@ <h1>Colors</h1>
104
104
105
105
< div class ="demo-color-container ">
106
106
< div class ="demo-heading "
107
- [style.background-color] ="'var(--mat-app -outline)' "
108
- [style.color] ="'var(--mat-app -surface)' ">
107
+ [style.background-color] ="'var(--mat-sys -outline)' "
108
+ [style.color] ="'var(--mat-sys -surface)' ">
109
109
< div class ="demo-name "> Outline</ div >
110
- < div class ="demo-variable demo-code "> --mat-app -outline </ div >
110
+ < div class ="demo-variable demo-code "> --mat-sys -outline </ div >
111
111
</ div >
112
112
< div class ="demo-description ">
113
113
< p >
@@ -119,7 +119,7 @@ <h1>Colors</h1>
119
119
form field.
120
120
</ p >
121
121
< p >
122
- Use the color < span class ="demo-surface-variable "> --mat-app -outline-variant</ span > for a less
122
+ Use the color < span class ="demo-surface-variable "> --mat-sys -outline-variant</ span > for a less
123
123
prominent outline.
124
124
</ p >
125
125
</ div >
@@ -135,7 +135,7 @@ <h1>Colors</h1>
135
135
to components.
136
136
</ p >
137
137
< p >
138
- Colors may be paired with a < span class ="demo-surface-variable "> --mat-app -on-</ span > variable
138
+ Colors may be paired with a < span class ="demo-surface-variable "> --mat-sys -on-</ span > variable
139
139
that should be used for text and icons placed within a filled container.
140
140
</ p >
141
141
@@ -152,7 +152,7 @@ <h2>Surface Colors</h2>
152
152
153
153
< p >
154
154
Containers filled with a surface color should apply the
155
- < span class ="demo-surface-variable "> --mat-app -on-surface</ span > color to text
155
+ < span class ="demo-surface-variable "> --mat-sys -on-surface</ span > color to text
156
156
and icons placed within.
157
157
</ p >
158
158
@@ -188,9 +188,9 @@ <h1>Typography</h1>
188
188
@for (size of ['small', 'medium', 'large']; track $index) {
189
189
< div class ="demo-typography-example ">
190
190
< div class ="demo-typography-variable ">
191
- < div class ="demo-surface-variable "> --mat-app -{{category}}-{{size}}</ div >
191
+ < div class ="demo-surface-variable "> --mat-sys -{{category}}-{{size}}</ div >
192
192
</ div >
193
- < div class ="demo-typography-text " [style.font] ="'var(--mat-app -' + category + '-' + size + ')' "> Lorem ipsum dolor</ div >
193
+ < div class ="demo-typography-text " [style.font] ="'var(--mat-sys -' + category + '-' + size + ')' "> Lorem ipsum dolor</ div >
194
194
</ div >
195
195
}
196
196
</ div >
@@ -204,12 +204,12 @@ <h1>Typography</h1>
204
204
For example, the values for medium body text may be defined as follows:
205
205
</ p >
206
206
< pre class ="demo-code-block ">
207
- --mat-app -body-medium: 400 0.875rem / 1.25rem Roboto, sans-serif;
208
- --mat-app -body-medium-font: Roboto, sans-serif;
209
- --mat-app -body-medium-line-height: 1.25rem;
210
- --mat-app -body-medium-size: 0.875rem;
211
- --mat-app -body-medium-tracking: 0.016rem;
212
- --mat-app -body-medium-weight: 400;
207
+ --mat-sys -body-medium: 400 0.875rem / 1.25rem Roboto, sans-serif;
208
+ --mat-sys -body-medium-font: Roboto, sans-serif;
209
+ --mat-sys -body-medium-line-height: 1.25rem;
210
+ --mat-sys -body-medium-size: 0.875rem;
211
+ --mat-sys -body-medium-tracking: 0.016rem;
212
+ --mat-sys -body-medium-weight: 400;
213
213
</ pre >
214
214
215
215
< h1 > Elevation</ h1 >
@@ -225,8 +225,8 @@ <h1>Elevation</h1>
225
225
</ p >
226
226
227
227
@for (level of [0, 1, 2, 3, 4, 5]; track $index) {
228
- < div class ="demo-elevation code " [style.box-shadow] ="'var(--mat-app -level' + level + ')' ">
229
- box-shadow: var(--mat-app -level{{level}})
228
+ < div class ="demo-elevation code " [style.box-shadow] ="'var(--mat-sys -level' + level + ')' ">
229
+ box-shadow: var(--mat-sys -level{{level}})
230
230
</ div >
231
231
}
232
232
0 commit comments