minolith 0.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.
Files changed (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/css/minolith.css +196773 -0
  4. package/dist/css/minolith.css.map +1 -0
  5. package/dist/css/minolith.min.css +4 -0
  6. package/dist/css/minolith.min.css.map +1 -0
  7. package/package.json +46 -0
  8. package/src/animations/fade.scss +41 -0
  9. package/src/animations/index.scss +1 -0
  10. package/src/backgrounds/gingham.scss +47 -0
  11. package/src/backgrounds/index.scss +2 -0
  12. package/src/backgrounds/stripe.scss +33 -0
  13. package/src/base/index.scss +3 -0
  14. package/src/base/normalize.scss +389 -0
  15. package/src/base/tabula.scss +7 -0
  16. package/src/components/accordion.scss +115 -0
  17. package/src/components/badge.scss +95 -0
  18. package/src/components/button.scss +109 -0
  19. package/src/components/card.scss +53 -0
  20. package/src/components/footer.scss +8 -0
  21. package/src/components/hamburger.scss +152 -0
  22. package/src/components/header.scss +16 -0
  23. package/src/components/heading.scss +37 -0
  24. package/src/components/image.scss +7 -0
  25. package/src/components/index.scss +19 -0
  26. package/src/components/input.scss +220 -0
  27. package/src/components/label.scss +5 -0
  28. package/src/components/link.scss +28 -0
  29. package/src/components/list.scss +14 -0
  30. package/src/components/loader.scss +38 -0
  31. package/src/components/main.scss +5 -0
  32. package/src/components/message.scss +41 -0
  33. package/src/components/modal.scss +36 -0
  34. package/src/components/nav.scss +373 -0
  35. package/src/components/progress.scss +39 -0
  36. package/src/css-variables/animation.scss +11 -0
  37. package/src/css-variables/border.scss +16 -0
  38. package/src/css-variables/color.scss +262 -0
  39. package/src/css-variables/index.scss +6 -0
  40. package/src/css-variables/miscellaneous.scss +10 -0
  41. package/src/css-variables/typography.scss +19 -0
  42. package/src/functions/index.scss +1 -0
  43. package/src/functions/string.scss +17 -0
  44. package/src/icons/check.scss +21 -0
  45. package/src/icons/chevron.scss +30 -0
  46. package/src/icons/index.scss +2 -0
  47. package/src/layouts/container.scss +19 -0
  48. package/src/layouts/index.scss +2 -0
  49. package/src/minolith.scss +10 -0
  50. package/src/mixins/animation.scss +80 -0
  51. package/src/mixins/color.scss +33 -0
  52. package/src/mixins/index.scss +4 -0
  53. package/src/mixins/responsive.scss +220 -0
  54. package/src/utilities/border.scss +47 -0
  55. package/src/utilities/color.scss +217 -0
  56. package/src/utilities/decoration.scss +16 -0
  57. package/src/utilities/index.scss +7 -0
  58. package/src/utilities/positioning.scss +44 -0
  59. package/src/utilities/sizing.scss +109 -0
  60. package/src/utilities/spacing.scss +111 -0
  61. package/src/utilities/typography.scss +105 -0
  62. package/src/variables/animation.scss +8 -0
  63. package/src/variables/border.scss +56 -0
  64. package/src/variables/color.scss +415 -0
  65. package/src/variables/index.scss +7 -0
  66. package/src/variables/layout.scss +28 -0
  67. package/src/variables/miscellaneous.scss +10 -0
  68. package/src/variables/typography.scss +22 -0
@@ -0,0 +1,111 @@
1
+ @use "sass:string";
2
+ @use "../functions/index.scss" as functions;
3
+
4
+ .margin-auto,
5
+ .m-auto {
6
+ margin: auto;
7
+ }
8
+
9
+ .margin-top-auto,
10
+ .mt-auto {
11
+ margin-top: auto;
12
+ }
13
+
14
+ .margin-right-auto,
15
+ .mr-auto {
16
+ margin-right: auto;
17
+ }
18
+
19
+ .margin-bottom-auto,
20
+ .mb-auto {
21
+ margin-bottom: auto;
22
+ }
23
+
24
+ .margin-left-auto,
25
+ .ml-auto {
26
+ margin-left: auto;
27
+ }
28
+
29
+ .mx-auto {
30
+ margin-right: auto;
31
+ margin-left: auto;
32
+ }
33
+
34
+ .my-auto {
35
+ margin-top: auto;
36
+ margin-bottom: auto;
37
+ }
38
+
39
+ @for $p from 0 through 100 {
40
+ $suffix: functions.strReplace(#{($p * 0.1)}, ".", "\\.");
41
+
42
+ .m-#{$suffix}rem,
43
+ .margin-#{$suffix} {
44
+ margin: $p * 0.1rem;
45
+ }
46
+
47
+ .mt-#{$suffix}rem,
48
+ .margin-top-#{$suffix} {
49
+ margin-top: $p * 0.1rem;
50
+ }
51
+
52
+ .mr-#{$suffix}rem,
53
+ .margin-right-#{$suffix} {
54
+ margin-right: $p * 0.1rem;
55
+ }
56
+
57
+ .mb-#{$suffix}rem,
58
+ .margin-bottom-#{$suffix} {
59
+ margin-bottom: $p * 0.1rem;
60
+ }
61
+
62
+ .ml-#{$suffix}rem,
63
+ .margin-left-#{$suffix} {
64
+ margin-left: $p * 0.1rem;
65
+ }
66
+
67
+ .mx-#{$suffix}rem {
68
+ margin-right: $p * 0.1rem;
69
+ margin-left: $p * 0.1rem;
70
+ }
71
+
72
+ .my-#{$suffix}rem {
73
+ margin-top: $p * 0.1rem;
74
+ margin-bottom: $p * 0.1rem;
75
+ }
76
+
77
+ .p-#{$suffix}rem,
78
+ .padding-#{$suffix} {
79
+ padding: $p * 0.1rem;
80
+ }
81
+
82
+ .pt-#{$suffix}rem,
83
+ .padding-top-#{$suffix} {
84
+ padding-top: $p * 0.1rem;
85
+ }
86
+
87
+ .pr-#{$suffix}rem,
88
+ .padding-right-#{$suffix} {
89
+ padding-right: $p * 0.1rem;
90
+ }
91
+
92
+ .pb-#{$suffix}rem,
93
+ .padding-bottom-#{$suffix} {
94
+ padding-bottom: $p * 0.1rem;
95
+ }
96
+
97
+ .pl-#{$suffix}rem,
98
+ .padding-left-#{$suffix} {
99
+ padding-left: $p * 0.1rem;
100
+ }
101
+
102
+ .px-#{$suffix}rem {
103
+ padding-right: $p * 0.1rem;
104
+ padding-left: $p * 0.1rem;
105
+ }
106
+
107
+ .py-#{$suffix}rem {
108
+ padding-top: $p * 0.1rem;
109
+ padding-bottom: $p * 0.1rem;
110
+ }
111
+ }
@@ -0,0 +1,105 @@
1
+ @use "../variables/index.scss" as variables;
2
+
3
+ .is-italic {
4
+ font-style: italic !important;
5
+ }
6
+
7
+ .is-oblique {
8
+ font-style: italic !important;
9
+ }
10
+
11
+ .is-capitalized {
12
+ text-transform: capitalize !important;
13
+ }
14
+
15
+ .is-lowercase {
16
+ text-transform: lowercase !important;
17
+ }
18
+
19
+ .is-uppercase {
20
+ text-transform: uppercase !important;
21
+ }
22
+
23
+ .is-text-align-left {
24
+ text-align: left !important;
25
+ }
26
+
27
+ .is-text-align-right {
28
+ text-align: right !important;
29
+ }
30
+
31
+ .is-text-align-center {
32
+ text-align: center !important;
33
+ }
34
+
35
+ .is-text-align-unset {
36
+ text-align: unset !important;
37
+ }
38
+
39
+ .is-white-space-nowrap {
40
+ white-space: nowrap !important;
41
+ }
42
+
43
+ .is-font-family-sans-serif {
44
+ font-family: var(--#{variables.$prefix}font-family-sans-serif);
45
+ }
46
+
47
+ .is-font-family-monospace {
48
+ font-family: var(--#{variables.$prefix}font-family-monospace);
49
+ }
50
+
51
+ .is-font-size-small {
52
+ font-size: var(--#{variables.$prefix}font-size-small) !important;
53
+ }
54
+
55
+ .is-font-size-normal {
56
+ font-size: var(--#{variables.$prefix}font-size-normal) !important;
57
+ }
58
+
59
+ .is-font-size-medium {
60
+ font-size: var(--#{variables.$prefix}font-size-medium) !important;
61
+ }
62
+
63
+ .is-font-size-large {
64
+ font-size: var(--#{variables.$prefix}font-size-large) !important;
65
+ }
66
+
67
+ .is-font-size-xlarge {
68
+ font-size: var(--#{variables.$prefix}font-size-xlarge) !important;
69
+ }
70
+
71
+ .is-font-size-xxlarge {
72
+ font-size: var(--#{variables.$prefix}font-size-xxlarge) !important;
73
+ }
74
+
75
+ .is-font-size-xxxlarge {
76
+ font-size: var(--#{variables.$prefix}font-size-xxxlarge) !important;
77
+ }
78
+
79
+ .is-font-size-xxxxlarge {
80
+ font-size: var(--#{variables.$prefix}font-size-xxxxlarge) !important;
81
+ }
82
+
83
+ .is-font-size-xxxxxlarge {
84
+ font-size: var(--#{variables.$prefix}font-size-xxxxxlarge) !important;
85
+ }
86
+
87
+ .is-font-weight-light {
88
+ font-size: var(--#{variables.$prefix}font-weight-light) !important;
89
+ }
90
+
91
+ .is-font-weight-normal {
92
+ font-size: var(--#{variables.$prefix}font-weight-normal) !important;
93
+ }
94
+
95
+ .is-font-weight-medium {
96
+ font-size: var(--#{variables.$prefix}font-weight-medium) !important;
97
+ }
98
+
99
+ .is-font-weight-semibold {
100
+ font-size: var(--#{variables.$prefix}font-weight-semibold) !important;
101
+ }
102
+
103
+ .is-font-weight-bold {
104
+ font-size: var(--#{variables.$prefix}font-weight-bold) !important;
105
+ }
@@ -0,0 +1,8 @@
1
+
2
+ $animation-speed-heavy: 4s !default;
3
+ $animation-speed-slower: 3s !default;
4
+ $animation-speed-slow: 2s !default;
5
+ $animation-speed-normal: 1s !default;
6
+ $animation-speed-fast: 750ms !default;
7
+ $animation-speed-faster: 500ms !default;
8
+ $animation-speed-flash: 250ms !default;
@@ -0,0 +1,56 @@
1
+
2
+ $border-width-xthin: 0.05rem !default;
3
+ $border-width-thin: 0.1rem !default;
4
+ $border-width-medium: 0.125rem !default;
5
+ $border-width-thick: 0.25rem !default;
6
+ $border-width-xthick: 0.5rem !default;
7
+
8
+ $border-radius-small: 0.2rem !default;
9
+ $border-radius-medium: 0.25rem !default;
10
+ $border-radius-large: 0.5rem !default;
11
+ $border-radius-circle: 50% !default;
12
+ $border-radius-pill: 50rem !default;
13
+
14
+ $borderSides: (
15
+ "top",
16
+ "right",
17
+ "bottom",
18
+ "left",
19
+ );
20
+
21
+ $borderStyles: (
22
+ "solid",
23
+ "dashed",
24
+ "dotted",
25
+ );
26
+
27
+ $borderWidths: (
28
+ "xthin",
29
+ "thin",
30
+ "medium",
31
+ "thick",
32
+ "xthick",
33
+ );
34
+
35
+ $borderRadiuses: (
36
+ (
37
+ "name": "small",
38
+ "value": $border-radius-small,
39
+ ),
40
+ (
41
+ "name": "medium",
42
+ "value": $border-radius-medium,
43
+ ),
44
+ (
45
+ "name": "large",
46
+ "value": $border-radius-large,
47
+ ),
48
+ (
49
+ "name": "circle",
50
+ "value": $border-radius-circle,
51
+ ),
52
+ (
53
+ "name": "pill",
54
+ "value": $border-radius-pill,
55
+ ),
56
+ ) !default;
@@ -0,0 +1,415 @@
1
+
2
+ @use "sass:color";
3
+
4
+ //#region define color settings
5
+
6
+ $color-lightness-white: 95% !default;
7
+ $color-lightness-black: 35% !default;
8
+
9
+ $color-lightness-50: 80% !default;
10
+ $color-lightness-offset-lighter: 2.5%;
11
+ $color-lightness-offset-darker: 5.25%;
12
+
13
+ $color-chroma-gray: 0.02 !default;
14
+ $color-chroma-colorful: 0.085 !default;
15
+
16
+ $color-hue-gray: 290 !default;
17
+ $color-hue-red: 0 !default;
18
+ $color-hue-orange: 70 !default;
19
+ $color-hue-yellow: 90 !default;
20
+ $color-hue-lime: 120 !default;
21
+ $color-hue-green: 150 !default;
22
+ $color-hue-cyan: 190 !default;
23
+ $color-hue-blue: 240 !default;
24
+ $color-hue-violet: 290 !default;
25
+ $color-hue-magenta: 340 !default;
26
+
27
+ //#endregion define color settings
28
+
29
+ //#region define color shades array
30
+
31
+ $colorShadesLight: (
32
+ (
33
+ name: "plain",
34
+ fore: "05",
35
+ back: "95",
36
+ border: "40",
37
+ placeholder: "40",
38
+ shadow: "40",
39
+ accordion: (
40
+ fore: "05",
41
+ back: "95",
42
+ border: "40",
43
+ accordionSummary: (
44
+ fore: "05",
45
+ back: "50",
46
+ border: "50",
47
+ ),
48
+ accordionDetails: (
49
+ fore: "05",
50
+ back: "60",
51
+ border: "60",
52
+ ),
53
+ ),
54
+ button: (
55
+ fore: "05",
56
+ back: "50",
57
+ border: "50",
58
+ shadow: "50",
59
+ ),
60
+ card: (
61
+ fore: "05",
62
+ back: "60",
63
+ border: "60",
64
+ shadow: "50",
65
+ messageHeader: (
66
+ fore: "05",
67
+ back: "60",
68
+ border: "60",
69
+ ),
70
+ messageBody: (
71
+ fore: "05",
72
+ back: "60",
73
+ border: "60",
74
+ ),
75
+ messageFooter: (
76
+ fore: "05",
77
+ back: "60",
78
+ border: "60",
79
+ ),
80
+ ),
81
+ message: (
82
+ fore: "05",
83
+ back: "60",
84
+ border: "60",
85
+ messageHeader: (
86
+ fore: "05",
87
+ back: "40",
88
+ border: "40",
89
+ ),
90
+ messageBody: (
91
+ fore: "05",
92
+ back: "60",
93
+ border: "60",
94
+ ),
95
+ ),
96
+ ),
97
+ (
98
+ name: "disabled",
99
+ fore: "80",
100
+ back: "10",
101
+ border: "70",
102
+ placeholder: "40",
103
+ shadow: "30",
104
+ accordion: (
105
+ accordionSummary: (
106
+ fore: "05",
107
+ back: "70",
108
+ border: "70",
109
+ ),
110
+ ),
111
+ button: (
112
+ fore: "05",
113
+ back: "70",
114
+ border: "70",
115
+ shadow: "50",
116
+ ),
117
+ ),
118
+ (
119
+ name: "hover",
120
+ fore: "05",
121
+ back: "95",
122
+ border: "40",
123
+ placeholder: "40",
124
+ shadow: "40",
125
+ accordion: (
126
+ accordionSummary: (
127
+ fore: "05",
128
+ back: "60",
129
+ border: "60",
130
+ ),
131
+ ),
132
+ button: (
133
+ fore: "05",
134
+ back: "60",
135
+ border: "60",
136
+ shadow: "50",
137
+ ),
138
+ ),
139
+ (
140
+ name: "focus",
141
+ fore: "05",
142
+ back: "95",
143
+ border: "40",
144
+ placeholder: "40",
145
+ shadow: "40",
146
+ accordion: (
147
+ accordionSummary: (
148
+ fore: "05",
149
+ back: "60",
150
+ border: "60",
151
+ ),
152
+ ),
153
+ button: (
154
+ fore: "05",
155
+ back: "60",
156
+ border: "60",
157
+ shadow: "50",
158
+ ),
159
+ ),
160
+ (
161
+ name: "active",
162
+ fore: "05",
163
+ back: "95",
164
+ border: "40",
165
+ placeholder: "40",
166
+ shadow: "40",
167
+ accordion: (
168
+ accordionSummary: (
169
+ fore: "05",
170
+ back: "50",
171
+ border: "50",
172
+ ),
173
+ ),
174
+ button: (
175
+ fore: "05",
176
+ back: "50",
177
+ border: "50",
178
+ shadow: "50",
179
+ ),
180
+ ),
181
+ (
182
+ name: "visited",
183
+ fore: "05",
184
+ back: "95",
185
+ border: "40",
186
+ placeholder: "40",
187
+ shadow: "40",
188
+ button: (
189
+ fore: "05",
190
+ back: "50",
191
+ border: "50",
192
+ shadow: "50",
193
+ ),
194
+ )
195
+ );
196
+
197
+ $colorShadesDark: (
198
+ (
199
+ name: "plain",
200
+ fore: "95",
201
+ back: "05",
202
+ border: "40",
203
+ placeholder: "40",
204
+ shadow: "30",
205
+ accordion: (
206
+ fore: "95",
207
+ back: "05",
208
+ border: "40",
209
+ accordionSummary: (
210
+ fore: "95",
211
+ back: "30",
212
+ border: "50",
213
+ ),
214
+ accordionDetails: (
215
+ fore: "95",
216
+ back: "05",
217
+ border: "40",
218
+ ),
219
+ ),
220
+ button: (
221
+ fore: "95",
222
+ back: "20",
223
+ border: "20",
224
+ shadow: "30",
225
+ ),
226
+ card: (
227
+ fore: "95",
228
+ back: "30",
229
+ border: "40",
230
+ shadow: "30",
231
+ messageHeader: (
232
+ fore: "95",
233
+ back: "30",
234
+ border: "40",
235
+ ),
236
+ messageBody: (
237
+ fore: "95",
238
+ back: "30",
239
+ border: "40",
240
+ ),
241
+ messageFooter: (
242
+ fore: "95",
243
+ back: "30",
244
+ border: "40",
245
+ ),
246
+ ),
247
+ message: (
248
+ fore: "95",
249
+ back: "30",
250
+ messageHeader: (
251
+ fore: "95",
252
+ back: "20",
253
+ border: "40",
254
+ ),
255
+ messageBody: (
256
+ fore: "95",
257
+ back: "30",
258
+ border: "40",
259
+ ),
260
+ ),
261
+ ),
262
+ (
263
+ name: "disabled",
264
+ fore: "80",
265
+ back: "10",
266
+ border: "70",
267
+ placeholder: "40",
268
+ shadow: "30",
269
+ accordion: (
270
+ accordionSummary: (
271
+ fore: "95",
272
+ back: "60",
273
+ border: "60",
274
+ ),
275
+ ),
276
+ button: (
277
+ fore: "95",
278
+ back: "40",
279
+ border: "40",
280
+ shadow: "30",
281
+ ),
282
+ ),
283
+ (
284
+ name: "hover",
285
+ fore: "95",
286
+ back: "05",
287
+ border: "40",
288
+ placeholder: "40",
289
+ shadow: "40",
290
+ accordion: (
291
+ accordionSummary: (
292
+ fore: "95",
293
+ back: "40",
294
+ border: "40",
295
+ shadow: "30",
296
+ ),
297
+ ),
298
+ button: (
299
+ fore: "95",
300
+ back: "30",
301
+ border: "30",
302
+ shadow: "30",
303
+ ),
304
+ ),
305
+ (
306
+ name: "focus",
307
+ fore: "95",
308
+ back: "05",
309
+ border: "60",
310
+ placeholder: "60",
311
+ shadow: "40",
312
+ accordion: (
313
+ accordionSummary: (
314
+ fore: "95",
315
+ back: "50",
316
+ border: "50",
317
+ ),
318
+ ),
319
+ button: (
320
+ fore: "95",
321
+ back: "30",
322
+ border: "30",
323
+ shadow: "30",
324
+ ),
325
+ ),
326
+ (
327
+ name: "active",
328
+ fore: "95",
329
+ back: "05",
330
+ border: "40",
331
+ placeholder: "40",
332
+ shadow: "40",
333
+ accordion: (
334
+ accordionSummary: (
335
+ fore: "95",
336
+ back: "50",
337
+ border: "50",
338
+ ),
339
+ ),
340
+ button: (
341
+ fore: "95",
342
+ back: "20",
343
+ border: "20",
344
+ shadow: "30",
345
+ ),
346
+ ),
347
+ (
348
+ name: "visited",
349
+ fore: "95",
350
+ back: "05",
351
+ border: "40",
352
+ placeholder: "40",
353
+ shadow: "40",
354
+ button: (
355
+ fore: "95",
356
+ back: "20",
357
+ border: "20",
358
+ shadow: "30",
359
+ ),
360
+ )
361
+ );
362
+
363
+ //#endregion define color shades array
364
+
365
+ //#region define colorNames array
366
+
367
+ $colors: (
368
+ (
369
+ "name": "gray",
370
+ "hue": $color-hue-gray,
371
+ "chroma": $color-chroma-gray,
372
+ ),
373
+ (
374
+ "name": "red",
375
+ "hue": $color-hue-red,
376
+ "chroma": $color-chroma-colorful,
377
+ ),
378
+ (
379
+ "name": "orange",
380
+ "hue": $color-hue-orange,
381
+ "chroma": $color-chroma-colorful,
382
+ ),
383
+ (
384
+ "name": "yellow",
385
+ "hue": $color-hue-yellow,
386
+ "chroma": $color-chroma-colorful,
387
+ ),
388
+ (
389
+ "name": "green",
390
+ "hue": $color-hue-green,
391
+ "chroma": $color-chroma-colorful,
392
+ ),
393
+ (
394
+ "name": "cyan",
395
+ "hue": $color-hue-cyan,
396
+ "chroma": $color-chroma-colorful,
397
+ ),
398
+ (
399
+ "name": "blue",
400
+ "hue": $color-hue-blue,
401
+ "chroma": $color-chroma-colorful,
402
+ ),
403
+ (
404
+ "name": "violet",
405
+ "hue": $color-hue-violet,
406
+ "chroma": $color-chroma-colorful,
407
+ ),
408
+ (
409
+ "name": "magenta",
410
+ "hue": $color-hue-magenta,
411
+ "chroma": $color-chroma-colorful,
412
+ )
413
+ ) !default;
414
+
415
+ //#endregion define colorNames array
@@ -0,0 +1,7 @@
1
+
2
+ @forward "./animation.scss";
3
+ @forward "./border.scss";
4
+ @forward "./color.scss";
5
+ @forward "./layout.scss";
6
+ @forward "./miscellaneous.scss";
7
+ @forward "./typography.scss";