@inchurch/matcha-theme 20.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +303 -0
- package/abstracts/_colors.scss +405 -0
- package/abstracts/_elevation.scss +102 -0
- package/abstracts/_functions.scss +1213 -0
- package/abstracts/_media-breakpoint.scss +23 -0
- package/abstracts/_typography.scss +127 -0
- package/base/_reset.scss +438 -0
- package/components/matcha-accordion.scss +157 -0
- package/components/matcha-audio-player.scss +32 -0
- package/components/matcha-autocomplete.scss +134 -0
- package/components/matcha-avatar.scss +161 -0
- package/components/matcha-badge.scss +120 -0
- package/components/matcha-breadcrumb.scss +126 -0
- package/components/matcha-button-toggle.scss +363 -0
- package/components/matcha-buttons.scss +784 -0
- package/components/matcha-calendar.scss +154 -0
- package/components/matcha-cards.scss +205 -0
- package/components/matcha-chart-card.scss +60 -0
- package/components/matcha-checkbox.scss +554 -0
- package/components/matcha-chip.scss +212 -0
- package/components/matcha-color-pick.scss +35 -0
- package/components/matcha-command-palette.scss +89 -0
- package/components/matcha-crop.scss +172 -0
- package/components/matcha-date.scss +81 -0
- package/components/matcha-divider.scss +45 -0
- package/components/matcha-draggable.scss +24 -0
- package/components/matcha-drawer.scss +235 -0
- package/components/matcha-drop-list.scss +390 -0
- package/components/matcha-emoji.scss +69 -0
- package/components/matcha-empty-state.scss +118 -0
- package/components/matcha-flag.scss +62 -0
- package/components/matcha-footer.scss +187 -0
- package/components/matcha-form-field.scss +552 -0
- package/components/matcha-form-section.scss +101 -0
- package/components/matcha-header.scss +325 -0
- package/components/matcha-highlight.scss +296 -0
- package/components/matcha-hint-text.scss +66 -0
- package/components/matcha-horizontal-tree.scss +317 -0
- package/components/matcha-icon.scss +106 -0
- package/components/matcha-image.scss +62 -0
- package/components/matcha-list.scss +212 -0
- package/components/matcha-menu.scss +86 -0
- package/components/matcha-modal.scss +234 -0
- package/components/matcha-nav.scss +450 -0
- package/components/matcha-notification.scss +197 -0
- package/components/matcha-option.scss +95 -0
- package/components/matcha-page-builder.scss +4186 -0
- package/components/matcha-paginator.scss +235 -0
- package/components/matcha-panel.scss +167 -0
- package/components/matcha-profile-card.scss +50 -0
- package/components/matcha-progress-bar.scss +209 -0
- package/components/matcha-radio.scss +528 -0
- package/components/matcha-ripple.scss +7 -0
- package/components/matcha-scrollbar.scss +35 -0
- package/components/matcha-scrollbox-shadow.scss +123 -0
- package/components/matcha-section.scss +105 -0
- package/components/matcha-select.scss +661 -0
- package/components/matcha-skeleton.scss +138 -0
- package/components/matcha-slide-toggle.scss +590 -0
- package/components/matcha-slider.scss +188 -0
- package/components/matcha-snack-bar.scss +266 -0
- package/components/matcha-spin.scss +252 -0
- package/components/matcha-spinner.scss +78 -0
- package/components/matcha-stepper.scss +177 -0
- package/components/matcha-table-cell.scss +41 -0
- package/components/matcha-table.scss +785 -0
- package/components/matcha-tabs.scss +469 -0
- package/components/matcha-text-editor.scss +151 -0
- package/components/matcha-time.scss +33 -0
- package/components/matcha-timepicker.scss +13 -0
- package/components/matcha-toolbar.scss +206 -0
- package/components/matcha-tooltip.scss +128 -0
- package/components/matcha-uploader.scss +215 -0
- package/css/matcha-style.css +76772 -0
- package/fonts/CircularStd-Black.eot +0 -0
- package/fonts/CircularStd-Black.svg +3426 -0
- package/fonts/CircularStd-Black.ttf +0 -0
- package/fonts/CircularStd-Black.woff +0 -0
- package/fonts/CircularStd-Black.woff2 +0 -0
- package/fonts/CircularStd-Bold.eot +0 -0
- package/fonts/CircularStd-Bold.otf +0 -0
- package/fonts/CircularStd-Bold.svg +13532 -0
- package/fonts/CircularStd-Bold.ttf +0 -0
- package/fonts/CircularStd-Bold.woff +0 -0
- package/fonts/CircularStd-Bold.woff2 +0 -0
- package/fonts/CircularStd-Medium.eot +0 -0
- package/fonts/CircularStd-Medium.otf +0 -0
- package/fonts/CircularStd-Medium.svg +13511 -0
- package/fonts/CircularStd-Medium.ttf +0 -0
- package/fonts/CircularStd-Medium.woff +0 -0
- package/fonts/CircularStd-Medium.woff2 +0 -0
- package/fonts/CircularStd-Regular.eot +0 -0
- package/fonts/CircularStd-Regular.otf +0 -0
- package/fonts/CircularStd-Regular.svg +2378 -0
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/fonts/CircularStd-Regular.woff2 +0 -0
- package/main.scss +262 -0
- package/package.json +11 -0
- package/tokens/_animations-tokens.scss +37 -0
- package/tokens/_breakpoints-tokens.scss +26 -0
- package/tokens/_color-tokens.scss +1153 -0
- package/tokens/_css-custom-properties.scss +568 -0
- package/tokens/_elevation-tokens.scss +33 -0
- package/tokens/_spacing-tokens.scss +94 -0
- package/tokens/_typography-tokens.scss +65 -0
- package/vendors/angular-editor.scss +56 -0
- package/vendors/angular-material-fixes.scss +297 -0
- package/vendors/calendar.scss +2880 -0
- package/vendors/charts.scss +92 -0
- package/vendors/ng5-slider.scss +56 -0
- package/vendors/ngx-material-timepicker.scss +50 -0
|
@@ -0,0 +1,1213 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:color";
|
|
3
|
+
|
|
4
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
5
|
+
// @ Theme functions
|
|
6
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
7
|
+
// For a given hue in a palette, return the contrast color from the map of contrast palettes.
|
|
8
|
+
// @param $color-map
|
|
9
|
+
// @param $hue
|
|
10
|
+
@function map-contrast($palette, $hue) {
|
|
11
|
+
@return map.get(map.get($palette, contrast), $hue);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Creates a map of hues to colors for a theme. This is used to define a theme palette in terms
|
|
15
|
+
// of the Material Design hues.
|
|
16
|
+
// @param $color-map
|
|
17
|
+
// @param $primary
|
|
18
|
+
// @param $lighter
|
|
19
|
+
@function palette($base-palette, $default: 500, $lighter: 100, $darker: 700) {
|
|
20
|
+
$result: map.merge($base-palette,
|
|
21
|
+
(default: map.get($base-palette, $default),
|
|
22
|
+
lighter: map.get($base-palette, $lighter),
|
|
23
|
+
darker: map.get($base-palette, $darker),
|
|
24
|
+
default-contrast: map-contrast($base-palette, $default),
|
|
25
|
+
lighter-contrast: map-contrast($base-palette, $lighter),
|
|
26
|
+
darker-contrast: map-contrast($base-palette, $darker)));
|
|
27
|
+
|
|
28
|
+
// For each hue in the palette, add a "-contrast" color to the map.
|
|
29
|
+
@each $hue, $color in $base-palette {
|
|
30
|
+
$result: map.merge($result,
|
|
31
|
+
("#{$hue}-contrast": map-contrast($base-palette, $hue)));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@return $result;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@function getBaseColorsPalettes() {
|
|
38
|
+
// base colors
|
|
39
|
+
$palettes: (
|
|
40
|
+
red: $red,
|
|
41
|
+
pink: $pink,
|
|
42
|
+
purple: $purple,
|
|
43
|
+
deep-purple: $deep-purple,
|
|
44
|
+
indigo: $indigo,
|
|
45
|
+
blue: $blue,
|
|
46
|
+
light-blue: $light-blue,
|
|
47
|
+
cyan: $cyan,
|
|
48
|
+
teal: $teal,
|
|
49
|
+
green: $green,
|
|
50
|
+
light-green: $light-green,
|
|
51
|
+
lime: $lime,
|
|
52
|
+
yellow: $yellow,
|
|
53
|
+
amber: $amber,
|
|
54
|
+
orange: $orange,
|
|
55
|
+
deep-orange: $deep-orange,
|
|
56
|
+
brown: $brown,
|
|
57
|
+
grey: $grey,
|
|
58
|
+
blue-grey: $blue-grey
|
|
59
|
+
);
|
|
60
|
+
@return $palettes;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@function getAllPalettes($theme) {
|
|
64
|
+
$primary: map.get($theme, primary);
|
|
65
|
+
$accent: map.get($theme, accent);
|
|
66
|
+
$danger: map.get($theme, danger);
|
|
67
|
+
$warn: map.get($theme, warn);
|
|
68
|
+
$success: map.get($theme, success);
|
|
69
|
+
$info: map.get($theme, info);
|
|
70
|
+
|
|
71
|
+
// base colors
|
|
72
|
+
$palettes: (
|
|
73
|
+
red: $red,
|
|
74
|
+
pink: $pink,
|
|
75
|
+
purple: $purple,
|
|
76
|
+
deep-purple: $deep-purple,
|
|
77
|
+
indigo: $indigo,
|
|
78
|
+
blue: $blue,
|
|
79
|
+
light-blue: $light-blue,
|
|
80
|
+
cyan: $cyan,
|
|
81
|
+
teal: $teal,
|
|
82
|
+
green: $green,
|
|
83
|
+
light-green: $light-green,
|
|
84
|
+
lime: $lime,
|
|
85
|
+
yellow: $yellow,
|
|
86
|
+
amber: $amber,
|
|
87
|
+
orange: $orange,
|
|
88
|
+
deep-orange: $deep-orange,
|
|
89
|
+
brown: $brown,
|
|
90
|
+
grey: $grey,
|
|
91
|
+
blue-grey: $blue-grey,
|
|
92
|
+
light-grey: $light-grey,
|
|
93
|
+
dark-grey: $dark-grey,
|
|
94
|
+
primary: $primary,
|
|
95
|
+
accent: $accent,
|
|
96
|
+
danger: $danger,
|
|
97
|
+
warn: $warn,
|
|
98
|
+
success: $success,
|
|
99
|
+
info: $info
|
|
100
|
+
);
|
|
101
|
+
@return $palettes;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@function getShade($theme) {
|
|
105
|
+
$is-dark: map.get($theme, is-dark);
|
|
106
|
+
$get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
|
|
107
|
+
@return $get-shade;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Background
|
|
111
|
+
@function getBackground($theme) {
|
|
112
|
+
$background: map.get($theme, background);
|
|
113
|
+
$background: map.get($background, background);
|
|
114
|
+
@return $background;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@function getBackgroundAlpha($theme) {
|
|
118
|
+
$background: map.get($theme, background);
|
|
119
|
+
$background-color: map.get($background, background-alpha);
|
|
120
|
+
@return $background-color;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@function getBackgroundInverse($theme) {
|
|
124
|
+
$background: map.get($theme, background);
|
|
125
|
+
$background-inverse: map.get($background, background-inverse);
|
|
126
|
+
@return $background-inverse;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@function getBackgroundAlphaInverse($theme) {
|
|
130
|
+
$background: map.get($theme, background);
|
|
131
|
+
$background-color: map.get($background, background-alpha-inverse);
|
|
132
|
+
@return $background-color;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Surface
|
|
136
|
+
@function getSurface($theme) {
|
|
137
|
+
$background: map.get($theme, background);
|
|
138
|
+
$surface: map.get($background, card);
|
|
139
|
+
@return $surface;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@function getSurfaceAlpha($theme) {
|
|
143
|
+
$background: map.get($theme, background);
|
|
144
|
+
$surface-color: map.get($background, card-alpha);
|
|
145
|
+
@return $surface-color;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@function getSurfaceInverse($theme) {
|
|
149
|
+
$background: map.get($theme, background);
|
|
150
|
+
$surface-inverse: map.get($background, card-inverse);
|
|
151
|
+
@return $surface-inverse;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@function getSurfaceAlphaInverse($theme) {
|
|
155
|
+
$background: map.get($theme, background);
|
|
156
|
+
$surface-color: map.get($background, card-alpha-inverse);
|
|
157
|
+
@return $surface-color;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
// Foreground
|
|
162
|
+
@function getForeground($theme) {
|
|
163
|
+
$foreground: map.get($theme, foreground);
|
|
164
|
+
@return map.get($foreground, foreground);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@function getForegroundAlpha($theme) {
|
|
168
|
+
$foreground: map.get($theme, foreground);
|
|
169
|
+
@return map.get($foreground, foreground-alpha);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@function getForegroundInverse($theme) {
|
|
173
|
+
$is-dark: map.get($theme, is-dark);
|
|
174
|
+
|
|
175
|
+
@if $is-dark {
|
|
176
|
+
@return $color-base-blue-grey-900; // Cor clara para tema light
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@else {
|
|
180
|
+
@return $color-base-blue-grey-100; // Cor escura para tema dark
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@function getForegroundAlphaInverse($theme) {
|
|
185
|
+
$is-dark: map.get($theme, is-dark);
|
|
186
|
+
|
|
187
|
+
@if $is-dark {
|
|
188
|
+
@return rgba($color-base-blue-grey-900, 0.1); // Cor clara para tema light
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@else {
|
|
192
|
+
@return rgba($color-base-blue-grey-100, 0.1); // Cor escura para tema dark
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
// Disabled
|
|
198
|
+
// #D4DDE3
|
|
199
|
+
@function getDisabled($theme) {
|
|
200
|
+
$background: map.get($theme, background);
|
|
201
|
+
$disabled: map.get($background, disabled);
|
|
202
|
+
@return $disabled;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@function getDisabledBgContrast($theme) {
|
|
206
|
+
$foreground: map.get($theme, foreground);
|
|
207
|
+
$disabled-contrast: map.get($foreground, disabled-contrast);
|
|
208
|
+
@return $disabled-contrast;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// rgba(0, 0, 0, 0.26),
|
|
212
|
+
@function getDisabledContrast($theme) {
|
|
213
|
+
$foreground: map.get($theme, foreground);
|
|
214
|
+
$disabled-contrast: map.get($foreground, disabled);
|
|
215
|
+
@return $disabled-contrast;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// #D4DDE3 50%
|
|
219
|
+
@function getDisabledAlpha($theme) {
|
|
220
|
+
$background: map.get($theme, background);
|
|
221
|
+
$disabled-color: map.get($background, disabled-alpha);
|
|
222
|
+
@return $disabled-color;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// rgba(0, 0, 0, 0.13)
|
|
226
|
+
@function getDisabledContrastAlpha($theme) {
|
|
227
|
+
$foreground: map.get($theme, foreground);
|
|
228
|
+
$disabled-contrast-alpha: rgba(map.get($foreground, disabled), 0.5);
|
|
229
|
+
@return $disabled-contrast-alpha;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
233
|
+
// Colors
|
|
234
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
235
|
+
// Red
|
|
236
|
+
@function getRed($theme) {
|
|
237
|
+
$red-color: map.get($red, getShade($theme));
|
|
238
|
+
@return $red-color;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@function getRedContrast($theme) {
|
|
242
|
+
$red-contrast-palette: map.get($red, 'contrast');
|
|
243
|
+
$red-contrast: map.get($red-contrast-palette, getShade($theme));
|
|
244
|
+
@return $red-contrast;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@function getRedAlpha($theme) {
|
|
248
|
+
$red-color: getRed($theme);
|
|
249
|
+
$red-color-alpha: rgba($red-color, 0.1);
|
|
250
|
+
@return $red-color-alpha;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@function getRedContrastAlpha($theme) {
|
|
254
|
+
$red-contrast: getRedContrast($theme);
|
|
255
|
+
$red-contrast-alpha: rgba($red-contrast, 0.1);
|
|
256
|
+
@return $red-contrast-alpha;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// Pink
|
|
260
|
+
@function getPink($theme) {
|
|
261
|
+
$pink-color: map.get($pink, getShade($theme));
|
|
262
|
+
@return $pink-color;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@function getPinkContrast($theme) {
|
|
266
|
+
$pink-contrast-palette: map.get($pink, 'contrast');
|
|
267
|
+
$pink-contrast: map.get($pink-contrast-palette, getShade($theme));
|
|
268
|
+
@return $pink-contrast;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@function getPinkAlpha($theme) {
|
|
272
|
+
$pink-color: getPink($theme);
|
|
273
|
+
$pink-color-alpha: rgba($pink-color, 0.1);
|
|
274
|
+
@return $pink-color-alpha;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@function getPinkContrastAlpha($theme) {
|
|
278
|
+
$pink-contrast: getPinkContrast($theme);
|
|
279
|
+
$pink-contrast-alpha: rgba($pink-contrast, 0.1);
|
|
280
|
+
@return $pink-contrast-alpha;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Purple
|
|
284
|
+
@function getPurple($theme) {
|
|
285
|
+
$purple-color: map.get($purple, getShade($theme));
|
|
286
|
+
@return $purple-color;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@function getPurpleContrast($theme) {
|
|
290
|
+
$purple-contrast-palette: map.get($purple, 'contrast');
|
|
291
|
+
$purple-contrast: map.get($purple-contrast-palette, getShade($theme));
|
|
292
|
+
@return $purple-contrast;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@function getPurpleAlpha($theme) {
|
|
296
|
+
$purple-color: getPurple($theme);
|
|
297
|
+
$purple-color-alpha: rgba($purple-color, 0.1);
|
|
298
|
+
@return $purple-color-alpha;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@function getPurpleContrastAlpha($theme) {
|
|
302
|
+
$purple-contrast: getPurpleContrast($theme);
|
|
303
|
+
$purple-contrast-alpha: rgba($purple-contrast, 0.1);
|
|
304
|
+
@return $purple-contrast-alpha;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// Deep Purple
|
|
308
|
+
@function getDeepPurple($theme) {
|
|
309
|
+
$deep-purple-color: map.get($deep-purple, getShade($theme));
|
|
310
|
+
@return $deep-purple-color;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@function getDeepPurpleContrast($theme) {
|
|
314
|
+
$deep-purple-contrast-palette: map.get($deep-purple, 'contrast');
|
|
315
|
+
$deep-purple-contrast: map.get($deep-purple-contrast-palette, getShade($theme));
|
|
316
|
+
@return $deep-purple-contrast;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@function getDeepPurpleAlpha($theme) {
|
|
320
|
+
$deep-purple-color: getDeepPurple($theme);
|
|
321
|
+
$deep-purple-color-alpha: rgba($deep-purple-color, 0.1);
|
|
322
|
+
@return $deep-purple-color-alpha;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@function getDeepPurpleContrastAlpha($theme) {
|
|
326
|
+
$deep-purple-contrast: getDeepPurpleContrast($theme);
|
|
327
|
+
$deep-purple-contrast-alpha: rgba($deep-purple-contrast, 0.1);
|
|
328
|
+
@return $deep-purple-contrast-alpha;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// Indigo
|
|
332
|
+
@function getIndigo($theme) {
|
|
333
|
+
$indigo-color: map.get($indigo, getShade($theme));
|
|
334
|
+
@return $indigo-color;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@function getIndigoContrast($theme) {
|
|
338
|
+
$indigo-contrast-palette: map.get($indigo, 'contrast');
|
|
339
|
+
$indigo-contrast: map.get($indigo-contrast-palette, getShade($theme));
|
|
340
|
+
@return $indigo-contrast;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@function getIndigoAlpha($theme) {
|
|
344
|
+
$indigo-color: getIndigo($theme);
|
|
345
|
+
$indigo-color-alpha: rgba($indigo-color, 0.1);
|
|
346
|
+
@return $indigo-color-alpha;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@function getIndigoContrastAlpha($theme) {
|
|
350
|
+
$indigo-contrast: getIndigoContrast($theme);
|
|
351
|
+
$indigo-contrast-alpha: rgba($indigo-contrast, 0.1);
|
|
352
|
+
@return $indigo-contrast-alpha;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// Blue
|
|
356
|
+
@function getBlue($theme) {
|
|
357
|
+
$blue-color: map.get($blue, getShade($theme));
|
|
358
|
+
@return $blue-color;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
@function getBlueContrast($theme) {
|
|
362
|
+
$blue-contrast-palette: map.get($blue, 'contrast');
|
|
363
|
+
$blue-contrast: map.get($blue-contrast-palette, getShade($theme));
|
|
364
|
+
@return $blue-contrast;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
@function getBlueAlpha($theme) {
|
|
368
|
+
$blue-color: getBlue($theme);
|
|
369
|
+
$blue-color-alpha: rgba($blue-color, 0.1);
|
|
370
|
+
@return $blue-color-alpha;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@function getBlueContrastAlpha($theme) {
|
|
374
|
+
$blue-contrast: getBlueContrast($theme);
|
|
375
|
+
$blue-contrast-alpha: rgba($blue-contrast, 0.1);
|
|
376
|
+
@return $blue-contrast-alpha;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// Light Blue
|
|
380
|
+
@function getLightBlue($theme) {
|
|
381
|
+
$light-blue-color: map.get($light-blue, getShade($theme));
|
|
382
|
+
@return $light-blue-color;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
@function getLightBlueContrast($theme) {
|
|
386
|
+
$light-blue-contrast-palette: map.get($light-blue, 'contrast');
|
|
387
|
+
$light-blue-contrast: map.get($light-blue-contrast-palette, getShade($theme));
|
|
388
|
+
@return $light-blue-contrast;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@function getLightBlueAlpha($theme) {
|
|
392
|
+
$light-blue-color: getLightBlue($theme);
|
|
393
|
+
$light-blue-color-alpha: rgba($light-blue-color, 0.1);
|
|
394
|
+
@return $light-blue-color-alpha;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@function getLightBlueContrastAlpha($theme) {
|
|
398
|
+
$light-blue-contrast: getLightBlueContrast($theme);
|
|
399
|
+
$light-blue-contrast-alpha: rgba($light-blue-contrast, 0.1);
|
|
400
|
+
@return $light-blue-contrast-alpha;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// Cyan
|
|
404
|
+
@function getCyan($theme) {
|
|
405
|
+
$cyan-color: map.get($cyan, getShade($theme));
|
|
406
|
+
@return $cyan-color;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
@function getCyanContrast($theme) {
|
|
410
|
+
$cyan-contrast-palette: map.get($cyan, 'contrast');
|
|
411
|
+
$cyan-contrast: map.get($cyan-contrast-palette, getShade($theme));
|
|
412
|
+
@return $cyan-contrast;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
@function getCyanAlpha($theme) {
|
|
416
|
+
$cyan-color: getCyan($theme);
|
|
417
|
+
$cyan-color-alpha: rgba($cyan-color, 0.1);
|
|
418
|
+
@return $cyan-color-alpha;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
@function getCyanContrastAlpha($theme) {
|
|
422
|
+
$cyan-contrast: getCyanContrast($theme);
|
|
423
|
+
$cyan-contrast-alpha: rgba($cyan-contrast, 0.1);
|
|
424
|
+
@return $cyan-contrast-alpha;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// Teal
|
|
428
|
+
@function getTeal($theme) {
|
|
429
|
+
$teal-color: map.get($teal, getShade($theme));
|
|
430
|
+
@return $teal-color;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@function getTealContrast($theme) {
|
|
434
|
+
$teal-contrast-palette: map.get($teal, 'contrast');
|
|
435
|
+
$teal-contrast: map.get($teal-contrast-palette, getShade($theme));
|
|
436
|
+
@return $teal-contrast;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@function getTealAlpha($theme) {
|
|
440
|
+
$teal-color: getTeal($theme);
|
|
441
|
+
$teal-color-alpha: rgba($teal-color, 0.1);
|
|
442
|
+
@return $teal-color-alpha;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
@function getTealContrastAlpha($theme) {
|
|
446
|
+
$teal-contrast: getTealContrast($theme);
|
|
447
|
+
$teal-contrast-alpha: rgba($teal-contrast, 0.1);
|
|
448
|
+
@return $teal-contrast-alpha;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// Green
|
|
452
|
+
@function getGreen($theme) {
|
|
453
|
+
$green-color: map.get($green, getShade($theme));
|
|
454
|
+
@return $green-color;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
@function getGreenContrast($theme) {
|
|
458
|
+
$green-contrast-palette: map.get($green, 'contrast');
|
|
459
|
+
$green-contrast: map.get($green-contrast-palette, getShade($theme));
|
|
460
|
+
@return $green-contrast;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
@function getGreenAlpha($theme) {
|
|
464
|
+
$green-color: getGreen($theme);
|
|
465
|
+
$green-color-alpha: rgba($green-color, 0.1);
|
|
466
|
+
@return $green-color-alpha;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
@function getGreenContrastAlpha($theme) {
|
|
470
|
+
$green-contrast: getGreenContrast($theme);
|
|
471
|
+
$green-contrast-alpha: rgba($green-contrast, 0.1);
|
|
472
|
+
@return $green-contrast-alpha;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// Light Green
|
|
476
|
+
@function getLightGreen($theme) {
|
|
477
|
+
$light-green-color: map.get($light-green, getShade($theme));
|
|
478
|
+
@return $light-green-color;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
@function getLightGreenContrast($theme) {
|
|
482
|
+
$light-green-contrast-palette: map.get($light-green, 'contrast');
|
|
483
|
+
$light-green-contrast: map.get($light-green-contrast-palette, getShade($theme));
|
|
484
|
+
@return $light-green-contrast;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
@function getLightGreenAlpha($theme) {
|
|
488
|
+
$light-green-color: getLightGreen($theme);
|
|
489
|
+
$light-green-color-alpha: rgba($light-green-color, 0.1);
|
|
490
|
+
@return $light-green-color-alpha;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
@function getLightGreenContrastAlpha($theme) {
|
|
494
|
+
$light-green-contrast: getLightGreenContrast($theme);
|
|
495
|
+
$light-green-contrast-alpha: rgba($light-green-contrast, 0.1);
|
|
496
|
+
@return $light-green-contrast-alpha;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// Lime
|
|
500
|
+
@function getLime($theme) {
|
|
501
|
+
$lime-color: map.get($lime, getShade($theme));
|
|
502
|
+
@return $lime-color;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
@function getLimeContrast($theme) {
|
|
506
|
+
$lime-contrast-palette: map.get($lime, 'contrast');
|
|
507
|
+
$lime-contrast: map.get($lime-contrast-palette, getShade($theme));
|
|
508
|
+
@return $lime-contrast;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@function getLimeAlpha($theme) {
|
|
512
|
+
$lime-color: getLime($theme);
|
|
513
|
+
$lime-color-alpha: rgba($lime-color, 0.1);
|
|
514
|
+
@return $lime-color-alpha;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
@function getLimeContrastAlpha($theme) {
|
|
518
|
+
$lime-contrast: getLimeContrast($theme);
|
|
519
|
+
$lime-contrast-alpha: rgba($lime-contrast, 0.1);
|
|
520
|
+
@return $lime-contrast-alpha;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// Yellow
|
|
524
|
+
@function getYellow($theme) {
|
|
525
|
+
$yellow-color: map.get($yellow, getShade($theme));
|
|
526
|
+
@return $yellow-color;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
@function getYellowContrast($theme) {
|
|
530
|
+
$yellow-contrast-palette: map.get($yellow, 'contrast');
|
|
531
|
+
$yellow-contrast: map.get($yellow-contrast-palette, getShade($theme));
|
|
532
|
+
@return $yellow-contrast;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
@function getYellowAlpha($theme) {
|
|
536
|
+
$yellow-color: getYellow($theme);
|
|
537
|
+
$yellow-color-alpha: rgba($yellow-color, 0.1);
|
|
538
|
+
@return $yellow-color-alpha;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
@function getYellowContrastAlpha($theme) {
|
|
542
|
+
$yellow-contrast: getYellowContrast($theme);
|
|
543
|
+
$yellow-contrast-alpha: rgba($yellow-contrast, 0.1);
|
|
544
|
+
@return $yellow-contrast-alpha;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
// Amber
|
|
548
|
+
@function getAmber($theme) {
|
|
549
|
+
$amber-color: map.get($amber, getShade($theme));
|
|
550
|
+
@return $amber-color;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
@function getAmberContrast($theme) {
|
|
554
|
+
$amber-contrast-palette: map.get($amber, 'contrast');
|
|
555
|
+
$amber-contrast: map.get($amber-contrast-palette, getShade($theme));
|
|
556
|
+
@return $amber-contrast;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
@function getAmberAlpha($theme) {
|
|
560
|
+
$amber-color: getAmber($theme);
|
|
561
|
+
$amber-color-alpha: rgba($amber-color, 0.1);
|
|
562
|
+
@return $amber-color-alpha;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
@function getAmberContrastAlpha($theme) {
|
|
566
|
+
$amber-contrast: getAmberContrast($theme);
|
|
567
|
+
$amber-contrast-alpha: rgba($amber-contrast, 0.1);
|
|
568
|
+
@return $amber-contrast-alpha;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
// Orange
|
|
572
|
+
@function getOrange($theme) {
|
|
573
|
+
$orange-color: map.get($orange, getShade($theme));
|
|
574
|
+
@return $orange-color;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
@function getOrangeContrast($theme) {
|
|
578
|
+
$orange-contrast-palette: map.get($orange, 'contrast');
|
|
579
|
+
$orange-contrast: map.get($orange-contrast-palette, getShade($theme));
|
|
580
|
+
@return $orange-contrast;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
@function getOrangeAlpha($theme) {
|
|
584
|
+
$orange-color: getOrange($theme);
|
|
585
|
+
$orange-color-alpha: rgba($orange-color, 0.1);
|
|
586
|
+
@return $orange-color-alpha;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
@function getOrangeContrastAlpha($theme) {
|
|
590
|
+
$orange-contrast: getOrangeContrast($theme);
|
|
591
|
+
$orange-contrast-alpha: rgba($orange-contrast, 0.1);
|
|
592
|
+
@return $orange-contrast-alpha;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
// Deep Orange
|
|
596
|
+
@function getDeepOrange($theme) {
|
|
597
|
+
$deep-orange-color: map.get($deep-orange, getShade($theme));
|
|
598
|
+
@return $deep-orange-color;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
@function getDeepOrangeContrast($theme) {
|
|
602
|
+
$deep-orange-contrast-palette: map.get($deep-orange, 'contrast');
|
|
603
|
+
$deep-orange-contrast: map.get($deep-orange-contrast-palette, getShade($theme));
|
|
604
|
+
@return $deep-orange-contrast;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
@function getDeepOrangeAlpha($theme) {
|
|
608
|
+
$deep-orange-color: getDeepOrange($theme);
|
|
609
|
+
$deep-orange-color-alpha: rgba($deep-orange-color, 0.1);
|
|
610
|
+
@return $deep-orange-color-alpha;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
@function getDeepOrangeContrastAlpha($theme) {
|
|
614
|
+
$deep-orange-contrast: getDeepOrangeContrast($theme);
|
|
615
|
+
$deep-orange-contrast-alpha: rgba($deep-orange-contrast, 0.1);
|
|
616
|
+
@return $deep-orange-contrast-alpha;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// Brown
|
|
620
|
+
@function getBrown($theme) {
|
|
621
|
+
$brown-color: map.get($brown, getShade($theme));
|
|
622
|
+
@return $brown-color;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
@function getBrownContrast($theme) {
|
|
626
|
+
$brown-contrast-palette: map.get($brown, 'contrast');
|
|
627
|
+
$brown-contrast: map.get($brown-contrast-palette, getShade($theme));
|
|
628
|
+
@return $brown-contrast;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
@function getBrownAlpha($theme) {
|
|
632
|
+
$brown-color: getBrown($theme);
|
|
633
|
+
$brown-color-alpha: rgba($brown-color, 0.1);
|
|
634
|
+
@return $brown-color-alpha;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
@function getBrownContrastAlpha($theme) {
|
|
638
|
+
$brown-contrast: getBrownContrast($theme);
|
|
639
|
+
$brown-contrast-alpha: rgba($brown-contrast, 0.1);
|
|
640
|
+
@return $brown-contrast-alpha;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// Grey
|
|
644
|
+
@function getGrey($theme) {
|
|
645
|
+
$grey-color: map.get($grey, getShade($theme));
|
|
646
|
+
@return $grey-color;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
@function getGreyContrast($theme) {
|
|
650
|
+
$grey-contrast-palette: map.get($grey, 'contrast');
|
|
651
|
+
$grey-contrast: map.get($grey-contrast-palette, getShade($theme));
|
|
652
|
+
@return $grey-contrast;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
@function getGreyAlpha($theme) {
|
|
656
|
+
$grey-color: getGrey($theme);
|
|
657
|
+
$grey-color-alpha: rgba($grey-color, 0.1);
|
|
658
|
+
@return $grey-color-alpha;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
@function getGreyContrastAlpha($theme) {
|
|
662
|
+
$grey-contrast: getGreyContrast($theme);
|
|
663
|
+
$grey-contrast-alpha: rgba($grey-contrast, 0.1);
|
|
664
|
+
@return $grey-contrast-alpha;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
// Blue Grey
|
|
668
|
+
@function getBlueGrey($theme) {
|
|
669
|
+
$blue-grey-color: map.get($blue-grey, getShade($theme));
|
|
670
|
+
@return $blue-grey-color;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
@function getBlueGreyContrast($theme) {
|
|
674
|
+
$blue-grey-contrast-palette: map.get($blue-grey, 'contrast');
|
|
675
|
+
$blue-grey-contrast: map.get($blue-grey-contrast-palette, getShade($theme));
|
|
676
|
+
@return $blue-grey-contrast;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
@function getBlueGreyAlpha($theme) {
|
|
680
|
+
$blue-grey-color: getBlueGrey($theme);
|
|
681
|
+
$blue-grey-color-alpha: rgba($blue-grey-color, 0.1);
|
|
682
|
+
@return $blue-grey-color-alpha;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
@function getBlueGreyContrastAlpha($theme) {
|
|
686
|
+
$blue-grey-contrast: getBlueGreyContrast($theme);
|
|
687
|
+
$blue-grey-contrast-alpha: rgba($blue-grey-contrast, 0.1);
|
|
688
|
+
@return $blue-grey-contrast-alpha;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// Primary
|
|
692
|
+
@function getPrimary($theme) {
|
|
693
|
+
$primary: map.get($theme, primary);
|
|
694
|
+
$primary-color: map.get($primary, default);
|
|
695
|
+
@return $primary-color;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
@function getPrimaryContrast($theme) {
|
|
699
|
+
$primary: map.get($theme, primary);
|
|
700
|
+
$primary-contrast: map.get($primary, default-contrast);
|
|
701
|
+
@return $primary-contrast;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
@function getPrimaryAlpha($theme) {
|
|
705
|
+
$primary-color: getPrimary($theme);
|
|
706
|
+
$primary-color-alpha: rgba($primary-color, 0.1);
|
|
707
|
+
@return $primary-color-alpha;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
@function getPrimaryContrastAlpha($theme) {
|
|
711
|
+
$primary-contrast: getPrimaryContrast($theme);
|
|
712
|
+
$primary-contrast-alpha: rgba($primary-contrast, 0.1);
|
|
713
|
+
@return $primary-contrast-alpha;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
// Accent
|
|
717
|
+
@function getAccent($theme) {
|
|
718
|
+
$accent: map.get($theme, accent);
|
|
719
|
+
$accent-color: map.get($accent, default);
|
|
720
|
+
@return $accent-color;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
@function getAccentContrast($theme) {
|
|
724
|
+
$accent: map.get($theme, accent);
|
|
725
|
+
$accent-contrast: map.get($accent, default-contrast);
|
|
726
|
+
@return $accent-contrast;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
@function getAccentAlpha($theme) {
|
|
730
|
+
$accent-color: getAccent($theme);
|
|
731
|
+
$accent-color-alpha: rgba($accent-color, 0.1);
|
|
732
|
+
@return $accent-color-alpha;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
@function getAccentContrastAlpha($theme) {
|
|
736
|
+
$accent-contrast: getAccentContrast($theme);
|
|
737
|
+
$accent-contrast-alpha: rgba($accent-contrast, 0.1);
|
|
738
|
+
@return $accent-contrast-alpha;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
// Danger
|
|
742
|
+
@function getDanger($theme) {
|
|
743
|
+
$danger: map.get($theme, danger);
|
|
744
|
+
$danger-color: map.get($danger, default);
|
|
745
|
+
@return $danger-color;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
@function getDangerContrast($theme) {
|
|
749
|
+
$danger: map.get($theme, danger);
|
|
750
|
+
$danger-contrast: map.get($danger, default-contrast);
|
|
751
|
+
@return $danger-contrast;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
@function getDangerAlpha($theme) {
|
|
755
|
+
$danger-color: getDanger($theme);
|
|
756
|
+
$danger-color-alpha: rgba($danger-color, 0.1);
|
|
757
|
+
@return $danger-color-alpha;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
@function getDangerContrastAlpha($theme) {
|
|
761
|
+
$danger-contrast: getDangerContrast($theme);
|
|
762
|
+
$danger-contrast-alpha: rgba($danger-contrast, 0.1);
|
|
763
|
+
@return $danger-contrast-alpha;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
// Warn
|
|
767
|
+
@function getWarn($theme) {
|
|
768
|
+
$warn: map.get($theme, warn);
|
|
769
|
+
$warn-color: map.get($warn, default);
|
|
770
|
+
@return $warn-color;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
@function getWarnContrast($theme) {
|
|
774
|
+
$warn: map.get($theme, warn);
|
|
775
|
+
$warn-contrast: map.get($warn, default-contrast);
|
|
776
|
+
@return $warn-contrast;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
@function getWarnAlpha($theme) {
|
|
780
|
+
$warn-color: getWarn($theme);
|
|
781
|
+
$warn-color-alpha: rgba($warn-color, 0.1);
|
|
782
|
+
@return $warn-color-alpha;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
@function getWarnContrastAlpha($theme) {
|
|
786
|
+
$warn-contrast: getWarnContrast($theme);
|
|
787
|
+
$warn-contrast-alpha: rgba($warn-contrast, 0.1);
|
|
788
|
+
@return $warn-contrast-alpha;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
// Success
|
|
792
|
+
@function getSuccess($theme) {
|
|
793
|
+
$success: map.get($theme, success);
|
|
794
|
+
$success-color: map.get($success, default);
|
|
795
|
+
@return $success-color;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
@function getSuccessContrast($theme) {
|
|
799
|
+
$success: map.get($theme, success);
|
|
800
|
+
$success-contrast: map.get($success, default-contrast);
|
|
801
|
+
@return $success-contrast;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
@function getSuccessAlpha($theme) {
|
|
805
|
+
$success-color: getSuccess($theme);
|
|
806
|
+
$success-color-alpha: rgba($success-color, 0.1);
|
|
807
|
+
@return $success-color-alpha;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
@function getSuccessContrastAlpha($theme) {
|
|
811
|
+
$success-contrast: getSuccessContrast($theme);
|
|
812
|
+
$success-contrast-alpha: rgba($success-contrast, 0.1);
|
|
813
|
+
@return $success-contrast-alpha;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
// Info
|
|
817
|
+
@function getInfo($theme) {
|
|
818
|
+
$info: map.get($theme, info);
|
|
819
|
+
$info-color: map.get($info, default);
|
|
820
|
+
@return $info-color;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
@function getInfoContrast($theme) {
|
|
824
|
+
$info: map.get($theme, info);
|
|
825
|
+
$info-contrast: map.get($info, default-contrast);
|
|
826
|
+
@return $info-contrast;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
@function getInfoAlpha($theme) {
|
|
830
|
+
$info-color: getInfo($theme);
|
|
831
|
+
$info-color-alpha: rgba($info-color, 0.1);
|
|
832
|
+
@return $info-color-alpha;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
@function getInfoContrastAlpha($theme) {
|
|
836
|
+
$info-contrast: getInfoContrast($theme);
|
|
837
|
+
$info-contrast-alpha: rgba($info-contrast, 0.1);
|
|
838
|
+
@return $info-contrast-alpha;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
// Gets a color from a theme palette (the output of mat-palette).
|
|
843
|
+
// The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
|
|
844
|
+
// hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
|
|
845
|
+
//
|
|
846
|
+
// @param $color-map The theme palette (output of mat-palette).
|
|
847
|
+
// @param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
|
|
848
|
+
// be treated as opacity.
|
|
849
|
+
// @param $opacity The alpha channel value for the color.
|
|
850
|
+
@function map-color($palette, $hue: default, $opacity: null) {
|
|
851
|
+
|
|
852
|
+
// If hueKey is a number between zero and one, then it actually contains an
|
|
853
|
+
// opacity value, so recall this function with the default hue and that given opacity.
|
|
854
|
+
@if type-of($hue)==number and $hue >=0 and $hue <=1 {
|
|
855
|
+
@return map-color($palette, default, $hue);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
$color: map.get($palette, $hue);
|
|
859
|
+
|
|
860
|
+
@if (type-of($color) !=color) {
|
|
861
|
+
// If the $color resolved to something different from a color (e.g. a CSS variable),
|
|
862
|
+
// we can't apply the opacity anyway so we return the value as is, otherwise Sass can
|
|
863
|
+
// throw an error or output something invalid.
|
|
864
|
+
@return $color;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
@return rgba($color, if($opacity ==null, opacity($color), $opacity));
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
// Creates a container object for a light theme to be given to individual component theme mixins.
|
|
871
|
+
@function light-theme($primary,
|
|
872
|
+
$accent,
|
|
873
|
+
$warn: palette($yellow, 600),
|
|
874
|
+
$danger: palette($red, A700),
|
|
875
|
+
$success: palette($green, 900),
|
|
876
|
+
$info: palette($blue, A700)) {
|
|
877
|
+
@return (primary: $primary,
|
|
878
|
+
accent: $accent,
|
|
879
|
+
warn: $warn,
|
|
880
|
+
danger: $danger,
|
|
881
|
+
success: $success,
|
|
882
|
+
info: $info,
|
|
883
|
+
is-dark: false,
|
|
884
|
+
foreground: $light-theme-foreground-palette,
|
|
885
|
+
background: $light-theme-background-palette );
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
// Creates a container object for a dark theme to be given to individual component theme mixins.
|
|
889
|
+
@function dark-theme($primary, $accent, $warn: palette($yellow, 200),
|
|
890
|
+
$danger: palette($red, 200),
|
|
891
|
+
$success: palette($green, A200),
|
|
892
|
+
$info: palette($blue, 800)) {
|
|
893
|
+
@return (primary: $primary,
|
|
894
|
+
accent: $accent,
|
|
895
|
+
warn: $warn,
|
|
896
|
+
danger: $danger,
|
|
897
|
+
success: $success,
|
|
898
|
+
info: $info,
|
|
899
|
+
is-dark: true,
|
|
900
|
+
foreground: $dark-theme-foreground-palette,
|
|
901
|
+
background: $dark-theme-background-palette );
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// Creates a container object for a custom light theme to be given to individual component theme mixins.
|
|
905
|
+
@function light-custom-theme($custom-light-fg,
|
|
906
|
+
$custom-light-bg,
|
|
907
|
+
$primary,
|
|
908
|
+
$accent,
|
|
909
|
+
$warn: palette($yellow, 600),
|
|
910
|
+
$danger: palette($red, A700),
|
|
911
|
+
$success: palette($green, 900),
|
|
912
|
+
$info: palette($blue, 900)) {
|
|
913
|
+
@return (primary: $primary,
|
|
914
|
+
accent: $accent,
|
|
915
|
+
warn: $warn,
|
|
916
|
+
danger: $danger,
|
|
917
|
+
success: $success,
|
|
918
|
+
info: $info,
|
|
919
|
+
is-dark: false,
|
|
920
|
+
foreground: $custom-light-fg,
|
|
921
|
+
background: $custom-light-bg );
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// Creates a container object for a custom dark theme to be given to individual component theme mixins.
|
|
925
|
+
@function dark-custom-theme($custom-dark-fg,
|
|
926
|
+
$custom-dark-bg,
|
|
927
|
+
$primary,
|
|
928
|
+
$accent,
|
|
929
|
+
$warn: palette($yellow, 200),
|
|
930
|
+
$danger: palette($red, 200),
|
|
931
|
+
$success: palette($green, 200),
|
|
932
|
+
$info: palette($blue, 200)) {
|
|
933
|
+
@return (primary: $primary,
|
|
934
|
+
accent: $accent,
|
|
935
|
+
warn: $warn,
|
|
936
|
+
danger: $danger,
|
|
937
|
+
success: $success,
|
|
938
|
+
info: $info,
|
|
939
|
+
is-dark: true,
|
|
940
|
+
foreground: $custom-dark-fg,
|
|
941
|
+
background: $custom-dark-bg );
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
945
|
+
// @ Typography functions
|
|
946
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
947
|
+
// Represents a typography level from the Material design spec.
|
|
948
|
+
@function matcha-typography-level($font-size,
|
|
949
|
+
$line-height: $font-size,
|
|
950
|
+
$font-weight: 400,
|
|
951
|
+
$font-family: null,
|
|
952
|
+
$letter-spacing: null) {
|
|
953
|
+
@return (font-size: $font-size,
|
|
954
|
+
line-height: $line-height,
|
|
955
|
+
font-weight: $font-weight,
|
|
956
|
+
font-family: $font-family,
|
|
957
|
+
letter-spacing: $letter-spacing );
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
// Represents a collection of typography levels.
|
|
961
|
+
// Defaults come from https://material.io/guidelines/style/typography.html
|
|
962
|
+
// Note: The spec doesn't mention letter spacing. The values here come from
|
|
963
|
+
// eyeballing it until it looked exactly like the spec examples.
|
|
964
|
+
@function matcha-typography-config($font-family: $font-family-base,
|
|
965
|
+
// ── Display ──
|
|
966
|
+
$display-xl: matcha-typography-level(40px, 48px, 800, $letter-spacing: -0.5px),
|
|
967
|
+
$display: matcha-typography-level(32px, 40px, 700, $letter-spacing: -0.5px),
|
|
968
|
+
// ── Headline ──
|
|
969
|
+
$headline: matcha-typography-level(24px, 32px, 700, $letter-spacing: -0.3px),
|
|
970
|
+
// ── Title ──
|
|
971
|
+
$title-xl: matcha-typography-level(20px, 28px, 800),
|
|
972
|
+
$title-lg: matcha-typography-level(20px, 28px, 600),
|
|
973
|
+
$title-md: matcha-typography-level(18px, 24px, 600),
|
|
974
|
+
$title-sm: matcha-typography-level(16px, 22px, 600),
|
|
975
|
+
$title-xs: matcha-typography-level(14px, 20px, 800),
|
|
976
|
+
// ── Label ──
|
|
977
|
+
$label-lg: matcha-typography-level(16px, 22px, 500),
|
|
978
|
+
$label-md: matcha-typography-level(14px, 20px, 500),
|
|
979
|
+
$label-sm: matcha-typography-level(12px, 16px, 500),
|
|
980
|
+
// ── Body ──
|
|
981
|
+
$body-lg: matcha-typography-level(16px, 24px, 400),
|
|
982
|
+
$body-md: matcha-typography-level(14px, 20px, 400),
|
|
983
|
+
$body-sm: matcha-typography-level(12px, 16px, 400),
|
|
984
|
+
// ── Button ──
|
|
985
|
+
$button-lg: matcha-typography-level(16px, 22px, 600, $letter-spacing: 0.2px),
|
|
986
|
+
$button-md: matcha-typography-level(14px, 20px, 500, $letter-spacing: 0.2px),
|
|
987
|
+
$button-sm: matcha-typography-level(13px, 19px, 500, $letter-spacing: 0.2px),
|
|
988
|
+
// ── Other ──
|
|
989
|
+
$caption: matcha-typography-level(11px, 14px, 400, $letter-spacing: 0.3px),
|
|
990
|
+
$overline: matcha-typography-level(10px, 14px, 600, $letter-spacing: 1px),
|
|
991
|
+
$input: matcha-typography-level(inherit, 1.125, 400),
|
|
992
|
+
// ── Legacy aliases (kept for retrocompatibility) ──
|
|
993
|
+
$display-4: matcha-typography-level(112px, 112px, 300, $letter-spacing: -0.05em),
|
|
994
|
+
$display-3: matcha-typography-level(56px, 56px, 400, $letter-spacing: -0.02em),
|
|
995
|
+
$display-2: matcha-typography-level(45px, 48px, 400, $letter-spacing: -0.005em),
|
|
996
|
+
$display-1: matcha-typography-level(34px, 40px, 400),
|
|
997
|
+
$title: matcha-typography-level(20px, 28px, 600),
|
|
998
|
+
$subheading-2: matcha-typography-level(16px, 22px, 600),
|
|
999
|
+
$subheading-1: matcha-typography-level(15px, 24px, 600),
|
|
1000
|
+
$body-2: matcha-typography-level(14px, 20px, 500),
|
|
1001
|
+
$body-1: matcha-typography-level(14px, 20px, 400),
|
|
1002
|
+
$button: matcha-typography-level(14px, 20px, 500, $letter-spacing: 0.2px)) {
|
|
1003
|
+
$config: (
|
|
1004
|
+
// New Figma-aligned styles
|
|
1005
|
+
display-xl: $display-xl,
|
|
1006
|
+
display: $display,
|
|
1007
|
+
headline: $headline,
|
|
1008
|
+
title-xl: $title-xl,
|
|
1009
|
+
title-lg: $title-lg,
|
|
1010
|
+
title-md: $title-md,
|
|
1011
|
+
title-sm: $title-sm,
|
|
1012
|
+
title-xs: $title-xs,
|
|
1013
|
+
label-lg: $label-lg,
|
|
1014
|
+
label-md: $label-md,
|
|
1015
|
+
label-sm: $label-sm,
|
|
1016
|
+
body-lg: $body-lg,
|
|
1017
|
+
body-md: $body-md,
|
|
1018
|
+
body-sm: $body-sm,
|
|
1019
|
+
button-lg: $button-lg,
|
|
1020
|
+
button-md: $button-md,
|
|
1021
|
+
button-sm: $button-sm,
|
|
1022
|
+
caption: $caption,
|
|
1023
|
+
overline: $overline,
|
|
1024
|
+
input: $input,
|
|
1025
|
+
// Legacy aliases
|
|
1026
|
+
display-4: $display-4,
|
|
1027
|
+
display-3: $display-3,
|
|
1028
|
+
display-2: $display-2,
|
|
1029
|
+
display-1: $display-1,
|
|
1030
|
+
title: $title,
|
|
1031
|
+
subheading-2: $subheading-2,
|
|
1032
|
+
subheading-1: $subheading-1,
|
|
1033
|
+
body-2: $body-2,
|
|
1034
|
+
body-1: $body-1,
|
|
1035
|
+
button: $button
|
|
1036
|
+
);
|
|
1037
|
+
|
|
1038
|
+
// Loop through the levels and set the `font-family` of the ones that don't have one to the base.
|
|
1039
|
+
// Note that Sass can't modify maps in place, which means that we need to merge and re-assign.
|
|
1040
|
+
@each $key, $level in $config {
|
|
1041
|
+
@if map.get($level, font-family)==null {
|
|
1042
|
+
$new-level: map.merge($level,
|
|
1043
|
+
(font-family: $font-family ));
|
|
1044
|
+
$config: map.merge($config,
|
|
1045
|
+
($key: $new-level ));
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
// Add the base font family to the config.
|
|
1050
|
+
@return map.merge($config,
|
|
1051
|
+
(font-family: $font-family ));
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
// Utility for fetching a nested value from a typography config.
|
|
1055
|
+
@function _matcha-get-type-value($config, $level, $name) {
|
|
1056
|
+
@return map.get(map.get($config, $level), $name);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
// Gets the font size for a level inside a typography config.
|
|
1060
|
+
@function matcha-font-size($config, $level) {
|
|
1061
|
+
@return _matcha-get-type-value($config, $level, font-size);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
// Gets the line height for a level inside a typography config.
|
|
1065
|
+
@function matcha-line-height($config, $level) {
|
|
1066
|
+
@return _matcha-get-type-value($config, $level, line-height);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
// Gets the font weight for a level inside a typography config.
|
|
1070
|
+
@function matcha-font-weight($config, $level) {
|
|
1071
|
+
@return _matcha-get-type-value($config, $level, font-weight);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
// Gets the letter spacing for a level inside a typography config.
|
|
1075
|
+
@function matcha-letter-spacing($config, $level) {
|
|
1076
|
+
@return _matcha-get-type-value($config, $level, letter-spacing);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
// Gets the font-family from a typography config and removes the quotes around it.
|
|
1080
|
+
@function matcha-font-family($config, $level: null) {
|
|
1081
|
+
$font-family: map.get($config, font-family);
|
|
1082
|
+
|
|
1083
|
+
@if $level !=null {
|
|
1084
|
+
$font-family: _matcha-get-type-value($config, $level, font-family);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
// Guard against unquoting non-string values, because it's deprecated.
|
|
1088
|
+
@return if(type-of($font-family)==string, unquote($font-family), $font-family);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
1092
|
+
// @ Elevation functions
|
|
1093
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
1094
|
+
// A collection of functions that can be used to apply elevation to a material
|
|
1095
|
+
|
|
1096
|
+
@function _get-umbra-map($color, $opacity) {
|
|
1097
|
+
$shadow-color: if(type-of($color)==color, rgba($color, $opacity * 0.033), $color);
|
|
1098
|
+
|
|
1099
|
+
@return (0: "0px 0px 0px 0px #{$shadow-color}",
|
|
1100
|
+
1: "0px 2px 2px 0px #{$shadow-color}",
|
|
1101
|
+
2: "0px 3px 2px -2px #{$shadow-color}",
|
|
1102
|
+
3: "0px 3px 3px -2px #{$shadow-color}",
|
|
1103
|
+
4: "0px 2px 4px -1px #{$shadow-color}",
|
|
1104
|
+
5: "0px 3px 5px -1px #{$shadow-color}",
|
|
1105
|
+
6: "0px 3px 5px -1px #{$shadow-color}",
|
|
1106
|
+
7: "0px 4px 5px -2px #{$shadow-color}",
|
|
1107
|
+
8: "0px 5px 5px -3px #{$shadow-color}",
|
|
1108
|
+
9: "0px 5px 6px -3px #{$shadow-color}",
|
|
1109
|
+
10: "0px 6px 6px -3px #{$shadow-color}",
|
|
1110
|
+
11: "0px 6px 7px -4px #{$shadow-color}",
|
|
1111
|
+
12: "0px 7px 8px -4px #{$shadow-color}",
|
|
1112
|
+
13: "0px 7px 8px -4px #{$shadow-color}",
|
|
1113
|
+
14: "0px 7px 9px -4px #{$shadow-color}",
|
|
1114
|
+
15: "0px 8px 9px -5px #{$shadow-color}",
|
|
1115
|
+
16: "0px 8px 10px -5px #{$shadow-color}",
|
|
1116
|
+
17: "0px 8px 11px -5px #{$shadow-color}",
|
|
1117
|
+
18: "0px 9px 11px -5px #{$shadow-color}",
|
|
1118
|
+
19: "0px 9px 12px -6px #{$shadow-color}",
|
|
1119
|
+
20: "0px 10px 13px -6px #{$shadow-color}",
|
|
1120
|
+
21: "0px 10px 13px -6px #{$shadow-color}",
|
|
1121
|
+
22: "0px 10px 14px -6px #{$shadow-color}",
|
|
1122
|
+
23: "0px 11px 14px -7px #{$shadow-color}",
|
|
1123
|
+
24: "0px 11px 15px -7px #{$shadow-color}"
|
|
1124
|
+
);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
@function _get-penumbra-map($color, $opacity) {
|
|
1128
|
+
$shadow-color: if(type-of($color)==color, rgba($color, $opacity * 0.033), $color);
|
|
1129
|
+
|
|
1130
|
+
@return (0: "0px 0px 0px 0px #{$shadow-color}",
|
|
1131
|
+
1: "0px 2px 2px 0px #{$shadow-color}",
|
|
1132
|
+
2: "0px 2px 3px 0px #{$shadow-color}",
|
|
1133
|
+
3: "0px 3px 4px 0px #{$shadow-color}",
|
|
1134
|
+
4: "0px 4px 5px 0px #{$shadow-color}",
|
|
1135
|
+
5: "0px 5px 8px 0px #{$shadow-color}",
|
|
1136
|
+
6: "0px 6px 10px 0px #{$shadow-color}",
|
|
1137
|
+
7: "0px 7px 10px 1px #{$shadow-color}",
|
|
1138
|
+
8: "0px 8px 10px 1px #{$shadow-color}",
|
|
1139
|
+
9: "0px 9px 12px 1px #{$shadow-color}",
|
|
1140
|
+
10: "0px 10px 14px 1px #{$shadow-color}",
|
|
1141
|
+
11: "0px 11px 15px 1px #{$shadow-color}",
|
|
1142
|
+
12: "0px 12px 17px 2px #{$shadow-color}",
|
|
1143
|
+
13: "0px 13px 19px 2px #{$shadow-color}",
|
|
1144
|
+
14: "0px 14px 21px 2px #{$shadow-color}",
|
|
1145
|
+
15: "0px 15px 22px 2px #{$shadow-color}",
|
|
1146
|
+
16: "0px 16px 24px 2px #{$shadow-color}",
|
|
1147
|
+
17: "0px 17px 26px 2px #{$shadow-color}",
|
|
1148
|
+
18: "0px 18px 28px 2px #{$shadow-color}",
|
|
1149
|
+
19: "0px 19px 29px 2px #{$shadow-color}",
|
|
1150
|
+
20: "0px 20px 31px 3px #{$shadow-color}",
|
|
1151
|
+
21: "0px 21px 33px 3px #{$shadow-color}",
|
|
1152
|
+
22: "0px 22px 35px 3px #{$shadow-color}",
|
|
1153
|
+
23: "0px 23px 36px 3px #{$shadow-color}",
|
|
1154
|
+
24: "0px 24px 38px 3px #{$shadow-color}"
|
|
1155
|
+
);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
@function _get-ambient-map($color, $opacity) {
|
|
1159
|
+
$shadow-color: if(type-of($color)==color, rgba($color, $opacity * 0.033), $color);
|
|
1160
|
+
|
|
1161
|
+
@return (0: "0px 0px 0px 0px #{$shadow-color}",
|
|
1162
|
+
1: "0px 2px 2px 0px #{$shadow-color}",
|
|
1163
|
+
2: "0px 1px 5px 0px #{$shadow-color}",
|
|
1164
|
+
3: "0px 1px 8px 0px #{$shadow-color}",
|
|
1165
|
+
4: "0px 1px 10px 0px #{$shadow-color}",
|
|
1166
|
+
5: "0px 1px 14px 0px #{$shadow-color}",
|
|
1167
|
+
6: "0px 1px 18px 0px #{$shadow-color}",
|
|
1168
|
+
7: "0px 2px 16px 1px #{$shadow-color}",
|
|
1169
|
+
8: "0px 3px 14px 2px #{$shadow-color}",
|
|
1170
|
+
9: "0px 3px 16px 2px #{$shadow-color}",
|
|
1171
|
+
10: "0px 4px 18px 3px #{$shadow-color}",
|
|
1172
|
+
11: "0px 4px 20px 3px #{$shadow-color}",
|
|
1173
|
+
12: "0px 5px 22px 4px #{$shadow-color}",
|
|
1174
|
+
13: "0px 5px 24px 4px #{$shadow-color}",
|
|
1175
|
+
14: "0px 5px 26px 4px #{$shadow-color}",
|
|
1176
|
+
15: "0px 6px 28px 5px #{$shadow-color}",
|
|
1177
|
+
16: "0px 6px 30px 5px #{$shadow-color}",
|
|
1178
|
+
17: "0px 6px 32px 5px #{$shadow-color}",
|
|
1179
|
+
18: "0px 7px 34px 6px #{$shadow-color}",
|
|
1180
|
+
19: "0px 7px 36px 6px #{$shadow-color}",
|
|
1181
|
+
20: "0px 8px 38px 7px #{$shadow-color}",
|
|
1182
|
+
21: "0px 8px 40px 7px #{$shadow-color}",
|
|
1183
|
+
22: "0px 8px 42px 7px #{$shadow-color}",
|
|
1184
|
+
23: "0px 9px 44px 8px #{$shadow-color}",
|
|
1185
|
+
24: "0px 9px 46px 8px #{$shadow-color}"
|
|
1186
|
+
);
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
// Returns a string that can be used as the value for a transition property for elevation.
|
|
1190
|
+
// Calling this function directly is useful in situations where a component needs to transition
|
|
1191
|
+
// more than one property.
|
|
1192
|
+
//
|
|
1193
|
+
// .foo {
|
|
1194
|
+
// transition: elevation-transition-property-value(), opacity 100ms ease;
|
|
1195
|
+
// }
|
|
1196
|
+
@function elevation-transition-property-value($duration: $elevation-transition-duration,
|
|
1197
|
+
$easing: $elevation-transition-timing-function) {
|
|
1198
|
+
@return box-shadow #{$duration} #{$easing};
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
// Define the variable for the base size (usually 16 pixels = 1 rem).
|
|
1202
|
+
$base-font-size: 16px;
|
|
1203
|
+
|
|
1204
|
+
// Function to convert pixels to rem.
|
|
1205
|
+
@function px-to-rem($value-in-px) {
|
|
1206
|
+
@if $value-in-px !=0 {
|
|
1207
|
+
@return calc($value-in-px / $base-font-size) * 1rem;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
@else {
|
|
1211
|
+
@return $value-in-px;
|
|
1212
|
+
}
|
|
1213
|
+
}
|