material-inspired-component-library 1.0.0
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/.editorconfig +12 -0
- package/.gitattributes +9 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +35 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/LICENSE +21 -0
- package/README.md +99 -0
- package/components/README.md +12 -0
- package/components/accordion/README.md +94 -0
- package/components/bottomsheet/README.md +77 -0
- package/components/bottomsheet/bottomsheet.scss +134 -0
- package/components/bottomsheet/index.ts +152 -0
- package/components/button/README.md +92 -0
- package/components/button/button.scss +515 -0
- package/components/button/index.ts +73 -0
- package/components/card/README.md +125 -0
- package/components/card/card.scss +261 -0
- package/components/checkbox/README.md +62 -0
- package/components/checkbox/checkbox.scss +275 -0
- package/components/checkbox/index.ts +48 -0
- package/components/dialog/README.md +133 -0
- package/components/dialog/dialog.scss +262 -0
- package/components/divider/README.md +52 -0
- package/components/divider/divider.scss +74 -0
- package/components/iconbutton/README.md +86 -0
- package/components/iconbutton/iconbutton.scss +461 -0
- package/components/iconbutton/index.ts +73 -0
- package/components/list/README.md +176 -0
- package/components/list/index.ts +108 -0
- package/components/list/list.scss +295 -0
- package/components/menu/README.md +96 -0
- package/components/menu/index.ts +77 -0
- package/components/menu/menu.scss +124 -0
- package/components/radio/README.md +53 -0
- package/components/radio/radio.scss +138 -0
- package/components/select/README.md +84 -0
- package/components/select/select.scss +122 -0
- package/components/sidesheet/README.md +99 -0
- package/components/sidesheet/sidesheet.scss +162 -0
- package/components/slider/README.md +69 -0
- package/components/slider/index.ts +114 -0
- package/components/slider/slider.scss +258 -0
- package/components/switch/README.md +49 -0
- package/components/switch/switch.scss +176 -0
- package/components/textfield/README.md +75 -0
- package/components/textfield/index.ts +81 -0
- package/components/textfield/textfield.scss +387 -0
- package/components.ts +169 -0
- package/dist/bottomsheet.css +1 -0
- package/dist/bottomsheet.js +0 -0
- package/dist/button.css +1 -0
- package/dist/button.js +0 -0
- package/dist/card.css +1 -0
- package/dist/card.js +0 -0
- package/dist/checkbox.css +1 -0
- package/dist/checkbox.js +0 -0
- package/dist/dialog.css +1 -0
- package/dist/dialog.js +0 -0
- package/dist/divider.css +1 -0
- package/dist/divider.js +0 -0
- package/dist/iconbutton.css +1 -0
- package/dist/iconbutton.js +0 -0
- package/dist/list.css +1 -0
- package/dist/list.js +0 -0
- package/dist/menu.css +1 -0
- package/dist/menu.js +0 -0
- package/dist/micl.css +1 -0
- package/dist/micl.js +1 -0
- package/dist/radio.css +1 -0
- package/dist/radio.js +0 -0
- package/dist/select.css +1 -0
- package/dist/select.js +0 -0
- package/dist/sidesheet.css +1 -0
- package/dist/sidesheet.js +0 -0
- package/dist/slider.css +1 -0
- package/dist/slider.js +0 -0
- package/dist/switch.css +1 -0
- package/dist/switch.js +0 -0
- package/dist/textfield.css +1 -0
- package/dist/textfield.js +0 -0
- package/docs/accordion.html +285 -0
- package/docs/bottomsheet.html +162 -0
- package/docs/button.html +206 -0
- package/docs/card-awards.webp +0 -0
- package/docs/card-cabinet.webp +0 -0
- package/docs/card-city.webp +0 -0
- package/docs/card-fingerprint.webp +0 -0
- package/docs/card-holiday.webp +0 -0
- package/docs/card-names.webp +0 -0
- package/docs/card.html +91 -0
- package/docs/checkbox.html +99 -0
- package/docs/dialog.html +153 -0
- package/docs/divider.html +103 -0
- package/docs/docs.css +34 -0
- package/docs/docs.js +69 -0
- package/docs/iconbutton.html +197 -0
- package/docs/index.html +319 -0
- package/docs/list.html +224 -0
- package/docs/menu.html +143 -0
- package/docs/micl.css +1 -0
- package/docs/micl.js +1 -0
- package/docs/radio.html +101 -0
- package/docs/select.html +205 -0
- package/docs/sidesheet.html +115 -0
- package/docs/slider.html +72 -0
- package/docs/switch.html +151 -0
- package/docs/textfield.html +151 -0
- package/docs/themes/airblue/dark-hc.css +51 -0
- package/docs/themes/airblue/dark-mc.css +51 -0
- package/docs/themes/airblue/dark.css +51 -0
- package/docs/themes/airblue/light-hc.css +51 -0
- package/docs/themes/airblue/light-mc.css +51 -0
- package/docs/themes/airblue/light.css +51 -0
- package/docs/themes/airblue/theme.css +306 -0
- package/docs/themes/barnred/dark-hc.css +51 -0
- package/docs/themes/barnred/dark-mc.css +51 -0
- package/docs/themes/barnred/dark.css +51 -0
- package/docs/themes/barnred/light-hc.css +51 -0
- package/docs/themes/barnred/light-mc.css +51 -0
- package/docs/themes/barnred/light.css +51 -0
- package/docs/themes/barnred/theme.css +306 -0
- package/docs/themes/citrine/dark-hc.css +51 -0
- package/docs/themes/citrine/dark-mc.css +51 -0
- package/docs/themes/citrine/dark.css +51 -0
- package/docs/themes/citrine/light-hc.css +51 -0
- package/docs/themes/citrine/light-mc.css +51 -0
- package/docs/themes/citrine/light.css +51 -0
- package/docs/themes/citrine/theme.css +306 -0
- package/docs/themes/olivegreen/dark-hc.css +51 -0
- package/docs/themes/olivegreen/dark-mc.css +51 -0
- package/docs/themes/olivegreen/dark.css +51 -0
- package/docs/themes/olivegreen/light-hc.css +51 -0
- package/docs/themes/olivegreen/light-mc.css +51 -0
- package/docs/themes/olivegreen/light.css +51 -0
- package/docs/themes/olivegreen/theme.css +306 -0
- package/package.json +62 -0
- package/styles/README.md +99 -0
- package/styles/elevation.scss +36 -0
- package/styles/motion.scss +124 -0
- package/styles/ripple.scss +50 -0
- package/styles/shapes.scss +46 -0
- package/styles/statelayer.scss +42 -0
- package/styles/typography.scss +568 -0
- package/styles.scss +43 -0
- package/themes/README.md +57 -0
- package/themes/airblue/dark-hc.css +51 -0
- package/themes/airblue/dark-mc.css +51 -0
- package/themes/airblue/dark.css +51 -0
- package/themes/airblue/light-hc.css +51 -0
- package/themes/airblue/light-mc.css +51 -0
- package/themes/airblue/light.css +51 -0
- package/themes/airblue/theme.css +306 -0
- package/themes/barnred/dark-hc.css +51 -0
- package/themes/barnred/dark-mc.css +51 -0
- package/themes/barnred/dark.css +51 -0
- package/themes/barnred/light-hc.css +51 -0
- package/themes/barnred/light-mc.css +51 -0
- package/themes/barnred/light.css +51 -0
- package/themes/barnred/theme.css +306 -0
- package/themes/citrine/dark-hc.css +51 -0
- package/themes/citrine/dark-mc.css +51 -0
- package/themes/citrine/dark.css +51 -0
- package/themes/citrine/light-hc.css +51 -0
- package/themes/citrine/light-mc.css +51 -0
- package/themes/citrine/light.css +51 -0
- package/themes/citrine/theme.css +306 -0
- package/themes/olivegreen/dark-hc.css +51 -0
- package/themes/olivegreen/dark-mc.css +51 -0
- package/themes/olivegreen/dark.css +51 -0
- package/themes/olivegreen/light-hc.css +51 -0
- package/themes/olivegreen/light-mc.css +51 -0
- package/themes/olivegreen/light.css +51 -0
- package/themes/olivegreen/theme.css +306 -0
- package/tsconfig.json +110 -0
- package/webpack.config.js +49 -0
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright © 2025 Hermana AS
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
// in the Software without restriction, including without limitation the rights
|
|
7
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
// copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
// SOFTWARE.
|
|
21
|
+
|
|
22
|
+
:root {
|
|
23
|
+
--md-ref-typeface-plain: Roboto, system-ui, sans-serif;
|
|
24
|
+
--md-ref-typeface-brand: Roboto, system-ui, sans-serif;
|
|
25
|
+
--md-ref-typeface-weight-regular: 400;
|
|
26
|
+
--md-ref-typeface-weight-medium: 500;
|
|
27
|
+
--md-ref-typeface-weight-bold: 700;
|
|
28
|
+
|
|
29
|
+
--md-sys-typescale-display-large-font: var(--md-ref-typeface-brand);
|
|
30
|
+
--md-sys-typescale-display-large-size: 3.5625rem; // 57px
|
|
31
|
+
--md-sys-typescale-display-large-line-height: 4rem; // 64px
|
|
32
|
+
--md-sys-typescale-display-large-weight: var(--md-ref-typeface-weight-regular);
|
|
33
|
+
--md-sys-typescale-display-large-tracking: -0.015625rem; // ~0.25px letter-spacing
|
|
34
|
+
|
|
35
|
+
--md-sys-typescale-display-medium-font: var(--md-ref-typeface-brand);
|
|
36
|
+
--md-sys-typescale-display-medium-size: 2.8125rem; // 45px
|
|
37
|
+
--md-sys-typescale-display-medium-line-height: 3.25rem; // 52px
|
|
38
|
+
--md-sys-typescale-display-medium-weight: var(--md-ref-typeface-weight-regular);
|
|
39
|
+
--md-sys-typescale-display-medium-tracking: 0;
|
|
40
|
+
|
|
41
|
+
--md-sys-typescale-display-small-font: var(--md-ref-typeface-brand);
|
|
42
|
+
--md-sys-typescale-display-small-size: 2.25rem; // 36px
|
|
43
|
+
--md-sys-typescale-display-small-line-height: 2.75rem; // 44px
|
|
44
|
+
--md-sys-typescale-display-small-weight: var(--md-ref-typeface-weight-regular);
|
|
45
|
+
--md-sys-typescale-display-small-tracking: 0;
|
|
46
|
+
|
|
47
|
+
--md-sys-typescale-headline-large-font: var(--md-ref-typeface-brand);
|
|
48
|
+
--md-sys-typescale-headline-large-size: 2rem; // 32px
|
|
49
|
+
--md-sys-typescale-headline-large-line-height: 2.5rem; // 40px
|
|
50
|
+
--md-sys-typescale-headline-large-weight: var(--md-ref-typeface-weight-regular);
|
|
51
|
+
--md-sys-typescale-headline-large-tracking: 0;
|
|
52
|
+
|
|
53
|
+
--md-sys-typescale-headline-medium-font: var(--md-ref-typeface-brand);
|
|
54
|
+
--md-sys-typescale-headline-medium-size: 1.75rem; // 28px
|
|
55
|
+
--md-sys-typescale-headline-medium-line-height: 2.25rem; // 36px
|
|
56
|
+
--md-sys-typescale-headline-medium-weight: var(--md-ref-typeface-weight-regular);
|
|
57
|
+
--md-sys-typescale-headline-medium-tracking: 0;
|
|
58
|
+
|
|
59
|
+
--md-sys-typescale-headline-small-font: var(--md-ref-typeface-brand);
|
|
60
|
+
--md-sys-typescale-headline-small-size: 1.5rem; // 24px
|
|
61
|
+
--md-sys-typescale-headline-small-line-height: 2rem; // 32px
|
|
62
|
+
--md-sys-typescale-headline-small-weight: var(--md-ref-typeface-weight-regular);
|
|
63
|
+
--md-sys-typescale-headline-small-tracking: 0;
|
|
64
|
+
|
|
65
|
+
--md-sys-typescale-title-large-font: var(--md-ref-typeface-brand);
|
|
66
|
+
--md-sys-typescale-title-large-size: 1.375rem; // 22px
|
|
67
|
+
--md-sys-typescale-title-large-line-height: 1.75rem; // 28px
|
|
68
|
+
--md-sys-typescale-title-large-weight: var(--md-ref-typeface-weight-regular);
|
|
69
|
+
--md-sys-typescale-title-large-tracking: 0;
|
|
70
|
+
|
|
71
|
+
--md-sys-typescale-title-medium-font: var(--md-ref-typeface-plain);
|
|
72
|
+
--md-sys-typescale-title-medium-size: 1rem; // 16px
|
|
73
|
+
--md-sys-typescale-title-medium-line-height: 1.5rem; // 24px
|
|
74
|
+
--md-sys-typescale-title-medium-weight: var(--md-ref-typeface-weight-medium);
|
|
75
|
+
--md-sys-typescale-title-medium-tracking: 0,009375rem; // ~0.15px letter-spacing
|
|
76
|
+
|
|
77
|
+
--md-sys-typescale-title-small-font: var(--md-ref-typeface-plain);
|
|
78
|
+
--md-sys-typescale-title-small-size: 0.875rem; // 14px
|
|
79
|
+
--md-sys-typescale-title-small-line-height: 1.25rem; // 20px
|
|
80
|
+
--md-sys-typescale-title-small-weight: var(--md-ref-typeface-weight-medium);
|
|
81
|
+
--md-sys-typescale-title-small-tracking: 0.00625rem; // ~0.1px letter-spacing
|
|
82
|
+
|
|
83
|
+
--md-sys-typescale-body-large-font: var(--md-ref-typeface-plain);
|
|
84
|
+
--md-sys-typescale-body-large-size: 1rem; // 16px
|
|
85
|
+
--md-sys-typescale-body-large-line-height: 1.5rem; // 24px
|
|
86
|
+
--md-sys-typescale-body-large-weight: var(--md-ref-typeface-weight-regular);
|
|
87
|
+
--md-sys-typescale-body-large-tracking: 0.03125rem; // ~0.5px letter-spacing
|
|
88
|
+
|
|
89
|
+
--md-sys-typescale-body-medium-font: var(--md-ref-typeface-plain);
|
|
90
|
+
--md-sys-typescale-body-medium-size: 0.875rem; // 14px
|
|
91
|
+
--md-sys-typescale-body-medium-line-height: 1.25rem; // 20px
|
|
92
|
+
--md-sys-typescale-body-medium-weight: var(--md-ref-typeface-weight-regular);
|
|
93
|
+
--md-sys-typescale-body-medium-tracking: 0.015625rem; // ~0.25px letter-spacing
|
|
94
|
+
|
|
95
|
+
--md-sys-typescale-body-small-font: var(--md-ref-typeface-plain);
|
|
96
|
+
--md-sys-typescale-body-small-size: 0.75rem; // 12px
|
|
97
|
+
--md-sys-typescale-body-small-line-height: 1rem; // 16px
|
|
98
|
+
--md-sys-typescale-body-small-weight: var(--md-ref-typeface-weight-regular);
|
|
99
|
+
--md-sys-typescale-body-small-tracking: 0.025rem; // ~0.4px letter-spacing
|
|
100
|
+
|
|
101
|
+
--md-sys-typescale-label-large-font: var(--md-ref-typeface-plain);
|
|
102
|
+
--md-sys-typescale-label-large-size: 0.875rem; // 14px
|
|
103
|
+
--md-sys-typescale-label-large-line-height: 1.25rem; // 20px
|
|
104
|
+
--md-sys-typescale-label-large-weight: var(--md-ref-typeface-weight-medium);
|
|
105
|
+
--md-sys-typescale-label-large-tracking: 0.00625rem; // ~0.1px letter-spacing
|
|
106
|
+
|
|
107
|
+
--md-sys-typescale-label-medium-font: var(--md-ref-typeface-plain);
|
|
108
|
+
--md-sys-typescale-label-medium-size: 0.75rem; // 12px
|
|
109
|
+
--md-sys-typescale-label-medium-line-height: 1rem; // 16px
|
|
110
|
+
--md-sys-typescale-label-medium-weight: var(--md-ref-typeface-weight-medium);
|
|
111
|
+
--md-sys-typescale-label-medium-tracking: 0.03125rem; // ~0.5px letter-spacing
|
|
112
|
+
|
|
113
|
+
--md-sys-typescale-label-small-font: var(--md-ref-typeface-plain);
|
|
114
|
+
--md-sys-typescale-label-small-size: 0.6875rem; // 11px
|
|
115
|
+
--md-sys-typescale-label-small-line-height: 1rem; // 16px
|
|
116
|
+
--md-sys-typescale-label-small-weight: var(--md-ref-typeface-weight-medium);
|
|
117
|
+
--md-sys-typescale-label-small-tracking: 0.03125rem; // ~0.5px letter-spacing
|
|
118
|
+
|
|
119
|
+
--md-sys-typescale-emphasized-display-large-font: var(--md-ref-typeface-brand);
|
|
120
|
+
--md-sys-typescale-emphasized-display-large-size: 3.5625rem; // 57px
|
|
121
|
+
--md-sys-typescale-emphasized-display-large-line-height: 4rem; // 64px
|
|
122
|
+
--md-sys-typescale-emphasized-display-large-weight: var(--md-ref-typeface-weight-medium);
|
|
123
|
+
--md-sys-typescale-emphasized-display-large-tracking: -0.015625rem; // ~0.25px letter-spacing
|
|
124
|
+
|
|
125
|
+
--md-sys-typescale-emphasized-display-medium-font: var(--md-ref-typeface-brand);
|
|
126
|
+
--md-sys-typescale-emphasized-display-medium-size: 2.8125rem; // 45px
|
|
127
|
+
--md-sys-typescale-emphasized-display-medium-line-height: 3.25rem; // 52px
|
|
128
|
+
--md-sys-typescale-emphasized-display-medium-weight: var(--md-ref-typeface-weight-medium);
|
|
129
|
+
--md-sys-typescale-emphasized-display-medium-tracking: 0;
|
|
130
|
+
|
|
131
|
+
--md-sys-typescale-emphasized-display-small-font: var(--md-ref-typeface-brand);
|
|
132
|
+
--md-sys-typescale-emphasized-display-small-size: 2.25rem; // 36px
|
|
133
|
+
--md-sys-typescale-emphasized-display-small-line-height: 2.75rem; // 44px
|
|
134
|
+
--md-sys-typescale-emphasized-display-small-weight: var(--md-ref-typeface-weight-medium);
|
|
135
|
+
--md-sys-typescale-emphasized-display-small-tracking: 0;
|
|
136
|
+
|
|
137
|
+
--md-sys-typescale-emphasized-headline-large-font: var(--md-ref-typeface-brand);
|
|
138
|
+
--md-sys-typescale-emphasized-headline-large-size: 2rem; // 32px
|
|
139
|
+
--md-sys-typescale-emphasized-headline-large-line-height: 2.5rem; // 40px
|
|
140
|
+
--md-sys-typescale-emphasized-headline-large-weight: var(--md-ref-typeface-weight-medium);
|
|
141
|
+
--md-sys-typescale-emphasized-headline-large-tracking: 0;
|
|
142
|
+
|
|
143
|
+
--md-sys-typescale-emphasized-headline-medium-font: var(--md-ref-typeface-brand);
|
|
144
|
+
--md-sys-typescale-emphasized-headline-medium-size: 1.75rem; // 28px
|
|
145
|
+
--md-sys-typescale-emphasized-headline-medium-line-height: 2.25rem; // 36px
|
|
146
|
+
--md-sys-typescale-emphasized-headline-medium-weight: var(--md-ref-typeface-weight-medium);
|
|
147
|
+
--md-sys-typescale-emphasized-headline-medium-tracking: 0;
|
|
148
|
+
|
|
149
|
+
--md-sys-typescale-emphasized-headline-small-font: var(--md-ref-typeface-brand);
|
|
150
|
+
--md-sys-typescale-emphasized-headline-small-size: 1.5rem; // 24px
|
|
151
|
+
--md-sys-typescale-emphasized-headline-small-line-height: 2rem; // 32px
|
|
152
|
+
--md-sys-typescale-emphasized-headline-small-weight: var(--md-ref-typeface-weight-medium);
|
|
153
|
+
--md-sys-typescale-emphasized-headline-small-tracking: 0;
|
|
154
|
+
|
|
155
|
+
--md-sys-typescale-emphasized-title-large-font: var(--md-ref-typeface-brand);
|
|
156
|
+
--md-sys-typescale-emphasized-title-large-size: 1.375rem; // 22px
|
|
157
|
+
--md-sys-typescale-emphasized-title-large-line-height: 1.75rem; // 28px
|
|
158
|
+
--md-sys-typescale-emphasized-title-large-weight: var(--md-ref-typeface-weight-medium);
|
|
159
|
+
--md-sys-typescale-emphasized-title-large-tracking: 0;
|
|
160
|
+
|
|
161
|
+
--md-sys-typescale-emphasized-title-medium-font: var(--md-ref-typeface-plain);
|
|
162
|
+
--md-sys-typescale-emphasized-title-medium-size: 1rem; // 16px
|
|
163
|
+
--md-sys-typescale-emphasized-title-medium-line-height: 1.5rem; // 24px
|
|
164
|
+
--md-sys-typescale-emphasized-title-medium-weight: var(--md-ref-typeface-weight-bold);
|
|
165
|
+
--md-sys-typescale-emphasized-title-medium-tracking: 0,009375rem; // ~0.15px letter-spacing
|
|
166
|
+
|
|
167
|
+
--md-sys-typescale-emphasized-title-small-font: var(--md-ref-typeface-plain);
|
|
168
|
+
--md-sys-typescale-emphasized-title-small-size: 0.875rem; // 14px
|
|
169
|
+
--md-sys-typescale-emphasized-title-small-line-height: 1.25rem; // 20px
|
|
170
|
+
--md-sys-typescale-emphasized-title-small-weight: var(--md-ref-typeface-weight-bold);
|
|
171
|
+
--md-sys-typescale-emphasized-title-small-tracking: 0.00625rem; // ~0.1px letter-spacing
|
|
172
|
+
|
|
173
|
+
--md-sys-typescale-emphasized-body-large-font: var(--md-ref-typeface-plain);
|
|
174
|
+
--md-sys-typescale-emphasized-body-large-size: 1rem; // 16px
|
|
175
|
+
--md-sys-typescale-emphasized-body-large-line-height: 1.5rem; // 24px
|
|
176
|
+
--md-sys-typescale-emphasized-body-large-weight: var(--md-ref-typeface-weight-medium);
|
|
177
|
+
--md-sys-typescale-emphasized-body-large-tracking: 0.03125rem; // ~0.5px letter-spacing
|
|
178
|
+
|
|
179
|
+
--md-sys-typescale-emphasized-body-medium-font: var(--md-ref-typeface-plain);
|
|
180
|
+
--md-sys-typescale-emphasized-body-medium-size: 0.875rem; // 14px
|
|
181
|
+
--md-sys-typescale-emphasized-body-medium-line-height: 1.25rem; // 20px
|
|
182
|
+
--md-sys-typescale-emphasized-body-medium-weight: var(--md-ref-typeface-weight-medium);
|
|
183
|
+
--md-sys-typescale-emphasized-body-medium-tracking: 0.015625rem; // ~0.25px letter-spacing
|
|
184
|
+
|
|
185
|
+
--md-sys-typescale-emphasized-body-small-font: var(--md-ref-typeface-plain);
|
|
186
|
+
--md-sys-typescale-emphasized-body-small-size: 0.75rem; // 12px
|
|
187
|
+
--md-sys-typescale-emphasized-body-small-line-height: 1rem; // 16px
|
|
188
|
+
--md-sys-typescale-emphasized-body-small-weight: var(--md-ref-typeface-weight-medium);
|
|
189
|
+
--md-sys-typescale-emphasized-body-small-tracking: 0.025rem; // ~0.4px letter-spacing
|
|
190
|
+
|
|
191
|
+
--md-sys-typescale-emphasized-label-large-font: var(--md-ref-typeface-plain);
|
|
192
|
+
--md-sys-typescale-emphasized-label-large-size: 0.875rem; // 14px
|
|
193
|
+
--md-sys-typescale-emphasized-label-large-line-height: 1.25rem; // 20px
|
|
194
|
+
--md-sys-typescale-emphasized-label-large-weight: var(--md-ref-typeface-weight-bold);
|
|
195
|
+
--md-sys-typescale-emphasized-label-large-tracking: 0.00625rem; // ~0.1px letter-spacing
|
|
196
|
+
|
|
197
|
+
--md-sys-typescale-emphasized-label-medium-font: var(--md-ref-typeface-plain);
|
|
198
|
+
--md-sys-typescale-emphasized-label-medium-size: 0.75rem; // 12px
|
|
199
|
+
--md-sys-typescale-emphasized-label-medium-line-height: 1rem; // 16px
|
|
200
|
+
--md-sys-typescale-emphasized-label-medium-weight: var(--md-ref-typeface-weight-bold);
|
|
201
|
+
--md-sys-typescale-emphasized-label-medium-tracking: 0.03125rem; // ~0.5px letter-spacing
|
|
202
|
+
|
|
203
|
+
--md-sys-typescale-emphasized-label-small-font: var(--md-ref-typeface-plain);
|
|
204
|
+
--md-sys-typescale-emphasized-label-small-size: 0.6875rem; // 11px
|
|
205
|
+
--md-sys-typescale-emphasized-label-small-line-height: 1rem; // 16px
|
|
206
|
+
--md-sys-typescale-emphasized-label-small-weight: var(--md-ref-typeface-weight-bold);
|
|
207
|
+
--md-sys-typescale-emphasized-label-small-tracking: 0.03125rem; // ~0.5px letter-spacing
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@mixin display-large {
|
|
211
|
+
font-family: var(--md-sys-typescale-display-large-font);
|
|
212
|
+
font-size: var(--md-sys-typescale-display-large-size);
|
|
213
|
+
line-height: var(--md-sys-typescale-display-large-line-height);
|
|
214
|
+
font-weight: var(--md-sys-typescale-display-large-weight);
|
|
215
|
+
letter-spacing: var(--md-sys-typescale-display-large-tracking);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@mixin display-medium {
|
|
219
|
+
font-family: var(--md-sys-typescale-display-medium-font);
|
|
220
|
+
font-size: var(--md-sys-typescale-display-medium-size);
|
|
221
|
+
line-height: var(--md-sys-typescale-display-medium-line-height);
|
|
222
|
+
font-weight: var(--md-sys-typescale-display-medium-weight);
|
|
223
|
+
letter-spacing: var(--md-sys-typescale-display-medium-tracking);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@mixin display-small {
|
|
227
|
+
font-family: var(--md-sys-typescale-display-small-font);
|
|
228
|
+
font-size: var(--md-sys-typescale-display-small-size);
|
|
229
|
+
line-height: var(--md-sys-typescale-display-small-line-height);
|
|
230
|
+
font-weight: var(--md-sys-typescale-display-small-weight);
|
|
231
|
+
letter-spacing: var(--md-sys-typescale-display-small-tracking);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@mixin headline-large {
|
|
235
|
+
font-family: var(--md-sys-typescale-headline-large-font);
|
|
236
|
+
font-size: var(--md-sys-typescale-headline-large-size);
|
|
237
|
+
line-height: var(--md-sys-typescale-headline-large-line-height);
|
|
238
|
+
font-weight: var(--md-sys-typescale-headline-large-weight);
|
|
239
|
+
letter-spacing: var(--md-sys-typescale-headline-large-tracking);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@mixin headline-medium {
|
|
243
|
+
font-family: var(--md-sys-typescale-headline-medium-font);
|
|
244
|
+
font-size: var(--md-sys-typescale-headline-medium-size);
|
|
245
|
+
line-height: var(--md-sys-typescale-headline-medium-line-height);
|
|
246
|
+
font-weight: var(--md-sys-typescale-headline-medium-weight);
|
|
247
|
+
letter-spacing: var(--md-sys-typescale-headline-medium-tracking);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@mixin headline-small {
|
|
251
|
+
font-family: var(--md-sys-typescale-headline-small-font);
|
|
252
|
+
font-size: var(--md-sys-typescale-headline-small-size);
|
|
253
|
+
line-height: var(--md-sys-typescale-headline-small-line-height);
|
|
254
|
+
font-weight: var(--md-sys-typescale-headline-small-weight);
|
|
255
|
+
letter-spacing: var(--md-sys-typescale-headline-small-tracking);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@mixin title-large {
|
|
259
|
+
font-family: var(--md-sys-typescale-title-large-font);
|
|
260
|
+
font-size: var(--md-sys-typescale-title-large-size);
|
|
261
|
+
line-height: var(--md-sys-typescale-title-large-line-height);
|
|
262
|
+
font-weight: var(--md-sys-typescale-title-large-weight);
|
|
263
|
+
letter-spacing: var(--md-sys-typescale-title-large-tracking);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@mixin title-medium {
|
|
267
|
+
font-family: var(--md-sys-typescale-title-medium-font);
|
|
268
|
+
font-size: var(--md-sys-typescale-title-medium-size);
|
|
269
|
+
line-height: var(--md-sys-typescale-title-medium-line-height);
|
|
270
|
+
font-weight: var(--md-sys-typescale-title-medium-weight);
|
|
271
|
+
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@mixin title-small {
|
|
275
|
+
font-family: var(--md-sys-typescale-title-small-font);
|
|
276
|
+
font-size: var(--md-sys-typescale-title-small-size);
|
|
277
|
+
line-height: var(--md-sys-typescale-title-small-line-height);
|
|
278
|
+
font-weight: var(--md-sys-typescale-title-small-weight);
|
|
279
|
+
letter-spacing: var(--md-sys-typescale-title-small-tracking);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@mixin body-large {
|
|
283
|
+
font-family: var(--md-sys-typescale-body-large-font);
|
|
284
|
+
font-size: var(--md-sys-typescale-body-large-size);
|
|
285
|
+
line-height: var(--md-sys-typescale-body-large-line-height);
|
|
286
|
+
font-weight: var(--md-sys-typescale-body-large-weight);
|
|
287
|
+
letter-spacing: var(--md-sys-typescale-body-large-tracking);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@mixin body-medium {
|
|
291
|
+
font-family: var(--md-sys-typescale-body-medium-font);
|
|
292
|
+
font-size: var(--md-sys-typescale-body-medium-size);
|
|
293
|
+
line-height: var(--md-sys-typescale-body-medium-line-height);
|
|
294
|
+
font-weight: var(--md-sys-typescale-body-medium-weight);
|
|
295
|
+
letter-spacing: var(--md-sys-typescale-body-medium-tracking);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@mixin body-small {
|
|
299
|
+
font-family: var(--md-sys-typescale-body-small-font);
|
|
300
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
301
|
+
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
302
|
+
font-weight: var(--md-sys-typescale-body-small-weight);
|
|
303
|
+
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@mixin label-large {
|
|
307
|
+
font-family: var(--md-sys-typescale-label-large-font);
|
|
308
|
+
font-size: var(--md-sys-typescale-label-large-size);
|
|
309
|
+
line-height: var(--md-sys-typescale-label-large-line-height);
|
|
310
|
+
font-weight: var(--md-sys-typescale-label-large-weight);
|
|
311
|
+
letter-spacing: var(--md-sys-typescale-label-large-tracking);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@mixin label-medium {
|
|
315
|
+
font-family: var(--md-sys-typescale-label-medium-font);
|
|
316
|
+
font-size: var(--md-sys-typescale-label-medium-size);
|
|
317
|
+
line-height: var(--md-sys-typescale-label-medium-line-height);
|
|
318
|
+
font-weight: var(--md-sys-typescale-label-medium-weight);
|
|
319
|
+
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@mixin label-small {
|
|
323
|
+
font-family: var(--md-sys-typescale-label-small-font);
|
|
324
|
+
font-size: var(--md-sys-typescale-label-small-size);
|
|
325
|
+
line-height: var(--md-sys-typescale-label-small-line-height);
|
|
326
|
+
font-weight: var(--md-sys-typescale-label-small-weight);
|
|
327
|
+
letter-spacing: var(--md-sys-typescale-label-small-tracking);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@mixin emphasized-display-large {
|
|
331
|
+
font-family: var(--md-sys-typescale-emphasized-display-large-font);
|
|
332
|
+
font-size: var(--md-sys-typescale-emphasized-display-large-size);
|
|
333
|
+
line-height: var(--md-sys-typescale-emphasized-display-large-line-height);
|
|
334
|
+
font-weight: var(--md-sys-typescale-emphasized-display-large-weight);
|
|
335
|
+
letter-spacing: var(--md-sys-typescale-emphasized-display-large-tracking);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@mixin emphasized-display-medium {
|
|
339
|
+
font-family: var(--md-sys-typescale-emphasized-display-medium-font);
|
|
340
|
+
font-size: var(--md-sys-typescale-emphasized-display-medium-size);
|
|
341
|
+
line-height: var(--md-sys-typescale-emphasized-display-medium-line-height);
|
|
342
|
+
font-weight: var(--md-sys-typescale-emphasized-display-medium-weight);
|
|
343
|
+
letter-spacing: var(--md-sys-typescale-emphasized-display-medium-tracking);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@mixin emphasized-display-small {
|
|
347
|
+
font-family: var(--md-sys-typescale-emphasized-display-small-font);
|
|
348
|
+
font-size: var(--md-sys-typescale-emphasized-display-small-size);
|
|
349
|
+
line-height: var(--md-sys-typescale-emphasized-display-small-line-height);
|
|
350
|
+
font-weight: var(--md-sys-typescale-emphasized-display-small-weight);
|
|
351
|
+
letter-spacing: var(--md-sys-typescale-emphasized-display-small-tracking);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@mixin emphasized-headline-large {
|
|
355
|
+
font-family: var(--md-sys-typescale-emphasized-headline-large-font);
|
|
356
|
+
font-size: var(--md-sys-typescale-emphasized-headline-large-size);
|
|
357
|
+
line-height: var(--md-sys-typescale-emphasized-headline-large-line-height);
|
|
358
|
+
font-weight: var(--md-sys-typescale-emphasized-headline-large-weight);
|
|
359
|
+
letter-spacing: var(--md-sys-typescale-emphasized-headline-large-tracking);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@mixin emphasized-headline-medium {
|
|
363
|
+
font-family: var(--md-sys-typescale-emphasized-headline-medium-font);
|
|
364
|
+
font-size: var(--md-sys-typescale-emphasized-headline-medium-size);
|
|
365
|
+
line-height: var(--md-sys-typescale-emphasized-headline-medium-line-height);
|
|
366
|
+
font-weight: var(--md-sys-typescale-emphasized-headline-medium-weight);
|
|
367
|
+
letter-spacing: var(--md-sys-typescale-emphasized-headline-medium-tracking);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
@mixin emphasized-headline-small {
|
|
371
|
+
font-family: var(--md-sys-typescale-emphasized-headline-small-font);
|
|
372
|
+
font-size: var(--md-sys-typescale-emphasized-headline-small-size);
|
|
373
|
+
line-height: var(--md-sys-typescale-emphasized-headline-small-line-height);
|
|
374
|
+
font-weight: var(--md-sys-typescale-emphasized-headline-small-weight);
|
|
375
|
+
letter-spacing: var(--md-sys-typescale-emphasized-headline-small-tracking);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@mixin emphasized-title-large {
|
|
379
|
+
font-family: var(--md-sys-typescale-emphasized-title-large-font);
|
|
380
|
+
font-size: var(--md-sys-typescale-emphasized-title-large-size);
|
|
381
|
+
line-height: var(--md-sys-typescale-emphasized-title-large-line-height);
|
|
382
|
+
font-weight: var(--md-sys-typescale-emphasized-title-large-weight);
|
|
383
|
+
letter-spacing: var(--md-sys-typescale-emphasized-title-large-tracking);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@mixin emphasized-title-medium {
|
|
387
|
+
font-family: var(--md-sys-typescale-emphasized-title-medium-font);
|
|
388
|
+
font-size: var(--md-sys-typescale-emphasized-title-medium-size);
|
|
389
|
+
line-height: var(--md-sys-typescale-emphasized-title-medium-line-height);
|
|
390
|
+
font-weight: var(--md-sys-typescale-emphasized-title-medium-weight);
|
|
391
|
+
letter-spacing: var(--md-sys-typescale-emphasized-title-medium-tracking);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@mixin emphasized-title-small {
|
|
395
|
+
font-family: var(--md-sys-typescale-emphasized-title-small-font);
|
|
396
|
+
font-size: var(--md-sys-typescale-emphasized-title-small-size);
|
|
397
|
+
line-height: var(--md-sys-typescale-emphasized-title-small-line-height);
|
|
398
|
+
font-weight: var(--md-sys-typescale-emphasized-title-small-weight);
|
|
399
|
+
letter-spacing: var(--md-sys-typescale-emphasized-title-small-tracking);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@mixin emphasized-body-large {
|
|
403
|
+
font-family: var(--md-sys-typescale-emphasized-body-large-font);
|
|
404
|
+
font-size: var(--md-sys-typescale-emphasized-body-large-size);
|
|
405
|
+
line-height: var(--md-sys-typescale-emphasized-body-large-line-height);
|
|
406
|
+
font-weight: var(--md-sys-typescale-emphasized-body-large-weight);
|
|
407
|
+
letter-spacing: var(--md-sys-typescale-emphasized-body-large-tracking);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@mixin emphasized-body-medium {
|
|
411
|
+
font-family: var(--md-sys-typescale-emphasized-body-medium-font);
|
|
412
|
+
font-size: var(--md-sys-typescale-emphasized-body-medium-size);
|
|
413
|
+
line-height: var(--md-sys-typescale-emphasized-body-medium-line-height);
|
|
414
|
+
font-weight: var(--md-sys-typescale-emphasized-body-medium-weight);
|
|
415
|
+
letter-spacing: var(--md-sys-typescale-emphasized-body-medium-tracking);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@mixin emphasized-body-small {
|
|
419
|
+
font-family: var(--md-sys-typescale-emphasized-body-small-font);
|
|
420
|
+
font-size: var(--md-sys-typescale-emphasized-body-small-size);
|
|
421
|
+
line-height: var(--md-sys-typescale-emphasized-body-small-line-height);
|
|
422
|
+
font-weight: var(--md-sys-typescale-emphasized-body-small-weight);
|
|
423
|
+
letter-spacing: var(--md-sys-typescale-emphasized-body-small-tracking);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@mixin emphasized-label-large {
|
|
427
|
+
font-family: var(--md-sys-typescale-emphasized-label-large-font);
|
|
428
|
+
font-size: var(--md-sys-typescale-emphasized-label-large-size);
|
|
429
|
+
line-height: var(--md-sys-typescale-emphasized-label-large-line-height);
|
|
430
|
+
font-weight: var(--md-sys-typescale-emphasized-label-large-weight);
|
|
431
|
+
letter-spacing: var(--md-sys-typescale-emphasized-label-large-tracking);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@mixin emphasized-label-medium {
|
|
435
|
+
font-family: var(--md-sys-typescale-emphasized-label-medium-font);
|
|
436
|
+
font-size: var(--md-sys-typescale-emphasized-label-medium-size);
|
|
437
|
+
line-height: var(--md-sys-typescale-emphasized-label-medium-line-height);
|
|
438
|
+
font-weight: var(--md-sys-typescale-emphasized-label-medium-weight);
|
|
439
|
+
letter-spacing: var(--md-sys-typescale-emphasized-label-medium-tracking);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
@mixin emphasized-label-small {
|
|
443
|
+
font-family: var(--md-sys-typescale-emphasized-label-small-font);
|
|
444
|
+
font-size: var(--md-sys-typescale-emphasized-label-small-size);
|
|
445
|
+
line-height: var(--md-sys-typescale-emphasized-label-small-line-height);
|
|
446
|
+
font-weight: var(--md-sys-typescale-emphasized-label-small-weight);
|
|
447
|
+
letter-spacing: var(--md-sys-typescale-emphasized-label-small-tracking);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.md-sys-typescale-display-large {
|
|
451
|
+
@include display-large;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.md-sys-typescale-display-medium {
|
|
455
|
+
@include display-medium;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.md-sys-typescale-display-small {
|
|
459
|
+
@include display-small;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.md-sys-typescale-headline-large {
|
|
463
|
+
@include headline-large;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.md-sys-typescale-headline-medium {
|
|
467
|
+
@include headline-medium;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.md-sys-typescale-headline-small {
|
|
471
|
+
@include headline-small;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.md-sys-typescale-title-large {
|
|
475
|
+
@include title-large;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.md-sys-typescale-title-medium {
|
|
479
|
+
@include title-medium;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.md-sys-typescale-title-small {
|
|
483
|
+
@include title-small;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.md-sys-typescale-body-large {
|
|
487
|
+
@include body-large;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.md-sys-typescale-body-medium {
|
|
491
|
+
@include body-medium;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.md-sys-typescale-body-small {
|
|
495
|
+
@include body-small;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.md-sys-typescale-label-large {
|
|
499
|
+
@include label-large;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.md-sys-typescale-label-medium {
|
|
503
|
+
@include label-medium;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.md-sys-typescale-label-small {
|
|
507
|
+
@include label-small;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.md-sys-typescale-emphasized-display-large {
|
|
511
|
+
@include emphasized-display-large;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.md-sys-typescale-emphasized-display-medium {
|
|
515
|
+
@include emphasized-display-medium;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.md-sys-typescale-emphasized-display-small {
|
|
519
|
+
@include emphasized-display-small;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.md-sys-typescale-emphasized-headline-large {
|
|
523
|
+
@include emphasized-headline-large;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.md-sys-typescale-emphasized-headline-medium {
|
|
527
|
+
@include emphasized-headline-medium;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.md-sys-typescale-emphasized-headline-small {
|
|
531
|
+
@include emphasized-headline-small;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.md-sys-typescale-emphasized-title-large {
|
|
535
|
+
@include emphasized-title-large;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.md-sys-typescale-emphasized-title-medium {
|
|
539
|
+
@include emphasized-title-medium;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.md-sys-typescale-emphasized-title-small {
|
|
543
|
+
@include emphasized-title-small;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.md-sys-typescale-emphasized-body-large {
|
|
547
|
+
@include emphasized-body-large;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.md-sys-typescale-emphasized-body-medium {
|
|
551
|
+
@include emphasized-body-medium;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.md-sys-typescale-emphasized-body-small {
|
|
555
|
+
@include emphasized-body-small;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.md-sys-typescale-emphasized-label-large {
|
|
559
|
+
@include emphasized-label-large;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.md-sys-typescale-emphasized-label-medium {
|
|
563
|
+
@include emphasized-label-medium;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.md-sys-typescale-emphasized-label-small {
|
|
567
|
+
@include emphasized-label-small;
|
|
568
|
+
}
|
package/styles.scss
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright © 2025 Hermana AS
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
// in the Software without restriction, including without limitation the rights
|
|
7
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
// copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
// SOFTWARE.
|
|
21
|
+
|
|
22
|
+
@use 'styles/typography';
|
|
23
|
+
@use 'styles/shapes';
|
|
24
|
+
@use 'styles/elevation';
|
|
25
|
+
@use 'styles/motion';
|
|
26
|
+
@use 'styles/ripple';
|
|
27
|
+
@use 'styles/statelayer';
|
|
28
|
+
|
|
29
|
+
@use 'components/divider/divider';
|
|
30
|
+
@use 'components/radio/radio';
|
|
31
|
+
@use 'components/checkbox/checkbox';
|
|
32
|
+
@use 'components/switch/switch';
|
|
33
|
+
@use 'components/textfield/textfield';
|
|
34
|
+
@use 'components/slider/slider';
|
|
35
|
+
@use 'components/button/button';
|
|
36
|
+
@use 'components/iconbutton/iconbutton';
|
|
37
|
+
@use 'components/list/list';
|
|
38
|
+
@use 'components/menu/menu';
|
|
39
|
+
@use 'components/select/select';
|
|
40
|
+
@use 'components/card/card';
|
|
41
|
+
@use 'components/dialog/dialog';
|
|
42
|
+
@use 'components/sidesheet/sidesheet';
|
|
43
|
+
@use 'components/bottomsheet/bottomsheet';
|
package/themes/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Themes
|
|
2
|
+
This documentation covers how MICL uses color schemes and design tokens to style its components. By using design tokens, you can ensure style updates propagate consistently throughout your web page or application.
|
|
3
|
+
|
|
4
|
+
## How it works
|
|
5
|
+
|
|
6
|
+
A **color scheme** is a set of design tokens that map to specific color values. A design token, such as `--md-sys-color-primary`, is a variable that represents a specific role or function within a design system.
|
|
7
|
+
|
|
8
|
+
For example, you could define a `light.css` file for a light theme:
|
|
9
|
+
|
|
10
|
+
```CSS
|
|
11
|
+
:root {
|
|
12
|
+
--md-sys-color-primary: rgb(32 100 135);
|
|
13
|
+
/* Other light mode color tokens... */
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Similarly, you could create a `dark.css` file for a dark theme:
|
|
18
|
+
|
|
19
|
+
```CSS
|
|
20
|
+
:root {
|
|
21
|
+
--md-sys-color-primary: rgb(145 206 245);
|
|
22
|
+
/* Other dark mode color tokens... */
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
These files reference the same tokens but assign them different color values. You can then apply a theme to your application by conditionally including the appropriate CSS file or by switching a class on a root element, like the `<body>`.
|
|
27
|
+
|
|
28
|
+
**Example: Switching themes with a class**
|
|
29
|
+
|
|
30
|
+
```HTML
|
|
31
|
+
.light {
|
|
32
|
+
--md-sys-color-primary: rgb(32 100 135);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.dark {
|
|
36
|
+
--md-sys-color-primary: rgb(145 206 245);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
<body class="light">
|
|
40
|
+
</body>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This approach allows you to switch between themes with minimal effort, as all components will automatically update their colors based on the new token values.
|
|
44
|
+
|
|
45
|
+
## Using Pre-built Themes
|
|
46
|
+
The MICL package includes several example color schemes that you can use as a starting point for your project. These are provided as separate CSS files for easy integration.
|
|
47
|
+
|
|
48
|
+
To use the "Olive Green" light theme, for instance, simply import it into your main stylesheet:
|
|
49
|
+
|
|
50
|
+
```CSS
|
|
51
|
+
@use "micl/themes/olivegreen/light.css";
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
You can then apply this theme to your <body> or another root element in your application.
|
|
55
|
+
|
|
56
|
+
## Creating a Custom Theme
|
|
57
|
+
To create your own custom color scheme, you can generate a set of design tokens that match your brand's color palette. The process for generating these custom themes is comprehensively described in the [Material Design Color Guide](https://m3.material.io/styles/color/static/custom-brand). This guide provides tools and best practices for creating a harmonious and accessible color system for your application.
|