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,306 @@
|
|
|
1
|
+
.light {
|
|
2
|
+
--md-sys-color-primary: rgb(90 99 30);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(90 99 30);
|
|
4
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
+
--md-sys-color-primary-container: rgb(223 233 149);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(67 75 6);
|
|
7
|
+
--md-sys-color-secondary: rgb(93 97 69);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(227 229 194);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(70 73 47);
|
|
11
|
+
--md-sys-color-tertiary: rgb(59 102 91);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(189 236 222);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(34 78 68);
|
|
15
|
+
--md-sys-color-error: rgb(186 26 26);
|
|
16
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
|
+
--md-sys-color-error-container: rgb(255 218 214);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(147 0 10);
|
|
19
|
+
--md-sys-color-background: rgb(252 250 237);
|
|
20
|
+
--md-sys-color-on-background: rgb(27 28 20);
|
|
21
|
+
--md-sys-color-surface: rgb(252 250 237);
|
|
22
|
+
--md-sys-color-on-surface: rgb(27 28 20);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(228 227 210);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(71 72 59);
|
|
25
|
+
--md-sys-color-outline: rgb(120 120 106);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(200 199 183);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(48 49 40);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(243 241 228);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(194 205 124);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(223 233 149);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(25 30 0);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(194 205 124);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(67 75 6);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(227 229 194);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(26 29 7);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(198 201 167);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(70 73 47);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(189 236 222);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 32 26);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(34 78 68);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(220 218 206);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(252 250 237);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(246 244 231);
|
|
48
|
+
--md-sys-color-surface-container: rgb(240 238 225);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(234 233 220);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(228 227 214);
|
|
51
|
+
}
|
|
52
|
+
.light-medium-contrast {
|
|
53
|
+
--md-sys-color-primary: rgb(51 58 0);
|
|
54
|
+
--md-sys-color-surface-tint: rgb(90 99 30);
|
|
55
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
56
|
+
--md-sys-color-primary-container: rgb(105 114 44);
|
|
57
|
+
--md-sys-color-on-primary-container: rgb(255 255 255);
|
|
58
|
+
--md-sys-color-secondary: rgb(53 56 31);
|
|
59
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
60
|
+
--md-sys-color-secondary-container: rgb(108 111 82);
|
|
61
|
+
--md-sys-color-on-secondary-container: rgb(255 255 255);
|
|
62
|
+
--md-sys-color-tertiary: rgb(14 61 51);
|
|
63
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
64
|
+
--md-sys-color-tertiary-container: rgb(74 117 105);
|
|
65
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
66
|
+
--md-sys-color-error: rgb(116 0 6);
|
|
67
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
68
|
+
--md-sys-color-error-container: rgb(207 44 39);
|
|
69
|
+
--md-sys-color-on-error-container: rgb(255 255 255);
|
|
70
|
+
--md-sys-color-background: rgb(252 250 237);
|
|
71
|
+
--md-sys-color-on-background: rgb(27 28 20);
|
|
72
|
+
--md-sys-color-surface: rgb(252 250 237);
|
|
73
|
+
--md-sys-color-on-surface: rgb(17 18 11);
|
|
74
|
+
--md-sys-color-surface-variant: rgb(228 227 210);
|
|
75
|
+
--md-sys-color-on-surface-variant: rgb(54 55 43);
|
|
76
|
+
--md-sys-color-outline: rgb(83 83 70);
|
|
77
|
+
--md-sys-color-outline-variant: rgb(109 110 96);
|
|
78
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
79
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
80
|
+
--md-sys-color-inverse-surface: rgb(48 49 40);
|
|
81
|
+
--md-sys-color-inverse-on-surface: rgb(243 241 228);
|
|
82
|
+
--md-sys-color-inverse-primary: rgb(194 205 124);
|
|
83
|
+
--md-sys-color-primary-fixed: rgb(105 114 44);
|
|
84
|
+
--md-sys-color-on-primary-fixed: rgb(255 255 255);
|
|
85
|
+
--md-sys-color-primary-fixed-dim: rgb(81 89 21);
|
|
86
|
+
--md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
|
|
87
|
+
--md-sys-color-secondary-fixed: rgb(108 111 82);
|
|
88
|
+
--md-sys-color-on-secondary-fixed: rgb(255 255 255);
|
|
89
|
+
--md-sys-color-secondary-fixed-dim: rgb(84 87 60);
|
|
90
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
|
|
91
|
+
--md-sys-color-tertiary-fixed: rgb(74 117 105);
|
|
92
|
+
--md-sys-color-on-tertiary-fixed: rgb(255 255 255);
|
|
93
|
+
--md-sys-color-tertiary-fixed-dim: rgb(49 93 81);
|
|
94
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
|
|
95
|
+
--md-sys-color-surface-dim: rgb(200 199 187);
|
|
96
|
+
--md-sys-color-surface-bright: rgb(252 250 237);
|
|
97
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
98
|
+
--md-sys-color-surface-container-low: rgb(246 244 231);
|
|
99
|
+
--md-sys-color-surface-container: rgb(234 233 220);
|
|
100
|
+
--md-sys-color-surface-container-high: rgb(223 221 209);
|
|
101
|
+
--md-sys-color-surface-container-highest: rgb(211 210 198);
|
|
102
|
+
}
|
|
103
|
+
.light-high-contrast {
|
|
104
|
+
--md-sys-color-primary: rgb(41 47 0);
|
|
105
|
+
--md-sys-color-surface-tint: rgb(90 99 30);
|
|
106
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
107
|
+
--md-sys-color-primary-container: rgb(69 78 8);
|
|
108
|
+
--md-sys-color-on-primary-container: rgb(255 255 255);
|
|
109
|
+
--md-sys-color-secondary: rgb(43 46 22);
|
|
110
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
111
|
+
--md-sys-color-secondary-container: rgb(72 75 49);
|
|
112
|
+
--md-sys-color-on-secondary-container: rgb(255 255 255);
|
|
113
|
+
--md-sys-color-tertiary: rgb(0 51 41);
|
|
114
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
115
|
+
--md-sys-color-tertiary-container: rgb(37 81 70);
|
|
116
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
117
|
+
--md-sys-color-error: rgb(96 0 4);
|
|
118
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
119
|
+
--md-sys-color-error-container: rgb(152 0 10);
|
|
120
|
+
--md-sys-color-on-error-container: rgb(255 255 255);
|
|
121
|
+
--md-sys-color-background: rgb(252 250 237);
|
|
122
|
+
--md-sys-color-on-background: rgb(27 28 20);
|
|
123
|
+
--md-sys-color-surface: rgb(252 250 237);
|
|
124
|
+
--md-sys-color-on-surface: rgb(0 0 0);
|
|
125
|
+
--md-sys-color-surface-variant: rgb(228 227 210);
|
|
126
|
+
--md-sys-color-on-surface-variant: rgb(0 0 0);
|
|
127
|
+
--md-sys-color-outline: rgb(44 45 34);
|
|
128
|
+
--md-sys-color-outline-variant: rgb(73 74 61);
|
|
129
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
130
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
131
|
+
--md-sys-color-inverse-surface: rgb(48 49 40);
|
|
132
|
+
--md-sys-color-inverse-on-surface: rgb(255 255 255);
|
|
133
|
+
--md-sys-color-inverse-primary: rgb(194 205 124);
|
|
134
|
+
--md-sys-color-primary-fixed: rgb(69 78 8);
|
|
135
|
+
--md-sys-color-on-primary-fixed: rgb(255 255 255);
|
|
136
|
+
--md-sys-color-primary-fixed-dim: rgb(47 54 0);
|
|
137
|
+
--md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
|
|
138
|
+
--md-sys-color-secondary-fixed: rgb(72 75 49);
|
|
139
|
+
--md-sys-color-on-secondary-fixed: rgb(255 255 255);
|
|
140
|
+
--md-sys-color-secondary-fixed-dim: rgb(49 53 28);
|
|
141
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
|
|
142
|
+
--md-sys-color-tertiary-fixed: rgb(37 81 70);
|
|
143
|
+
--md-sys-color-on-tertiary-fixed: rgb(255 255 255);
|
|
144
|
+
--md-sys-color-tertiary-fixed-dim: rgb(9 58 48);
|
|
145
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
|
|
146
|
+
--md-sys-color-surface-dim: rgb(186 185 173);
|
|
147
|
+
--md-sys-color-surface-bright: rgb(252 250 237);
|
|
148
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
149
|
+
--md-sys-color-surface-container-low: rgb(243 241 228);
|
|
150
|
+
--md-sys-color-surface-container: rgb(228 227 214);
|
|
151
|
+
--md-sys-color-surface-container-high: rgb(214 213 200);
|
|
152
|
+
--md-sys-color-surface-container-highest: rgb(200 199 187);
|
|
153
|
+
}
|
|
154
|
+
.dark {
|
|
155
|
+
--md-sys-color-primary: rgb(194 205 124);
|
|
156
|
+
--md-sys-color-surface-tint: rgb(194 205 124);
|
|
157
|
+
--md-sys-color-on-primary: rgb(45 52 0);
|
|
158
|
+
--md-sys-color-primary-container: rgb(67 75 6);
|
|
159
|
+
--md-sys-color-on-primary-container: rgb(223 233 149);
|
|
160
|
+
--md-sys-color-secondary: rgb(198 201 167);
|
|
161
|
+
--md-sys-color-on-secondary: rgb(47 50 26);
|
|
162
|
+
--md-sys-color-secondary-container: rgb(70 73 47);
|
|
163
|
+
--md-sys-color-on-secondary-container: rgb(227 229 194);
|
|
164
|
+
--md-sys-color-tertiary: rgb(162 208 194);
|
|
165
|
+
--md-sys-color-on-tertiary: rgb(6 55 46);
|
|
166
|
+
--md-sys-color-tertiary-container: rgb(34 78 68);
|
|
167
|
+
--md-sys-color-on-tertiary-container: rgb(189 236 222);
|
|
168
|
+
--md-sys-color-error: rgb(255 180 171);
|
|
169
|
+
--md-sys-color-on-error: rgb(105 0 5);
|
|
170
|
+
--md-sys-color-error-container: rgb(147 0 10);
|
|
171
|
+
--md-sys-color-on-error-container: rgb(255 218 214);
|
|
172
|
+
--md-sys-color-background: rgb(19 20 13);
|
|
173
|
+
--md-sys-color-on-background: rgb(228 227 214);
|
|
174
|
+
--md-sys-color-surface: rgb(19 20 13);
|
|
175
|
+
--md-sys-color-on-surface: rgb(228 227 214);
|
|
176
|
+
--md-sys-color-surface-variant: rgb(71 72 59);
|
|
177
|
+
--md-sys-color-on-surface-variant: rgb(200 199 183);
|
|
178
|
+
--md-sys-color-outline: rgb(145 146 131);
|
|
179
|
+
--md-sys-color-outline-variant: rgb(71 72 59);
|
|
180
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
181
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
182
|
+
--md-sys-color-inverse-surface: rgb(228 227 214);
|
|
183
|
+
--md-sys-color-inverse-on-surface: rgb(48 49 40);
|
|
184
|
+
--md-sys-color-inverse-primary: rgb(90 99 30);
|
|
185
|
+
--md-sys-color-primary-fixed: rgb(223 233 149);
|
|
186
|
+
--md-sys-color-on-primary-fixed: rgb(25 30 0);
|
|
187
|
+
--md-sys-color-primary-fixed-dim: rgb(194 205 124);
|
|
188
|
+
--md-sys-color-on-primary-fixed-variant: rgb(67 75 6);
|
|
189
|
+
--md-sys-color-secondary-fixed: rgb(227 229 194);
|
|
190
|
+
--md-sys-color-on-secondary-fixed: rgb(26 29 7);
|
|
191
|
+
--md-sys-color-secondary-fixed-dim: rgb(198 201 167);
|
|
192
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(70 73 47);
|
|
193
|
+
--md-sys-color-tertiary-fixed: rgb(189 236 222);
|
|
194
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 32 26);
|
|
195
|
+
--md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
|
|
196
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(34 78 68);
|
|
197
|
+
--md-sys-color-surface-dim: rgb(19 20 13);
|
|
198
|
+
--md-sys-color-surface-bright: rgb(57 58 49);
|
|
199
|
+
--md-sys-color-surface-container-lowest: rgb(14 15 8);
|
|
200
|
+
--md-sys-color-surface-container-low: rgb(27 28 20);
|
|
201
|
+
--md-sys-color-surface-container: rgb(31 32 24);
|
|
202
|
+
--md-sys-color-surface-container-high: rgb(42 43 34);
|
|
203
|
+
--md-sys-color-surface-container-highest: rgb(53 53 45);
|
|
204
|
+
}
|
|
205
|
+
.dark-medium-contrast {
|
|
206
|
+
--md-sys-color-primary: rgb(216 227 144);
|
|
207
|
+
--md-sys-color-surface-tint: rgb(194 205 124);
|
|
208
|
+
--md-sys-color-on-primary: rgb(35 40 0);
|
|
209
|
+
--md-sys-color-primary-container: rgb(141 151 76);
|
|
210
|
+
--md-sys-color-on-primary-container: rgb(0 0 0);
|
|
211
|
+
--md-sys-color-secondary: rgb(220 223 188);
|
|
212
|
+
--md-sys-color-on-secondary: rgb(36 39 16);
|
|
213
|
+
--md-sys-color-secondary-container: rgb(144 147 116);
|
|
214
|
+
--md-sys-color-on-secondary-container: rgb(0 0 0);
|
|
215
|
+
--md-sys-color-tertiary: rgb(183 230 216);
|
|
216
|
+
--md-sys-color-on-tertiary: rgb(0 44 35);
|
|
217
|
+
--md-sys-color-tertiary-container: rgb(109 154 141);
|
|
218
|
+
--md-sys-color-on-tertiary-container: rgb(0 0 0);
|
|
219
|
+
--md-sys-color-error: rgb(255 210 204);
|
|
220
|
+
--md-sys-color-on-error: rgb(84 0 3);
|
|
221
|
+
--md-sys-color-error-container: rgb(255 84 73);
|
|
222
|
+
--md-sys-color-on-error-container: rgb(0 0 0);
|
|
223
|
+
--md-sys-color-background: rgb(19 20 13);
|
|
224
|
+
--md-sys-color-on-background: rgb(228 227 214);
|
|
225
|
+
--md-sys-color-surface: rgb(19 20 13);
|
|
226
|
+
--md-sys-color-on-surface: rgb(255 255 255);
|
|
227
|
+
--md-sys-color-surface-variant: rgb(71 72 59);
|
|
228
|
+
--md-sys-color-on-surface-variant: rgb(222 221 204);
|
|
229
|
+
--md-sys-color-outline: rgb(179 179 163);
|
|
230
|
+
--md-sys-color-outline-variant: rgb(145 145 130);
|
|
231
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
232
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
233
|
+
--md-sys-color-inverse-surface: rgb(228 227 214);
|
|
234
|
+
--md-sys-color-inverse-on-surface: rgb(42 43 34);
|
|
235
|
+
--md-sys-color-inverse-primary: rgb(68 76 7);
|
|
236
|
+
--md-sys-color-primary-fixed: rgb(223 233 149);
|
|
237
|
+
--md-sys-color-on-primary-fixed: rgb(16 19 0);
|
|
238
|
+
--md-sys-color-primary-fixed-dim: rgb(194 205 124);
|
|
239
|
+
--md-sys-color-on-primary-fixed-variant: rgb(51 58 0);
|
|
240
|
+
--md-sys-color-secondary-fixed: rgb(227 229 194);
|
|
241
|
+
--md-sys-color-on-secondary-fixed: rgb(16 19 1);
|
|
242
|
+
--md-sys-color-secondary-fixed-dim: rgb(198 201 167);
|
|
243
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(53 56 31);
|
|
244
|
+
--md-sys-color-tertiary-fixed: rgb(189 236 222);
|
|
245
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 21 16);
|
|
246
|
+
--md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
|
|
247
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(14 61 51);
|
|
248
|
+
--md-sys-color-surface-dim: rgb(19 20 13);
|
|
249
|
+
--md-sys-color-surface-bright: rgb(69 69 60);
|
|
250
|
+
--md-sys-color-surface-container-lowest: rgb(7 8 3);
|
|
251
|
+
--md-sys-color-surface-container-low: rgb(29 30 22);
|
|
252
|
+
--md-sys-color-surface-container: rgb(40 40 32);
|
|
253
|
+
--md-sys-color-surface-container-high: rgb(51 51 43);
|
|
254
|
+
--md-sys-color-surface-container-highest: rgb(62 62 53);
|
|
255
|
+
}
|
|
256
|
+
.dark-high-contrast {
|
|
257
|
+
--md-sys-color-primary: rgb(236 247 161);
|
|
258
|
+
--md-sys-color-surface-tint: rgb(194 205 124);
|
|
259
|
+
--md-sys-color-on-primary: rgb(0 0 0);
|
|
260
|
+
--md-sys-color-primary-container: rgb(191 201 120);
|
|
261
|
+
--md-sys-color-on-primary-container: rgb(10 13 0);
|
|
262
|
+
--md-sys-color-secondary: rgb(240 243 207);
|
|
263
|
+
--md-sys-color-on-secondary: rgb(0 0 0);
|
|
264
|
+
--md-sys-color-secondary-container: rgb(194 197 163);
|
|
265
|
+
--md-sys-color-on-secondary-container: rgb(10 13 0);
|
|
266
|
+
--md-sys-color-tertiary: rgb(203 250 235);
|
|
267
|
+
--md-sys-color-on-tertiary: rgb(0 0 0);
|
|
268
|
+
--md-sys-color-tertiary-container: rgb(158 204 190);
|
|
269
|
+
--md-sys-color-on-tertiary-container: rgb(0 14 10);
|
|
270
|
+
--md-sys-color-error: rgb(255 236 233);
|
|
271
|
+
--md-sys-color-on-error: rgb(0 0 0);
|
|
272
|
+
--md-sys-color-error-container: rgb(255 174 164);
|
|
273
|
+
--md-sys-color-on-error-container: rgb(34 0 1);
|
|
274
|
+
--md-sys-color-background: rgb(19 20 13);
|
|
275
|
+
--md-sys-color-on-background: rgb(228 227 214);
|
|
276
|
+
--md-sys-color-surface: rgb(19 20 13);
|
|
277
|
+
--md-sys-color-on-surface: rgb(255 255 255);
|
|
278
|
+
--md-sys-color-surface-variant: rgb(71 72 59);
|
|
279
|
+
--md-sys-color-on-surface-variant: rgb(255 255 255);
|
|
280
|
+
--md-sys-color-outline: rgb(242 241 223);
|
|
281
|
+
--md-sys-color-outline-variant: rgb(196 195 179);
|
|
282
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
283
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
284
|
+
--md-sys-color-inverse-surface: rgb(228 227 214);
|
|
285
|
+
--md-sys-color-inverse-on-surface: rgb(0 0 0);
|
|
286
|
+
--md-sys-color-inverse-primary: rgb(68 76 7);
|
|
287
|
+
--md-sys-color-primary-fixed: rgb(223 233 149);
|
|
288
|
+
--md-sys-color-on-primary-fixed: rgb(0 0 0);
|
|
289
|
+
--md-sys-color-primary-fixed-dim: rgb(194 205 124);
|
|
290
|
+
--md-sys-color-on-primary-fixed-variant: rgb(16 19 0);
|
|
291
|
+
--md-sys-color-secondary-fixed: rgb(227 229 194);
|
|
292
|
+
--md-sys-color-on-secondary-fixed: rgb(0 0 0);
|
|
293
|
+
--md-sys-color-secondary-fixed-dim: rgb(198 201 167);
|
|
294
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(16 19 1);
|
|
295
|
+
--md-sys-color-tertiary-fixed: rgb(189 236 222);
|
|
296
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 0 0);
|
|
297
|
+
--md-sys-color-tertiary-fixed-dim: rgb(162 208 194);
|
|
298
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(0 21 16);
|
|
299
|
+
--md-sys-color-surface-dim: rgb(19 20 13);
|
|
300
|
+
--md-sys-color-surface-bright: rgb(80 81 71);
|
|
301
|
+
--md-sys-color-surface-container-lowest: rgb(0 0 0);
|
|
302
|
+
--md-sys-color-surface-container-low: rgb(31 32 24);
|
|
303
|
+
--md-sys-color-surface-container: rgb(48 49 40);
|
|
304
|
+
--md-sys-color-surface-container-high: rgb(60 60 51);
|
|
305
|
+
--md-sys-color-surface-container-highest: rgb(71 71 62);
|
|
306
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "material-inspired-component-library",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "The Material-Inspired Component Library (MICL) offers a collection of beautifully crafted components leveraging native HTML markup, designed to align with the Material Design 3 guidelines.",
|
|
5
|
+
"author": "MICL Hermana <micl.hermana@proton.me> (https://github.com/henkpb/micl)",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"Material Design",
|
|
9
|
+
"component library",
|
|
10
|
+
"web components",
|
|
11
|
+
"front-end",
|
|
12
|
+
"UI",
|
|
13
|
+
"UX",
|
|
14
|
+
"accordion",
|
|
15
|
+
"bottomsheet",
|
|
16
|
+
"button",
|
|
17
|
+
"card",
|
|
18
|
+
"checkbox",
|
|
19
|
+
"dialog",
|
|
20
|
+
"divider",
|
|
21
|
+
"iconbutton",
|
|
22
|
+
"list",
|
|
23
|
+
"menu",
|
|
24
|
+
"radio button",
|
|
25
|
+
"sidesheet",
|
|
26
|
+
"slider",
|
|
27
|
+
"switch",
|
|
28
|
+
"textfield"
|
|
29
|
+
],
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/henkpb/micl"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/henkpb/micl",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/henkpb/micl/issues"
|
|
37
|
+
},
|
|
38
|
+
"main": "index.js",
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "webpack",
|
|
41
|
+
"start": "echo 'No start script yet'",
|
|
42
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"autoprefixer": "^10.4.19",
|
|
46
|
+
"css-loader": "^7.1.2",
|
|
47
|
+
"extract-loader": "^5.1.0",
|
|
48
|
+
"file-loader": "^6.2.0",
|
|
49
|
+
"glob": "^11.0.3",
|
|
50
|
+
"mini-css-extract-plugin": "^2.9.3",
|
|
51
|
+
"postcss-loader": "^8.1.1",
|
|
52
|
+
"sass": "^1.89.1",
|
|
53
|
+
"sass-loader": "^16.0.5",
|
|
54
|
+
"ts-loader": "^9.5.2",
|
|
55
|
+
"typescript": "^5.8.3",
|
|
56
|
+
"webpack": "^5.99",
|
|
57
|
+
"webpack-cli": "^6.0"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"material-inspired-component-library": "file:"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/styles/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Styles
|
|
2
|
+
This guide covers the fundamental visual settings used by components, all based on the [Material Design 3 Styles](https://m3.material.io/styles) specifications.
|
|
3
|
+
|
|
4
|
+
## Elevation
|
|
5
|
+
Elevation represents the distance between surfaces on the z-axis, creating a sense of depth and hierarchy. It's a realization of the [Material Design 3 Elevation](https://m3.material.io/styles/elevation/overview) system.
|
|
6
|
+
|
|
7
|
+
### CSS
|
|
8
|
+
Import the elevation styles into your project:
|
|
9
|
+
|
|
10
|
+
```CSS
|
|
11
|
+
@use "micl/styles/elevation";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Customizations
|
|
15
|
+
You can customize elevation levels by overriding their global CSS variables.
|
|
16
|
+
|
|
17
|
+
**Example: Changing the elevation of a sidesheet:**
|
|
18
|
+
|
|
19
|
+
```HTML
|
|
20
|
+
<div style="--md-sys-elevation-level1: rgba(0, 0, 0, 0.2) 0px 3px 4px -1px, rgba(0, 0, 0, 0.1) 0px 4px 8px 0px, rgba(0, 0, 0, 0.1) 0px 1px 9px 0px">
|
|
21
|
+
<dialog class="micl-sidesheet" closedby="any" popover>
|
|
22
|
+
</dialog>
|
|
23
|
+
</div>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Motion
|
|
28
|
+
Motion brings your UI to life, making it expressive and intuitive to use. The motion styles are based on the [Material Design 3 Motion](https://m3.material.io/styles/motion/overview/how-it-works) guidelines.
|
|
29
|
+
|
|
30
|
+
### CSS
|
|
31
|
+
Import the motion styles into your project:
|
|
32
|
+
|
|
33
|
+
```CSS
|
|
34
|
+
@use "micl/styles/motion";
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Shapes
|
|
39
|
+
Shapes add decorative flair and help emphasize elements. These styles adhere to the [Material Design 3 Shape](https://m3.material.io/styles/shape/overview-principles) principles.
|
|
40
|
+
|
|
41
|
+
### CSS
|
|
42
|
+
Import the shape styles into your project:
|
|
43
|
+
|
|
44
|
+
```CSS
|
|
45
|
+
@use "micl/styles/shapes";
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Customizations
|
|
49
|
+
You can customize a component's shape by overriding its global CSS variables, such as adjusting the corner radius.
|
|
50
|
+
|
|
51
|
+
**Example: Changing the corner radius of a card:**
|
|
52
|
+
|
|
53
|
+
```HTML
|
|
54
|
+
<div style="--md-sys-shape-corner-medium: 14px">
|
|
55
|
+
<div class="micl-card-outlined">
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## State layers
|
|
62
|
+
State layers are visual overlays that communicate the interaction status of a component, such as when it's hovered over or pressed. These are based on [Material Design 3 States](https://m3.material.io/foundations/interaction/states/overview).
|
|
63
|
+
|
|
64
|
+
### CSS
|
|
65
|
+
Import the state layer styles into your project:
|
|
66
|
+
|
|
67
|
+
```CSS
|
|
68
|
+
@use "micl/styles/statelayer";
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Customizations
|
|
72
|
+
Customize the appearance of state layers by overriding their global CSS variables, such as adjusting the opacity.
|
|
73
|
+
|
|
74
|
+
**Example: Changing the opacity of the hover-state layer:**
|
|
75
|
+
|
|
76
|
+
```HTML
|
|
77
|
+
<div style="--md-sys-state-hover-state-layer-opacity: 12%">
|
|
78
|
+
</div>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## Typography
|
|
83
|
+
Typography is the foundation of text styling. The typography styles in this library are based on the [Material Design 3 Typography](https://m3.material.io/styles/typography/overview) specifications.
|
|
84
|
+
|
|
85
|
+
### CSS
|
|
86
|
+
Import the typography styles into your project:
|
|
87
|
+
|
|
88
|
+
```CSS
|
|
89
|
+
@use "micl/styles/typography";
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Customizations
|
|
93
|
+
You can customize font settings by overriding their global CSS variables.
|
|
94
|
+
|
|
95
|
+
**Changing the brand style font:**
|
|
96
|
+
|
|
97
|
+
```HTML
|
|
98
|
+
<div style="--md-ref-typeface-brand:Helvetica, Arial, sans-serif">
|
|
99
|
+
</div>
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
$md-sys-elevation-level0: rgba(0, 0, 0, 0.2) 0px 0px 0px 0px, rgba(0, 0, 0, 0.14) 0px 0px 0px 0px, rgba(0, 0, 0, 0.12) 0px 0px 0px 0px;
|
|
23
|
+
$md-sys-elevation-level1: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
|
|
24
|
+
$md-sys-elevation-level2: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
|
|
25
|
+
$md-sys-elevation-level3: rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;
|
|
26
|
+
$md-sys-elevation-level4: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
|
|
27
|
+
$md-sys-elevation-level5: rgba(0, 0, 0, 0.2) 0px 7px 8px -4px, rgba(0, 0, 0, 0.14) 0px 12px 17px 2px, rgba(0, 0, 0, 0.12) 0px 5px 22px 4px;
|
|
28
|
+
|
|
29
|
+
:root {
|
|
30
|
+
--md-sys-elevation-level0: #{$md-sys-elevation-level0};
|
|
31
|
+
--md-sys-elevation-level1: #{$md-sys-elevation-level1};
|
|
32
|
+
--md-sys-elevation-level2: #{$md-sys-elevation-level2};
|
|
33
|
+
--md-sys-elevation-level3: #{$md-sys-elevation-level3};
|
|
34
|
+
--md-sys-elevation-level4: #{$md-sys-elevation-level4};
|
|
35
|
+
--md-sys-elevation-level5: #{$md-sys-elevation-level5};
|
|
36
|
+
}
|