@expressivecss/expressive 0.1.0-alpha.3 → 0.2.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/LICENSE +82 -2
- package/README.md +153 -43
- package/dist/css/expressive.css +7121 -9658
- package/dist/css/expressive.css.map +1 -0
- package/dist/css/expressive.min.css +1 -1
- package/dist/css/expressive.min.css.map +1 -0
- package/dist/js/expressive.cjs +7521 -0
- package/dist/js/expressive.cjs.map +7 -0
- package/dist/js/expressive.js +7383 -8099
- package/dist/js/expressive.js.map +7 -1
- package/dist/js/expressive.min.js +75 -1
- package/dist/js/expressive.min.js.map +7 -1
- package/dist/js/expressive.mjs +7292 -7998
- package/dist/js/expressive.mjs.map +7 -1
- package/dist/types/behaviors/dialogs.d.ts +25 -0
- package/dist/{js → types}/components/autocomplete.d.ts +10 -1
- package/dist/{js → types}/components/buttons.d.ts +11 -1
- package/dist/{js → types}/components/cards.d.ts +10 -1
- package/dist/{js → types}/components/carousel.d.ts +4 -5
- package/dist/{js/forms/character-counter.d.ts → types/components/characterCounter.d.ts} +1 -1
- package/dist/{js → types}/components/chips.d.ts +1 -1
- package/dist/{js → types}/components/collapsible.d.ts +1 -1
- package/dist/{js → types}/components/datepicker.d.ts +63 -2
- package/dist/{js → types}/components/dropdown.d.ts +3 -3
- package/dist/types/components/index.d.ts +23 -0
- package/dist/{js/components/materialbox.d.ts → types/components/lightbox.d.ts} +21 -21
- package/dist/{js → types}/components/modal.d.ts +1 -1
- package/dist/{js → types}/components/parallax.d.ts +11 -5
- package/dist/{js → types}/components/pushpin.d.ts +1 -1
- package/dist/{js/forms → types/components}/range.d.ts +3 -3
- package/dist/types/components/registry.d.ts +107 -0
- package/dist/{js → types}/components/scrollspy.d.ts +6 -9
- package/dist/{js/forms → types/components}/select.d.ts +11 -2
- package/dist/{js → types}/components/sidenav.d.ts +1 -1
- package/dist/{js → types}/components/slider.d.ts +3 -2
- package/dist/{js → types}/components/tabs.d.ts +3 -2
- package/dist/{js/components/tap-target.d.ts → types/components/tapTarget.d.ts} +2 -2
- package/dist/{js → types}/components/timepicker.d.ts +13 -5
- package/dist/{js/components/toast.d.ts → types/components/toasts.d.ts} +28 -4
- package/dist/{js → types}/components/tooltip.d.ts +2 -2
- package/dist/types/core/bounding.d.ts +6 -0
- package/dist/{js/foundation → types/core}/component.d.ts +1 -1
- package/dist/types/core/edges.d.ts +6 -0
- package/dist/{js/foundation → types/core}/utils.d.ts +21 -14
- package/dist/types/index.d.ts +7 -0
- package/dist/{js/plugins/docked-display.d.ts → types/plugins/dockedDisplayPlugin.d.ts} +7 -0
- package/package.json +60 -36
- package/src/sass/README.md +200 -0
- package/src/sass/abstracts/_breakpoints.scss +69 -0
- package/src/sass/abstracts/_elevation.scss +34 -0
- package/src/sass/abstracts/_index.scss +7 -0
- package/src/sass/abstracts/_mixins.scss +171 -0
- package/src/sass/abstracts/_variables.scss +57 -0
- package/src/{scss/layout/_table.scss → sass/base/_global.scss} +64 -2
- package/src/{scss/layout → sass/base}/_grid.scss +6 -6
- package/src/sass/base/_index.scss +6 -0
- package/src/{scss/foundation → sass/base}/_normalize.scss +51 -139
- package/src/sass/base/_typography.scss +90 -0
- package/src/sass/components/_badges.scss +77 -0
- package/src/{scss → sass}/components/_breadcrumb.scss +2 -0
- package/src/sass/components/_buttons.scss +407 -0
- package/src/sass/components/_cards.scss +328 -0
- package/src/{scss → sass}/components/_carousel.scss +5 -3
- package/src/sass/components/_chips.scss +140 -0
- package/src/sass/components/_collapsible.scss +81 -0
- package/src/{scss → sass}/components/_collection.scss +2 -2
- package/src/{scss/components/_date-picker.scss → sass/components/_datepicker.scss} +51 -44
- package/src/sass/components/_docked-display.scss +11 -0
- package/src/sass/components/_dropdown.scss +129 -0
- package/src/{scss/components/_material-icons.scss → sass/components/_icons-material-design.scss} +2 -0
- package/src/sass/components/_index.scss +35 -0
- package/src/{scss/components/_material-box.scss → sass/components/_lightbox.scss} +6 -4
- package/src/sass/components/_modal.scss +208 -0
- package/src/sass/components/_navbar.scss +345 -0
- package/src/{scss/layout/_footer.scss → sass/components/_page-footer.scss} +7 -6
- package/src/{scss → sass}/components/_pagination.scss +4 -3
- package/src/{scss → sass}/components/_parallax.scss +4 -1
- package/src/{scss → sass}/components/_preloader.scss +19 -97
- package/src/{scss → sass}/components/_pulse.scss +2 -0
- package/src/sass/components/_pushpin.scss +11 -0
- package/src/{scss → sass}/components/_sidenav.scss +99 -82
- package/src/{scss → sass}/components/_slider.scss +3 -1
- package/src/{scss/components/_table-of-contents.scss → sass/components/_table_of_contents.scss} +2 -0
- package/src/sass/components/_tabs.scss +232 -0
- package/src/{scss/components/_tap-target.scss → sass/components/_tapTarget.scss} +24 -22
- package/src/{scss/components/_time-picker.scss → sass/components/_timepicker.scss} +56 -56
- package/src/sass/components/_toast.scss +260 -0
- package/src/sass/components/_toolbar.scss +192 -0
- package/src/sass/components/_tooltip.scss +166 -0
- package/src/{scss → sass}/components/_transitions.scss +4 -4
- package/src/sass/components/forms/_checkboxes.scss +288 -0
- package/src/sass/components/forms/_fieldset.scss +128 -0
- package/src/{scss → sass/components}/forms/_file-input.scss +11 -9
- package/src/{scss → sass/components}/forms/_index.scss +2 -0
- package/src/sass/components/forms/_input-fields.scss +326 -0
- package/src/sass/components/forms/_radio-buttons.scss +190 -0
- package/src/sass/components/forms/_range.scss +310 -0
- package/src/sass/components/forms/_select.scss +103 -0
- package/src/sass/components/forms/_switches.scss +239 -0
- package/src/sass/expressive.scss +60 -0
- package/src/sass/tokens/_index.scss +4 -0
- package/src/sass/tokens/_reference.scss +265 -0
- package/src/sass/tokens/_theme.scss +49 -0
- package/src/sass/utilities/_helpers.scss +63 -0
- package/src/sass/utilities/_index.scss +8 -0
- package/src/{scss → sass}/utilities/_spacing.scss +4 -3
- package/src/sass/utilities/_typescale.scss +45 -0
- package/src/sass/utilities/_visibility.scss +63 -0
- package/src/sass/utilities/_z-depth.scss +18 -0
- package/dist/js/components/index.d.ts +0 -21
- package/dist/js/forms/index.d.ts +0 -4
- package/dist/js/foundation/index.d.ts +0 -2
- package/dist/js/index.d.ts +0 -52
- package/dist/js/plugins/index.d.ts +0 -1
- package/src/scss/components/_appbar.scss +0 -454
- package/src/scss/components/_badges.scss +0 -77
- package/src/scss/components/_buttons.scss +0 -412
- package/src/scss/components/_cards.scss +0 -267
- package/src/scss/components/_chips.scss +0 -147
- package/src/scss/components/_collapsible.scss +0 -84
- package/src/scss/components/_dropdown.scss +0 -98
- package/src/scss/components/_index.scss +0 -28
- package/src/scss/components/_modal.scss +0 -84
- package/src/scss/components/_tabs.scss +0 -176
- package/src/scss/components/_toast.scss +0 -70
- package/src/scss/components/_tooltip.scss +0 -49
- package/src/scss/components/_video.scss +0 -15
- package/src/scss/expressive.scss +0 -7
- package/src/scss/forms/_checkboxes.scss +0 -199
- package/src/scss/forms/_input-fields.scss +0 -360
- package/src/scss/forms/_radio-buttons.scss +0 -114
- package/src/scss/forms/_range.scss +0 -148
- package/src/scss/forms/_select.scss +0 -108
- package/src/scss/forms/_switches.scss +0 -127
- package/src/scss/foundation/_base.scss +0 -71
- package/src/scss/foundation/_color-palette.scss +0 -402
- package/src/scss/foundation/_index.scss +0 -10
- package/src/scss/foundation/_mixins.scss +0 -198
- package/src/scss/foundation/_motion.scss +0 -70
- package/src/scss/foundation/_shape.scss +0 -30
- package/src/scss/foundation/_state-layers.scss +0 -68
- package/src/scss/foundation/_theme.scss +0 -238
- package/src/scss/foundation/_tokens.scss +0 -511
- package/src/scss/foundation/_variables.scss +0 -57
- package/src/scss/layout/_index.scss +0 -3
- package/src/scss/utilities/_a11y.scss +0 -77
- package/src/scss/utilities/_elevation.scss +0 -63
- package/src/scss/utilities/_helpers.scss +0 -50
- package/src/scss/utilities/_index.scss +0 -7
- package/src/scss/utilities/_responsive.scss +0 -62
- package/src/scss/utilities/_typography.scss +0 -115
- /package/dist/{js/forms → types/behaviors}/forms.d.ts +0 -0
- /package/dist/{js/components → types/behaviors}/waves.d.ts +0 -0
- /package/src/{scss → sass}/utilities/_colors.scss +0 -0
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
// Google Color Palette defined: http://www.google.com/design/spec/style/color.html
|
|
2
|
-
|
|
3
|
-
$materialize-red: (
|
|
4
|
-
"base": #e51c23,
|
|
5
|
-
"lighten-5": #fdeaeb,
|
|
6
|
-
"lighten-4": #f8c1c3,
|
|
7
|
-
"lighten-3": #f3989b,
|
|
8
|
-
"lighten-2": #ee6e73,
|
|
9
|
-
"lighten-1": #ea454b,
|
|
10
|
-
"darken-1": #d0181e,
|
|
11
|
-
"darken-2": #b9151b,
|
|
12
|
-
"darken-3": #a21318,
|
|
13
|
-
"darken-4": #8b1014,
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
$red: (
|
|
17
|
-
"base": #F44336,
|
|
18
|
-
"lighten-5": #FFEBEE,
|
|
19
|
-
"lighten-4": #FFCDD2,
|
|
20
|
-
"lighten-3": #EF9A9A,
|
|
21
|
-
"lighten-2": #E57373,
|
|
22
|
-
"lighten-1": #EF5350,
|
|
23
|
-
"darken-1": #E53935,
|
|
24
|
-
"darken-2": #D32F2F,
|
|
25
|
-
"darken-3": #C62828,
|
|
26
|
-
"darken-4": #B71C1C,
|
|
27
|
-
"accent-1": #FF8A80,
|
|
28
|
-
"accent-2": #FF5252,
|
|
29
|
-
"accent-3": #FF1744,
|
|
30
|
-
"accent-4": #D50000
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
$pink: (
|
|
34
|
-
"base": #e91e63,
|
|
35
|
-
"lighten-5": #fce4ec,
|
|
36
|
-
"lighten-4": #f8bbd0,
|
|
37
|
-
"lighten-3": #f48fb1,
|
|
38
|
-
"lighten-2": #f06292,
|
|
39
|
-
"lighten-1": #ec407a,
|
|
40
|
-
"darken-1": #d81b60,
|
|
41
|
-
"darken-2": #c2185b,
|
|
42
|
-
"darken-3": #ad1457,
|
|
43
|
-
"darken-4": #880e4f,
|
|
44
|
-
"accent-1": #ff80ab,
|
|
45
|
-
"accent-2": #ff4081,
|
|
46
|
-
"accent-3": #f50057,
|
|
47
|
-
"accent-4": #c51162
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
$purple: (
|
|
51
|
-
"base": #9c27b0,
|
|
52
|
-
"lighten-5": #f3e5f5,
|
|
53
|
-
"lighten-4": #e1bee7,
|
|
54
|
-
"lighten-3": #ce93d8,
|
|
55
|
-
"lighten-2": #ba68c8,
|
|
56
|
-
"lighten-1": #ab47bc,
|
|
57
|
-
"darken-1": #8e24aa,
|
|
58
|
-
"darken-2": #7b1fa2,
|
|
59
|
-
"darken-3": #6a1b9a,
|
|
60
|
-
"darken-4": #4a148c,
|
|
61
|
-
"accent-1": #ea80fc,
|
|
62
|
-
"accent-2": #e040fb,
|
|
63
|
-
"accent-3": #d500f9,
|
|
64
|
-
"accent-4": #aa00ff
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
$deep-purple: (
|
|
68
|
-
"base": #673ab7,
|
|
69
|
-
"lighten-5": #ede7f6,
|
|
70
|
-
"lighten-4": #d1c4e9,
|
|
71
|
-
"lighten-3": #b39ddb,
|
|
72
|
-
"lighten-2": #9575cd,
|
|
73
|
-
"lighten-1": #7e57c2,
|
|
74
|
-
"darken-1": #5e35b1,
|
|
75
|
-
"darken-2": #512da8,
|
|
76
|
-
"darken-3": #4527a0,
|
|
77
|
-
"darken-4": #311b92,
|
|
78
|
-
"accent-1": #b388ff,
|
|
79
|
-
"accent-2": #7c4dff,
|
|
80
|
-
"accent-3": #651fff,
|
|
81
|
-
"accent-4": #6200ea
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
$indigo: (
|
|
85
|
-
"base": #3f51b5,
|
|
86
|
-
"lighten-5": #e8eaf6,
|
|
87
|
-
"lighten-4": #c5cae9,
|
|
88
|
-
"lighten-3": #9fa8da,
|
|
89
|
-
"lighten-2": #7986cb,
|
|
90
|
-
"lighten-1": #5c6bc0,
|
|
91
|
-
"darken-1": #3949ab,
|
|
92
|
-
"darken-2": #303f9f,
|
|
93
|
-
"darken-3": #283593,
|
|
94
|
-
"darken-4": #1a237e,
|
|
95
|
-
"accent-1": #8c9eff,
|
|
96
|
-
"accent-2": #536dfe,
|
|
97
|
-
"accent-3": #3d5afe,
|
|
98
|
-
"accent-4": #304ffe
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
$blue: (
|
|
102
|
-
"base": #2196F3,
|
|
103
|
-
"lighten-5": #E3F2FD,
|
|
104
|
-
"lighten-4": #BBDEFB,
|
|
105
|
-
"lighten-3": #90CAF9,
|
|
106
|
-
"lighten-2": #64B5F6,
|
|
107
|
-
"lighten-1": #42A5F5,
|
|
108
|
-
"darken-1": #1E88E5,
|
|
109
|
-
"darken-2": #1976D2,
|
|
110
|
-
"darken-3": #1565C0,
|
|
111
|
-
"darken-4": #0D47A1,
|
|
112
|
-
"accent-1": #82B1FF,
|
|
113
|
-
"accent-2": #448AFF,
|
|
114
|
-
"accent-3": #2979FF,
|
|
115
|
-
"accent-4": #2962FF
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
$light-blue: (
|
|
119
|
-
"base": #03a9f4,
|
|
120
|
-
"lighten-5": #e1f5fe,
|
|
121
|
-
"lighten-4": #b3e5fc,
|
|
122
|
-
"lighten-3": #81d4fa,
|
|
123
|
-
"lighten-2": #4fc3f7,
|
|
124
|
-
"lighten-1": #29b6f6,
|
|
125
|
-
"darken-1": #039be5,
|
|
126
|
-
"darken-2": #0288d1,
|
|
127
|
-
"darken-3": #0277bd,
|
|
128
|
-
"darken-4": #01579b,
|
|
129
|
-
"accent-1": #80d8ff,
|
|
130
|
-
"accent-2": #40c4ff,
|
|
131
|
-
"accent-3": #00b0ff,
|
|
132
|
-
"accent-4": #0091ea
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
$cyan: (
|
|
136
|
-
"base": #00bcd4,
|
|
137
|
-
"lighten-5": #e0f7fa,
|
|
138
|
-
"lighten-4": #b2ebf2,
|
|
139
|
-
"lighten-3": #80deea,
|
|
140
|
-
"lighten-2": #4dd0e1,
|
|
141
|
-
"lighten-1": #26c6da,
|
|
142
|
-
"darken-1": #00acc1,
|
|
143
|
-
"darken-2": #0097a7,
|
|
144
|
-
"darken-3": #00838f,
|
|
145
|
-
"darken-4": #006064,
|
|
146
|
-
"accent-1": #84ffff,
|
|
147
|
-
"accent-2": #18ffff,
|
|
148
|
-
"accent-3": #00e5ff,
|
|
149
|
-
"accent-4": #00b8d4
|
|
150
|
-
);
|
|
151
|
-
|
|
152
|
-
$teal: (
|
|
153
|
-
"base": #009688,
|
|
154
|
-
"lighten-5": #e0f2f1,
|
|
155
|
-
"lighten-4": #b2dfdb,
|
|
156
|
-
"lighten-3": #80cbc4,
|
|
157
|
-
"lighten-2": #4db6ac,
|
|
158
|
-
"lighten-1": #26a69a,
|
|
159
|
-
"darken-1": #00897b,
|
|
160
|
-
"darken-2": #00796b,
|
|
161
|
-
"darken-3": #00695c,
|
|
162
|
-
"darken-4": #004d40,
|
|
163
|
-
"accent-1": #a7ffeb,
|
|
164
|
-
"accent-2": #64ffda,
|
|
165
|
-
"accent-3": #1de9b6,
|
|
166
|
-
"accent-4": #00bfa5
|
|
167
|
-
);
|
|
168
|
-
|
|
169
|
-
$green: (
|
|
170
|
-
"base": #4CAF50,
|
|
171
|
-
"lighten-5": #E8F5E9,
|
|
172
|
-
"lighten-4": #C8E6C9,
|
|
173
|
-
"lighten-3": #A5D6A7,
|
|
174
|
-
"lighten-2": #81C784,
|
|
175
|
-
"lighten-1": #66BB6A,
|
|
176
|
-
"darken-1": #43A047,
|
|
177
|
-
"darken-2": #388E3C,
|
|
178
|
-
"darken-3": #2E7D32,
|
|
179
|
-
"darken-4": #1B5E20,
|
|
180
|
-
"accent-1": #B9F6CA,
|
|
181
|
-
"accent-2": #69F0AE,
|
|
182
|
-
"accent-3": #00E676,
|
|
183
|
-
"accent-4": #00C853
|
|
184
|
-
);
|
|
185
|
-
|
|
186
|
-
$light-green: (
|
|
187
|
-
"base": #8bc34a,
|
|
188
|
-
"lighten-5": #f1f8e9,
|
|
189
|
-
"lighten-4": #dcedc8,
|
|
190
|
-
"lighten-3": #c5e1a5,
|
|
191
|
-
"lighten-2": #aed581,
|
|
192
|
-
"lighten-1": #9ccc65,
|
|
193
|
-
"darken-1": #7cb342,
|
|
194
|
-
"darken-2": #689f38,
|
|
195
|
-
"darken-3": #558b2f,
|
|
196
|
-
"darken-4": #33691e,
|
|
197
|
-
"accent-1": #ccff90,
|
|
198
|
-
"accent-2": #b2ff59,
|
|
199
|
-
"accent-3": #76ff03,
|
|
200
|
-
"accent-4": #64dd17
|
|
201
|
-
);
|
|
202
|
-
|
|
203
|
-
$lime: (
|
|
204
|
-
"base": #cddc39,
|
|
205
|
-
"lighten-5": #f9fbe7,
|
|
206
|
-
"lighten-4": #f0f4c3,
|
|
207
|
-
"lighten-3": #e6ee9c,
|
|
208
|
-
"lighten-2": #dce775,
|
|
209
|
-
"lighten-1": #d4e157,
|
|
210
|
-
"darken-1": #c0ca33,
|
|
211
|
-
"darken-2": #afb42b,
|
|
212
|
-
"darken-3": #9e9d24,
|
|
213
|
-
"darken-4": #827717,
|
|
214
|
-
"accent-1": #f4ff81,
|
|
215
|
-
"accent-2": #eeff41,
|
|
216
|
-
"accent-3": #c6ff00,
|
|
217
|
-
"accent-4": #aeea00
|
|
218
|
-
);
|
|
219
|
-
|
|
220
|
-
$yellow: (
|
|
221
|
-
"base": #ffeb3b,
|
|
222
|
-
"lighten-5": #fffde7,
|
|
223
|
-
"lighten-4": #fff9c4,
|
|
224
|
-
"lighten-3": #fff59d,
|
|
225
|
-
"lighten-2": #fff176,
|
|
226
|
-
"lighten-1": #ffee58,
|
|
227
|
-
"darken-1": #fdd835,
|
|
228
|
-
"darken-2": #fbc02d,
|
|
229
|
-
"darken-3": #f9a825,
|
|
230
|
-
"darken-4": #f57f17,
|
|
231
|
-
"accent-1": #ffff8d,
|
|
232
|
-
"accent-2": #ffff00,
|
|
233
|
-
"accent-3": #ffea00,
|
|
234
|
-
"accent-4": #ffd600
|
|
235
|
-
);
|
|
236
|
-
|
|
237
|
-
$amber: (
|
|
238
|
-
"base": #ffc107,
|
|
239
|
-
"lighten-5": #fff8e1,
|
|
240
|
-
"lighten-4": #ffecb3,
|
|
241
|
-
"lighten-3": #ffe082,
|
|
242
|
-
"lighten-2": #ffd54f,
|
|
243
|
-
"lighten-1": #ffca28,
|
|
244
|
-
"darken-1": #ffb300,
|
|
245
|
-
"darken-2": #ffa000,
|
|
246
|
-
"darken-3": #ff8f00,
|
|
247
|
-
"darken-4": #ff6f00,
|
|
248
|
-
"accent-1": #ffe57f,
|
|
249
|
-
"accent-2": #ffd740,
|
|
250
|
-
"accent-3": #ffc400,
|
|
251
|
-
"accent-4": #ffab00
|
|
252
|
-
);
|
|
253
|
-
|
|
254
|
-
$orange: (
|
|
255
|
-
"base": #ff9800,
|
|
256
|
-
"lighten-5": #fff3e0,
|
|
257
|
-
"lighten-4": #ffe0b2,
|
|
258
|
-
"lighten-3": #ffcc80,
|
|
259
|
-
"lighten-2": #ffb74d,
|
|
260
|
-
"lighten-1": #ffa726,
|
|
261
|
-
"darken-1": #fb8c00,
|
|
262
|
-
"darken-2": #f57c00,
|
|
263
|
-
"darken-3": #ef6c00,
|
|
264
|
-
"darken-4": #e65100,
|
|
265
|
-
"accent-1": #ffd180,
|
|
266
|
-
"accent-2": #ffab40,
|
|
267
|
-
"accent-3": #ff9100,
|
|
268
|
-
"accent-4": #ff6d00
|
|
269
|
-
);
|
|
270
|
-
|
|
271
|
-
$deep-orange: (
|
|
272
|
-
"base": #ff5722,
|
|
273
|
-
"lighten-5": #fbe9e7,
|
|
274
|
-
"lighten-4": #ffccbc,
|
|
275
|
-
"lighten-3": #ffab91,
|
|
276
|
-
"lighten-2": #ff8a65,
|
|
277
|
-
"lighten-1": #ff7043,
|
|
278
|
-
"darken-1": #f4511e,
|
|
279
|
-
"darken-2": #e64a19,
|
|
280
|
-
"darken-3": #d84315,
|
|
281
|
-
"darken-4": #bf360c,
|
|
282
|
-
"accent-1": #ff9e80,
|
|
283
|
-
"accent-2": #ff6e40,
|
|
284
|
-
"accent-3": #ff3d00,
|
|
285
|
-
"accent-4": #dd2c00
|
|
286
|
-
);
|
|
287
|
-
|
|
288
|
-
$brown: (
|
|
289
|
-
"base": #795548,
|
|
290
|
-
"lighten-5": #efebe9,
|
|
291
|
-
"lighten-4": #d7ccc8,
|
|
292
|
-
"lighten-3": #bcaaa4,
|
|
293
|
-
"lighten-2": #a1887f,
|
|
294
|
-
"lighten-1": #8d6e63,
|
|
295
|
-
"darken-1": #6d4c41,
|
|
296
|
-
"darken-2": #5d4037,
|
|
297
|
-
"darken-3": #4e342e,
|
|
298
|
-
"darken-4": #3e2723
|
|
299
|
-
);
|
|
300
|
-
|
|
301
|
-
$blue-grey: (
|
|
302
|
-
"base": #607d8b,
|
|
303
|
-
"lighten-5": #eceff1,
|
|
304
|
-
"lighten-4": #cfd8dc,
|
|
305
|
-
"lighten-3": #b0bec5,
|
|
306
|
-
"lighten-2": #90a4ae,
|
|
307
|
-
"lighten-1": #78909c,
|
|
308
|
-
"darken-1": #546e7a,
|
|
309
|
-
"darken-2": #455a64,
|
|
310
|
-
"darken-3": #37474f,
|
|
311
|
-
"darken-4": #263238
|
|
312
|
-
);
|
|
313
|
-
|
|
314
|
-
$grey: (
|
|
315
|
-
"base": #9e9e9e,
|
|
316
|
-
"lighten-5": #fafafa,
|
|
317
|
-
"lighten-4": #f5f5f5,
|
|
318
|
-
"lighten-3": #eeeeee,
|
|
319
|
-
"lighten-2": #e0e0e0,
|
|
320
|
-
"lighten-1": #bdbdbd,
|
|
321
|
-
"darken-1": #757575,
|
|
322
|
-
"darken-2": #616161,
|
|
323
|
-
"darken-3": #424242,
|
|
324
|
-
"darken-4": #212121
|
|
325
|
-
);
|
|
326
|
-
|
|
327
|
-
$shades: (
|
|
328
|
-
"black": #000000,
|
|
329
|
-
"white": #FFFFFF,
|
|
330
|
-
"transparent": transparent
|
|
331
|
-
);
|
|
332
|
-
|
|
333
|
-
$colors: (
|
|
334
|
-
"materialize-red": $materialize-red,
|
|
335
|
-
"red": $red,
|
|
336
|
-
"pink": $pink,
|
|
337
|
-
"purple": $purple,
|
|
338
|
-
"deep-purple": $deep-purple,
|
|
339
|
-
"indigo": $indigo,
|
|
340
|
-
"blue": $blue,
|
|
341
|
-
"light-blue": $light-blue,
|
|
342
|
-
"cyan": $cyan,
|
|
343
|
-
"teal": $teal,
|
|
344
|
-
"green": $green,
|
|
345
|
-
"light-green": $light-green,
|
|
346
|
-
"lime": $lime,
|
|
347
|
-
"yellow": $yellow,
|
|
348
|
-
"amber": $amber,
|
|
349
|
-
"orange": $orange,
|
|
350
|
-
"deep-orange": $deep-orange,
|
|
351
|
-
"brown": $brown,
|
|
352
|
-
"blue-grey": $blue-grey,
|
|
353
|
-
"grey": $grey,
|
|
354
|
-
"shades": $shades
|
|
355
|
-
) !default;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
// usage: colorFunc("name_of_color", "type_of_color")
|
|
359
|
-
// to avoid to repeating map-get($colors, ...)
|
|
360
|
-
@function colorFunc($color, $type) {
|
|
361
|
-
@if map-has-key($colors, $color) {
|
|
362
|
-
$curr_color: map-get($colors, $color);
|
|
363
|
-
@if map-has-key($curr_color, $type) {
|
|
364
|
-
@return map-get($curr_color, $type);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
@warn "Unknown `#{$color}` - `#{$type}` in $colors.";
|
|
368
|
-
@return null;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
// Color Classes
|
|
373
|
-
@each $color_name, $color in $colors {
|
|
374
|
-
@each $color_type, $color_value in $color {
|
|
375
|
-
@if $color_type == "base" {
|
|
376
|
-
.#{$color_name} {
|
|
377
|
-
background-color: $color_value !important;
|
|
378
|
-
}
|
|
379
|
-
.#{$color_name}-text {
|
|
380
|
-
color: $color_value !important;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
@else if $color_name != "shades" {
|
|
384
|
-
.#{$color_name}.#{$color_type} {
|
|
385
|
-
background-color: $color_value !important;
|
|
386
|
-
}
|
|
387
|
-
.#{$color_name}-text.text-#{$color_type} {
|
|
388
|
-
color: $color_value !important;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
// Shade classes
|
|
395
|
-
@each $color, $color_value in $shades {
|
|
396
|
-
.#{$color} {
|
|
397
|
-
background-color: $color_value !important;
|
|
398
|
-
}
|
|
399
|
-
.#{$color}-text {
|
|
400
|
-
color: $color_value !important;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
@use './variables' as *;
|
|
2
|
-
@use '../utilities/elevation' as *;
|
|
3
|
-
|
|
4
|
-
// ===== Button Base Mixin =====
|
|
5
|
-
|
|
6
|
-
@mixin btn(
|
|
7
|
-
$height: var(--btn-height),
|
|
8
|
-
$border-radius: var(--md-sys-shape-corner-full, 9999px),
|
|
9
|
-
$padding-left: var(--btn-padding),
|
|
10
|
-
$padding-right: var(--btn-padding),
|
|
11
|
-
$font-size: var(--btn-font-size),
|
|
12
|
-
) {
|
|
13
|
-
height: $height;
|
|
14
|
-
border-radius: $border-radius;
|
|
15
|
-
padding-left: $padding-left;
|
|
16
|
-
padding-right: $padding-right;
|
|
17
|
-
font-size: $font-size;
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
text-decoration: none;
|
|
20
|
-
display: inline-flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
border: none;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
-webkit-tap-highlight-color: transparent;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
outline: 0;
|
|
27
|
-
user-select: none;
|
|
28
|
-
position: relative;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
transition: background-color var(--md-sys-motion-duration-short4, 200ms) var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
31
|
-
|
|
32
|
-
&:focus {
|
|
33
|
-
background-color: var(--md-sys-color-primary-container);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// ===== Filled Button =====
|
|
38
|
-
|
|
39
|
-
@mixin btn-filled {
|
|
40
|
-
color: var(--md-sys-color-on-primary);
|
|
41
|
-
background-color: var(--md-sys-color-primary);
|
|
42
|
-
|
|
43
|
-
&:hover,
|
|
44
|
-
&:focus {
|
|
45
|
-
color: var(--md-sys-color-on-primary);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:hover {
|
|
49
|
-
@extend .elevation-1;
|
|
50
|
-
background-color: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 8%);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:focus {
|
|
54
|
-
@extend .elevation-0;
|
|
55
|
-
background-color: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 10%);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:active {
|
|
59
|
-
@extend .elevation-0;
|
|
60
|
-
background-color: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 10%);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@include focus-visible();
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// ===== Filled Tonal Button =====
|
|
67
|
-
|
|
68
|
-
@mixin btn-tonal {
|
|
69
|
-
color: var(--md-sys-color-on-secondary-container);
|
|
70
|
-
background-color: var(--md-sys-color-secondary-container);
|
|
71
|
-
|
|
72
|
-
&:hover,
|
|
73
|
-
&:focus {
|
|
74
|
-
color: var(--md-sys-color-on-secondary-container);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:hover {
|
|
78
|
-
@extend .elevation-1;
|
|
79
|
-
background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 8%);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&:focus {
|
|
83
|
-
@extend .elevation-0;
|
|
84
|
-
background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 10%);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&:active {
|
|
88
|
-
@extend .elevation-0;
|
|
89
|
-
background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 10%);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@include focus-visible();
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// ===== Elevated Button =====
|
|
96
|
-
|
|
97
|
-
@mixin btn-elevated {
|
|
98
|
-
color: var(--md-sys-color-primary);
|
|
99
|
-
background-color: var(--md-sys-color-surface-container-low);
|
|
100
|
-
@extend .elevation-1;
|
|
101
|
-
|
|
102
|
-
&:hover,
|
|
103
|
-
&:focus {
|
|
104
|
-
color: var(--md-sys-color-primary);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:hover {
|
|
108
|
-
@extend .elevation-2;
|
|
109
|
-
background-color: color-mix(in srgb, var(--md-sys-color-surface-container-low), var(--md-sys-color-primary) 8%);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&:focus {
|
|
113
|
-
@extend .elevation-1;
|
|
114
|
-
background-color: color-mix(in srgb, var(--md-sys-color-surface-container-low), var(--md-sys-color-primary) 10%);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:active {
|
|
118
|
-
@extend .elevation-1;
|
|
119
|
-
background-color: color-mix(in srgb, var(--md-sys-color-surface-container-low), var(--md-sys-color-primary) 10%);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@include focus-visible();
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// ===== Outlined Button =====
|
|
126
|
-
|
|
127
|
-
@mixin btn-outlined {
|
|
128
|
-
background-color: transparent;
|
|
129
|
-
color: var(--md-sys-color-primary);
|
|
130
|
-
border: 1px solid var(--md-sys-color-outline);
|
|
131
|
-
|
|
132
|
-
&:hover,
|
|
133
|
-
&:focus {
|
|
134
|
-
color: var(--md-sys-color-primary);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&:hover {
|
|
138
|
-
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 8%);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&:focus {
|
|
142
|
-
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 10%);
|
|
143
|
-
border-color: var(--md-sys-color-primary);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&:active {
|
|
147
|
-
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 10%);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@include focus-visible();
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// ===== Text Button =====
|
|
154
|
-
|
|
155
|
-
@mixin btn-flat {
|
|
156
|
-
@extend .elevation-0;
|
|
157
|
-
color: var(--md-sys-color-primary);
|
|
158
|
-
background-color: transparent;
|
|
159
|
-
|
|
160
|
-
&:hover,
|
|
161
|
-
&:focus {
|
|
162
|
-
color: var(--md-sys-color-primary);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&:hover {
|
|
166
|
-
background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&:focus {
|
|
170
|
-
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 10%);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&:active {
|
|
174
|
-
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 10%);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@include focus-visible();
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// ===== Disabled State =====
|
|
181
|
-
|
|
182
|
-
@mixin btn-disabled {
|
|
183
|
-
@extend .elevation-0;
|
|
184
|
-
color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
|
|
185
|
-
background-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 12%);
|
|
186
|
-
pointer-events: none;
|
|
187
|
-
box-shadow: none;
|
|
188
|
-
cursor: default;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// ===== Focus Visible =====
|
|
192
|
-
|
|
193
|
-
@mixin focus-visible {
|
|
194
|
-
&:focus-visible {
|
|
195
|
-
outline: 3px solid var(--md-sys-color-secondary);
|
|
196
|
-
outline-offset: 2px;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// M3 Expressive Motion Token System
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
/* ===== Easing Curves ===== */
|
|
5
|
-
--md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
6
|
-
--md-sys-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
|
|
7
|
-
--md-sys-motion-easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1);
|
|
8
|
-
--md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
|
|
9
|
-
--md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
|
|
10
|
-
--md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
|
|
11
|
-
--md-sys-motion-easing-linear: cubic-bezier(0, 0, 1, 1);
|
|
12
|
-
|
|
13
|
-
/* ===== Duration Scale ===== */
|
|
14
|
-
--md-sys-motion-duration-short1: 50ms;
|
|
15
|
-
--md-sys-motion-duration-short2: 100ms;
|
|
16
|
-
--md-sys-motion-duration-short3: 150ms;
|
|
17
|
-
--md-sys-motion-duration-short4: 200ms;
|
|
18
|
-
--md-sys-motion-duration-medium1: 250ms;
|
|
19
|
-
--md-sys-motion-duration-medium2: 300ms;
|
|
20
|
-
--md-sys-motion-duration-medium3: 350ms;
|
|
21
|
-
--md-sys-motion-duration-medium4: 400ms;
|
|
22
|
-
--md-sys-motion-duration-long1: 450ms;
|
|
23
|
-
--md-sys-motion-duration-long2: 500ms;
|
|
24
|
-
--md-sys-motion-duration-long3: 550ms;
|
|
25
|
-
--md-sys-motion-duration-long4: 600ms;
|
|
26
|
-
--md-sys-motion-duration-extra-long1: 700ms;
|
|
27
|
-
--md-sys-motion-duration-extra-long2: 800ms;
|
|
28
|
-
--md-sys-motion-duration-extra-long3: 900ms;
|
|
29
|
-
--md-sys-motion-duration-extra-long4: 1000ms;
|
|
30
|
-
|
|
31
|
-
/* ===== Elevation Tokens ===== */
|
|
32
|
-
--md-sys-elevation-level0: none;
|
|
33
|
-
--md-sys-elevation-level1: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
|
|
34
|
-
--md-sys-elevation-level2: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
|
|
35
|
-
--md-sys-elevation-level3: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);
|
|
36
|
-
--md-sys-elevation-level4: 0 2px 3px 0 rgba(0, 0, 0, 0.3), 0 6px 10px 4px rgba(0, 0, 0, 0.15);
|
|
37
|
-
--md-sys-elevation-level5: 0 4px 4px 0 rgba(0, 0, 0, 0.3), 0 8px 12px 6px rgba(0, 0, 0, 0.15);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* ===== Reduced Motion ===== */
|
|
41
|
-
|
|
42
|
-
@media (prefers-reduced-motion: reduce) {
|
|
43
|
-
:root {
|
|
44
|
-
--md-sys-motion-duration-short1: 0ms;
|
|
45
|
-
--md-sys-motion-duration-short2: 0ms;
|
|
46
|
-
--md-sys-motion-duration-short3: 0ms;
|
|
47
|
-
--md-sys-motion-duration-short4: 0ms;
|
|
48
|
-
--md-sys-motion-duration-medium1: 0ms;
|
|
49
|
-
--md-sys-motion-duration-medium2: 0ms;
|
|
50
|
-
--md-sys-motion-duration-medium3: 0ms;
|
|
51
|
-
--md-sys-motion-duration-medium4: 0ms;
|
|
52
|
-
--md-sys-motion-duration-long1: 0ms;
|
|
53
|
-
--md-sys-motion-duration-long2: 0ms;
|
|
54
|
-
--md-sys-motion-duration-long3: 0ms;
|
|
55
|
-
--md-sys-motion-duration-long4: 0ms;
|
|
56
|
-
--md-sys-motion-duration-extra-long1: 0ms;
|
|
57
|
-
--md-sys-motion-duration-extra-long2: 0ms;
|
|
58
|
-
--md-sys-motion-duration-extra-long3: 0ms;
|
|
59
|
-
--md-sys-motion-duration-extra-long4: 0ms;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
*,
|
|
63
|
-
*::before,
|
|
64
|
-
*::after {
|
|
65
|
-
animation-duration: 0.01ms !important;
|
|
66
|
-
animation-iteration-count: 1 !important;
|
|
67
|
-
transition-duration: 0.01ms !important;
|
|
68
|
-
scroll-behavior: auto !important;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// M3 Expressive Shape Token System
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
/* Base shape scale */
|
|
5
|
-
--md-sys-shape-corner-none: 0;
|
|
6
|
-
--md-sys-shape-corner-extra-small: 4px;
|
|
7
|
-
--md-sys-shape-corner-small: 8px;
|
|
8
|
-
--md-sys-shape-corner-medium: 12px;
|
|
9
|
-
--md-sys-shape-corner-large: 16px;
|
|
10
|
-
--md-sys-shape-corner-extra-large: 28px;
|
|
11
|
-
--md-sys-shape-corner-full: 9999px;
|
|
12
|
-
|
|
13
|
-
/* Directional variants */
|
|
14
|
-
--md-sys-shape-corner-extra-small-top: 4px 4px 0 0;
|
|
15
|
-
--md-sys-shape-corner-small-top: 8px 8px 0 0;
|
|
16
|
-
--md-sys-shape-corner-medium-top: 12px 12px 0 0;
|
|
17
|
-
--md-sys-shape-corner-large-top: 16px 16px 0 0;
|
|
18
|
-
--md-sys-shape-corner-large-end: 0 16px 16px 0;
|
|
19
|
-
--md-sys-shape-corner-large-start: 16px 0 0 16px;
|
|
20
|
-
--md-sys-shape-corner-extra-large-top: 28px 28px 0 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Shape utility classes
|
|
24
|
-
.shape-none { border-radius: var(--md-sys-shape-corner-none); }
|
|
25
|
-
.shape-xs { border-radius: var(--md-sys-shape-corner-extra-small); }
|
|
26
|
-
.shape-sm { border-radius: var(--md-sys-shape-corner-small); }
|
|
27
|
-
.shape-md { border-radius: var(--md-sys-shape-corner-medium); }
|
|
28
|
-
.shape-lg { border-radius: var(--md-sys-shape-corner-large); }
|
|
29
|
-
.shape-xl { border-radius: var(--md-sys-shape-corner-extra-large); }
|
|
30
|
-
.shape-full { border-radius: var(--md-sys-shape-corner-full); }
|