kmaterialize 2.0.0 → 2.3.3-1.0.1

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 (156) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +55 -91
  3. package/components/appbar/_navbar.old.scss +223 -0
  4. package/components/appbar/appbar.css +235 -0
  5. package/components/appbar/appbar.mjs +54 -0
  6. package/components/appbar/appbar.test.mjs +9 -0
  7. package/components/atomic/atomic.mjs +19 -0
  8. package/components/atomic/component.mjs +67 -0
  9. package/components/badge/_badges.scss +75 -0
  10. package/components/badge/badge.mjs +11 -0
  11. package/components/breadcrumb/_breadcrumb.scss +27 -0
  12. package/components/button/_buttons.scss +352 -0
  13. package/components/button/button.mjs +11 -0
  14. package/components/button/buttons.stories.ts +150 -0
  15. package/components/button/buttons.ts +282 -0
  16. package/components/button/examples.iso.js +18 -0
  17. package/components/button/fabSpec.js +65 -0
  18. package/components/button/test-button.mjs +16 -0
  19. package/components/card/_cards.scss +229 -0
  20. package/components/card/card.mjs +10 -0
  21. package/components/card/cards.ts +185 -0
  22. package/components/card/cardsSpec.js +269 -0
  23. package/components/carousel/_carousel.scss +93 -0
  24. package/components/carousel/_slider.scss +119 -0
  25. package/components/carousel/carousel.ts +693 -0
  26. package/components/carousel/carouselSpec.js +61 -0
  27. package/components/carousel/slider.ts +431 -0
  28. package/components/carousel/sliderSpec.js +99 -0
  29. package/components/checkbox/_checkboxes.scss +281 -0
  30. package/components/checkbox/checkbox.mdx +24 -0
  31. package/components/checkbox/checkbox.stories.ts +120 -0
  32. package/components/chip/chip.mjs +37 -0
  33. package/components/chip/chip.test.mjs +10 -0
  34. package/components/chip/chips.css +126 -0
  35. package/components/chip/chips.mdx +33 -0
  36. package/components/chip/chips.ts +440 -0
  37. package/components/chip/chipsSpec.js +165 -0
  38. package/components/chip/readme.md +323 -0
  39. package/components/collapsible/_collapsible.scss +82 -0
  40. package/components/collapsible/collapsible.ts +230 -0
  41. package/components/collapsible/collapsibleSpec.js +240 -0
  42. package/components/datepicker/_datepicker.scss +268 -0
  43. package/components/datepicker/datepicker.ts +1450 -0
  44. package/components/datepicker/datepickerSpec.js +162 -0
  45. package/components/dialog/_materialbox.scss +42 -0
  46. package/components/dialog/_modal.scss +79 -0
  47. package/components/dialog/materialbox.ts +446 -0
  48. package/components/dialog/materialboxSpec.js +37 -0
  49. package/components/dialog/modal.ts +111 -0
  50. package/components/dialog/modalSpec.js +83 -0
  51. package/components/dialog/readme.md +5 -0
  52. package/components/divider/readme.md +15 -0
  53. package/components/dropdown/_dropdown.scss +83 -0
  54. package/components/dropdown/dropdown.ts +653 -0
  55. package/components/dropdown/dropdownSpec.js +108 -0
  56. package/components/list/_collection.scss +114 -0
  57. package/components/list/_list.scss +6 -0
  58. package/components/list/list.mjs +58 -0
  59. package/components/list/list.test.mjs +16 -0
  60. package/components/loading/loading.mjs +26 -0
  61. package/components/loading/loading.test.mjs +10 -0
  62. package/components/navigation-bar/_old +582 -0
  63. package/components/navigation-bar/navigation-bar.mdx +20 -0
  64. package/components/navigation-bar/navigation-bar.stories.ts +39 -0
  65. package/components/navigation-drawer/_sidenav.scss +247 -0
  66. package/components/navigation-drawer/sidenav.ts +546 -0
  67. package/components/navigation-drawer/sidenavSpec.js +124 -0
  68. package/components/pagination/_pagination.scss +47 -0
  69. package/components/progress/_preloader.scss +416 -0
  70. package/components/radio-button/_radio-buttons.scss +112 -0
  71. package/components/radio-button/radio-buttons.mdx +28 -0
  72. package/components/radio-button/radio-buttons.stories.ts +51 -0
  73. package/components/search/autocomplete.ts +620 -0
  74. package/components/search/autocompleteSpec.js +321 -0
  75. package/components/slider/_range.scss +157 -0
  76. package/components/slider/range.ts +216 -0
  77. package/components/snackbar/_toast.scss +68 -0
  78. package/components/snackbar/toastSpec.js +132 -0
  79. package/components/snackbar/toasts.ts +312 -0
  80. package/components/switch/_switches.scss +121 -0
  81. package/components/tabs/_tabs.scss +171 -0
  82. package/components/tabs/tabs.mjs +31 -0
  83. package/components/tabs/tabs.ts +358 -0
  84. package/components/tabs/tabsSpec.js +180 -0
  85. package/components/textfield/_file-input.scss +41 -0
  86. package/components/textfield/_input-fields.scss +368 -0
  87. package/components/textfield/_select.scss +104 -0
  88. package/components/textfield/formfields.css +311 -0
  89. package/components/textfield/forms.ts +182 -0
  90. package/components/textfield/formsSpec.js +142 -0
  91. package/components/textfield/select.ts +472 -0
  92. package/components/textfield/selectSpec.js +390 -0
  93. package/components/textfield/textfield.mjs +29 -0
  94. package/components/textfield/textfield.test.mjs +10 -0
  95. package/components/timepicker/_timepicker.scss +362 -0
  96. package/components/timepicker/timepicker.ts +905 -0
  97. package/components/tooltip/_tooltip.scss +40 -0
  98. package/components/tooltip/tooltip.ts +380 -0
  99. package/components/tooltip/tooltipSpec.js +145 -0
  100. package/dist/css/materialize.colors.min.css +6 -0
  101. package/dist/css/materialize.css +7578 -6326
  102. package/dist/css/materialize.min.css +6 -13
  103. package/dist/css/materialize.min.css.map +1 -0
  104. package/dist/js/materialize.cjs.js +8410 -0
  105. package/dist/js/materialize.d.ts +2625 -0
  106. package/dist/js/materialize.js +8415 -12374
  107. package/dist/js/materialize.min.js +6 -6
  108. package/dist/js/materialize.mjs +8382 -0
  109. package/package.json +82 -47
  110. package/sass/_colors.scss +417 -0
  111. package/sass/_global.scss +490 -0
  112. package/sass/_grid.scss +172 -0
  113. package/sass/_table_of_contents.scss +28 -0
  114. package/sass/_tapTarget.scss +102 -0
  115. package/sass/_typography.scss +58 -0
  116. package/sass/_variables.scss +56 -0
  117. package/sass/colors.module.css +74 -0
  118. package/sass/materialize.scss +51 -0
  119. package/sass/mixins.module.scss +168 -0
  120. package/sass/pulse.css +35 -0
  121. package/sass/theme.module.css +140 -0
  122. package/sass/tokens.module.css +272 -0
  123. package/sass/transitions.css +10 -0
  124. package/sass/typography.module.css +150 -0
  125. package/extras/noUiSlider/nouislider.css +0 -406
  126. package/extras/noUiSlider/nouislider.js +0 -2147
  127. package/extras/noUiSlider/nouislider.min.js +0 -1
  128. package/js/anime.min.js +0 -34
  129. package/js/autocomplete.js +0 -448
  130. package/js/buttons.js +0 -354
  131. package/js/cards.js +0 -40
  132. package/js/carousel.js +0 -717
  133. package/js/cash.js +0 -960
  134. package/js/characterCounter.js +0 -136
  135. package/js/chips.js +0 -481
  136. package/js/collapsible.js +0 -275
  137. package/js/component.js +0 -44
  138. package/js/datepicker.js +0 -975
  139. package/js/dropdown.js +0 -635
  140. package/js/forms.js +0 -275
  141. package/js/global.js +0 -444
  142. package/js/materialbox.js +0 -453
  143. package/js/modal.js +0 -382
  144. package/js/parallax.js +0 -138
  145. package/js/pushpin.js +0 -148
  146. package/js/range.js +0 -263
  147. package/js/scrollspy.js +0 -295
  148. package/js/select.js +0 -450
  149. package/js/sidenav.js +0 -580
  150. package/js/slider.js +0 -359
  151. package/js/tabs.js +0 -402
  152. package/js/tapTarget.js +0 -314
  153. package/js/timepicker.js +0 -647
  154. package/js/toasts.js +0 -310
  155. package/js/tooltip.js +0 -303
  156. package/js/waves.js +0 -335
package/package.json CHANGED
@@ -1,62 +1,97 @@
1
1
  {
2
2
  "name": "kmaterialize",
3
- "description": "Kevin's Materialize (fork): A modern responsive front-end framework based on Material Design",
4
- "author": "Kévin Zarshenas",
5
- "version": "2.0.0",
6
- "main": "dist/js/materialize.js",
3
+ "description": "The responsive front-end library based on Material Design from Google.",
4
+ "author": "The Materialize Team",
5
+ "homepage": "https://materialize.kevinzarshenas.com",
6
+ "version": "2.3.3-1.0.1",
7
7
  "style": "dist/css/materialize.css",
8
+ "sass": "sass/materialize.scss",
9
+ "typings": "dist/js/materialize.d.ts",
8
10
  "license": "MIT",
11
+ "main": "dist/js/materialize.js",
12
+ "module": "./dist/js/materialize.mjs",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/js/materialize.d.ts",
16
+ "import": "./dist/js/materialize.mjs",
17
+ "require": "./dist/js/materialize.cjs.js"
18
+ },
19
+ "./dist/css/*": "./dist/css/*",
20
+ "./sass/*": "./sass/*",
21
+ "./components/*": "./components/*"
22
+ },
9
23
  "repository": {
10
24
  "type": "git",
11
- "url": "git://github.com/kekefreedog/Kmaterialize.git"
25
+ "url": "git://github.com/materializecss/materialize.git"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/materializecss/materialize/issues"
29
+ },
30
+ "scripts": {
31
+ "lint": "eslint .",
32
+ "test": "jasmine-browser-runner runSpecs --config=jasmine.json",
33
+ "build": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
34
+ "release": "npm run lint && npm run build -- --environment BUILD:release && node compress.mjs",
35
+ "preversion": "npm run lint && npm test",
36
+ "version": "npm run build -- --environment BUILD:release && node compress.mjs && git add .",
37
+ "prepublishOnly": "npm run build -- --environment BUILD:release",
38
+ "storybook": "storybook dev -p 6006",
39
+ "build-storybook": "storybook build",
40
+ "demo": "live-server",
41
+ "vitest": "vitest"
12
42
  },
43
+ "lint-staged": {
44
+ "js/*.js": [
45
+ "prettier --write",
46
+ "git add"
47
+ ]
48
+ },
49
+ "browserslist": [
50
+ "last 2 versions",
51
+ "Chrome >= 30",
52
+ "Firefox >= 30",
53
+ "Safari >= 8"
54
+ ],
13
55
  "engine": "node >= 6",
56
+ "dependencies": {
57
+ "normalize.css": "^8.0.1"
58
+ },
14
59
  "devDependencies": {
15
- "autoprefixer": "^7.1.1",
16
- "babel-preset-es2015": "^6.24.1",
17
- "grunt": "^1.0.1",
18
- "grunt-babel": "^6.0.0",
19
- "grunt-banner": "^0.6.0",
20
- "grunt-browser-sync": "^2.2.0",
21
- "grunt-concurrent": "^2.3.1",
22
- "grunt-contrib-clean": "^1.1.0",
23
- "grunt-contrib-compress": "^1.4.1",
24
- "grunt-contrib-concat": "^1.0.1",
25
- "grunt-contrib-jade": "^1.0.0",
26
- "grunt-contrib-jasmine": "^1.1.0",
27
- "grunt-contrib-uglify": "^3.0.1",
28
- "grunt-contrib-watch": "^1.0.0",
29
- "grunt-notify": "^0.4.5",
30
- "grunt-postcss": "^0.8.0",
31
- "grunt-remove-logging": "^0.2.0",
32
- "grunt-rename-util": "^1.0.0",
33
- "grunt-sass": "^2.0.0",
34
- "grunt-text-replace": "^0.4.0",
35
- "husky": "^0.14.3",
36
- "jasmine": "^2.6.0",
37
- "jasmine-jquery": "^2.1.1",
38
- "jquery": "^3.2.1",
39
- "lint-staged": "^7.0.4",
40
- "node-archiver": "^0.3.0",
41
- "node-sass": "^4.7.2",
42
- "phantomjs-prebuilt": "^2.1.14",
43
- "prettier": "^1.12.1"
60
+ "@fontsource/material-icons": "^5.2.5",
61
+ "@rollup/plugin-terser": "^1.0.0",
62
+ "@rollup/plugin-typescript": "^11.1.6",
63
+ "@storybook/addon-docs": "^9.0.12",
64
+ "@storybook/addon-themes": "^9.0.12",
65
+ "@storybook/html": "^9.0.12",
66
+ "@storybook/html-vite": "^9.0.12",
67
+ "@types/node": "^20.5.2",
68
+ "archiver": "^7.0.1",
69
+ "autoprefixer": "^10.4.21",
70
+ "eslint": "^9.10.0",
71
+ "eslint-plugin-storybook": "^9.0.12",
72
+ "jasmine": "^5.1.0",
73
+ "jasmine-browser-runner": "^2.5.0",
74
+ "jasmine-core": "^5.2.0",
75
+ "postcss": "^8.4.49",
76
+ "rollup": "^4.59.0",
77
+ "rollup-plugin-copy": "^3.5.0",
78
+ "rollup-plugin-dts": "^6.1.1",
79
+ "rollup-plugin-scss": "^4.0.0",
80
+ "sass": "^1.77.8",
81
+ "storybook": "^9.0.12",
82
+ "tslib": "^2.6.3",
83
+ "typescript": "^5.4.3",
84
+ "typescript-eslint": "^8.6.0",
85
+ "vitest": "^4.0.18"
44
86
  },
45
87
  "files": [
46
- "dist",
47
- "extras",
48
- "js/**/*.js",
88
+ "dist/css",
89
+ "dist/js",
90
+ "sass",
91
+ "components",
49
92
  "LICENSE"
50
93
  ],
51
- "bugs": {
52
- "url": "https://github.com/kekefreedog/Kmaterialize/issues"
53
- },
54
- "homepage": "https://github.com/kekefreedog/Kmaterialize#readme",
55
- "directories": {
56
- "doc": "docs",
57
- "test": "tests"
58
- },
59
- "scripts": {
60
- "test": "echo \"Error: no test specified\" && exit 1"
94
+ "overrides": {
95
+ "storybook": "$storybook"
61
96
  }
62
97
  }
@@ -0,0 +1,417 @@
1
+ @charset "UTF-8";
2
+ // Google Color Palette defined: http://www.google.com/design/spec/style/color.html
3
+
4
+ $materialize-red: (
5
+ "base": #e51c23,
6
+ "lighten-5": #fdeaeb,
7
+ "lighten-4": #f8c1c3,
8
+ "lighten-3": #f3989b,
9
+ "lighten-2": #ee6e73,
10
+ "lighten-1": #ea454b,
11
+ "darken-1": #d0181e,
12
+ "darken-2": #b9151b,
13
+ "darken-3": #a21318,
14
+ "darken-4": #8b1014,
15
+ );
16
+
17
+ $red: (
18
+ "base": #F44336,
19
+ "lighten-5": #FFEBEE,
20
+ "lighten-4": #FFCDD2,
21
+ "lighten-3": #EF9A9A,
22
+ "lighten-2": #E57373,
23
+ "lighten-1": #EF5350,
24
+ "darken-1": #E53935,
25
+ "darken-2": #D32F2F,
26
+ "darken-3": #C62828,
27
+ "darken-4": #B71C1C,
28
+ "accent-1": #FF8A80,
29
+ "accent-2": #FF5252,
30
+ "accent-3": #FF1744,
31
+ "accent-4": #D50000
32
+ );
33
+
34
+ $pink: (
35
+ "base": #e91e63,
36
+ "lighten-5": #fce4ec,
37
+ "lighten-4": #f8bbd0,
38
+ "lighten-3": #f48fb1,
39
+ "lighten-2": #f06292,
40
+ "lighten-1": #ec407a,
41
+ "darken-1": #d81b60,
42
+ "darken-2": #c2185b,
43
+ "darken-3": #ad1457,
44
+ "darken-4": #880e4f,
45
+ "accent-1": #ff80ab,
46
+ "accent-2": #ff4081,
47
+ "accent-3": #f50057,
48
+ "accent-4": #c51162
49
+ );
50
+
51
+ $purple: (
52
+ "base": #9c27b0,
53
+ "lighten-5": #f3e5f5,
54
+ "lighten-4": #e1bee7,
55
+ "lighten-3": #ce93d8,
56
+ "lighten-2": #ba68c8,
57
+ "lighten-1": #ab47bc,
58
+ "darken-1": #8e24aa,
59
+ "darken-2": #7b1fa2,
60
+ "darken-3": #6a1b9a,
61
+ "darken-4": #4a148c,
62
+ "accent-1": #ea80fc,
63
+ "accent-2": #e040fb,
64
+ "accent-3": #d500f9,
65
+ "accent-4": #aa00ff
66
+ );
67
+
68
+ $deep-purple: (
69
+ "base": #673ab7,
70
+ "lighten-5": #ede7f6,
71
+ "lighten-4": #d1c4e9,
72
+ "lighten-3": #b39ddb,
73
+ "lighten-2": #9575cd,
74
+ "lighten-1": #7e57c2,
75
+ "darken-1": #5e35b1,
76
+ "darken-2": #512da8,
77
+ "darken-3": #4527a0,
78
+ "darken-4": #311b92,
79
+ "accent-1": #b388ff,
80
+ "accent-2": #7c4dff,
81
+ "accent-3": #651fff,
82
+ "accent-4": #6200ea
83
+ );
84
+
85
+ $indigo: (
86
+ "base": #3f51b5,
87
+ "lighten-5": #e8eaf6,
88
+ "lighten-4": #c5cae9,
89
+ "lighten-3": #9fa8da,
90
+ "lighten-2": #7986cb,
91
+ "lighten-1": #5c6bc0,
92
+ "darken-1": #3949ab,
93
+ "darken-2": #303f9f,
94
+ "darken-3": #283593,
95
+ "darken-4": #1a237e,
96
+ "accent-1": #8c9eff,
97
+ "accent-2": #536dfe,
98
+ "accent-3": #3d5afe,
99
+ "accent-4": #304ffe
100
+ );
101
+
102
+ $blue: (
103
+ "base": #2196F3,
104
+ "lighten-5": #E3F2FD,
105
+ "lighten-4": #BBDEFB,
106
+ "lighten-3": #90CAF9,
107
+ "lighten-2": #64B5F6,
108
+ "lighten-1": #42A5F5,
109
+ "darken-1": #1E88E5,
110
+ "darken-2": #1976D2,
111
+ "darken-3": #1565C0,
112
+ "darken-4": #0D47A1,
113
+ "accent-1": #82B1FF,
114
+ "accent-2": #448AFF,
115
+ "accent-3": #2979FF,
116
+ "accent-4": #2962FF
117
+ );
118
+
119
+ $light-blue: (
120
+ "base": #03a9f4,
121
+ "lighten-5": #e1f5fe,
122
+ "lighten-4": #b3e5fc,
123
+ "lighten-3": #81d4fa,
124
+ "lighten-2": #4fc3f7,
125
+ "lighten-1": #29b6f6,
126
+ "darken-1": #039be5,
127
+ "darken-2": #0288d1,
128
+ "darken-3": #0277bd,
129
+ "darken-4": #01579b,
130
+ "accent-1": #80d8ff,
131
+ "accent-2": #40c4ff,
132
+ "accent-3": #00b0ff,
133
+ "accent-4": #0091ea
134
+ );
135
+
136
+ $cyan: (
137
+ "base": #00bcd4,
138
+ "lighten-5": #e0f7fa,
139
+ "lighten-4": #b2ebf2,
140
+ "lighten-3": #80deea,
141
+ "lighten-2": #4dd0e1,
142
+ "lighten-1": #26c6da,
143
+ "darken-1": #00acc1,
144
+ "darken-2": #0097a7,
145
+ "darken-3": #00838f,
146
+ "darken-4": #006064,
147
+ "accent-1": #84ffff,
148
+ "accent-2": #18ffff,
149
+ "accent-3": #00e5ff,
150
+ "accent-4": #00b8d4
151
+ );
152
+
153
+ $teal: (
154
+ "base": #009688,
155
+ "lighten-5": #e0f2f1,
156
+ "lighten-4": #b2dfdb,
157
+ "lighten-3": #80cbc4,
158
+ "lighten-2": #4db6ac,
159
+ "lighten-1": #26a69a,
160
+ "darken-1": #00897b,
161
+ "darken-2": #00796b,
162
+ "darken-3": #00695c,
163
+ "darken-4": #004d40,
164
+ "accent-1": #a7ffeb,
165
+ "accent-2": #64ffda,
166
+ "accent-3": #1de9b6,
167
+ "accent-4": #00bfa5
168
+ );
169
+
170
+ $green: (
171
+ "base": #4CAF50,
172
+ "lighten-5": #E8F5E9,
173
+ "lighten-4": #C8E6C9,
174
+ "lighten-3": #A5D6A7,
175
+ "lighten-2": #81C784,
176
+ "lighten-1": #66BB6A,
177
+ "darken-1": #43A047,
178
+ "darken-2": #388E3C,
179
+ "darken-3": #2E7D32,
180
+ "darken-4": #1B5E20,
181
+ "accent-1": #B9F6CA,
182
+ "accent-2": #69F0AE,
183
+ "accent-3": #00E676,
184
+ "accent-4": #00C853
185
+ );
186
+
187
+ $light-green: (
188
+ "base": #8bc34a,
189
+ "lighten-5": #f1f8e9,
190
+ "lighten-4": #dcedc8,
191
+ "lighten-3": #c5e1a5,
192
+ "lighten-2": #aed581,
193
+ "lighten-1": #9ccc65,
194
+ "darken-1": #7cb342,
195
+ "darken-2": #689f38,
196
+ "darken-3": #558b2f,
197
+ "darken-4": #33691e,
198
+ "accent-1": #ccff90,
199
+ "accent-2": #b2ff59,
200
+ "accent-3": #76ff03,
201
+ "accent-4": #64dd17
202
+ );
203
+
204
+ $lime: (
205
+ "base": #cddc39,
206
+ "lighten-5": #f9fbe7,
207
+ "lighten-4": #f0f4c3,
208
+ "lighten-3": #e6ee9c,
209
+ "lighten-2": #dce775,
210
+ "lighten-1": #d4e157,
211
+ "darken-1": #c0ca33,
212
+ "darken-2": #afb42b,
213
+ "darken-3": #9e9d24,
214
+ "darken-4": #827717,
215
+ "accent-1": #f4ff81,
216
+ "accent-2": #eeff41,
217
+ "accent-3": #c6ff00,
218
+ "accent-4": #aeea00
219
+ );
220
+
221
+ $yellow: (
222
+ "base": #ffeb3b,
223
+ "lighten-5": #fffde7,
224
+ "lighten-4": #fff9c4,
225
+ "lighten-3": #fff59d,
226
+ "lighten-2": #fff176,
227
+ "lighten-1": #ffee58,
228
+ "darken-1": #fdd835,
229
+ "darken-2": #fbc02d,
230
+ "darken-3": #f9a825,
231
+ "darken-4": #f57f17,
232
+ "accent-1": #ffff8d,
233
+ "accent-2": #ffff00,
234
+ "accent-3": #ffea00,
235
+ "accent-4": #ffd600
236
+ );
237
+
238
+ $amber: (
239
+ "base": #ffc107,
240
+ "lighten-5": #fff8e1,
241
+ "lighten-4": #ffecb3,
242
+ "lighten-3": #ffe082,
243
+ "lighten-2": #ffd54f,
244
+ "lighten-1": #ffca28,
245
+ "darken-1": #ffb300,
246
+ "darken-2": #ffa000,
247
+ "darken-3": #ff8f00,
248
+ "darken-4": #ff6f00,
249
+ "accent-1": #ffe57f,
250
+ "accent-2": #ffd740,
251
+ "accent-3": #ffc400,
252
+ "accent-4": #ffab00
253
+ );
254
+
255
+ $orange: (
256
+ "base": #ff9800,
257
+ "lighten-5": #fff3e0,
258
+ "lighten-4": #ffe0b2,
259
+ "lighten-3": #ffcc80,
260
+ "lighten-2": #ffb74d,
261
+ "lighten-1": #ffa726,
262
+ "darken-1": #fb8c00,
263
+ "darken-2": #f57c00,
264
+ "darken-3": #ef6c00,
265
+ "darken-4": #e65100,
266
+ "accent-1": #ffd180,
267
+ "accent-2": #ffab40,
268
+ "accent-3": #ff9100,
269
+ "accent-4": #ff6d00
270
+ );
271
+
272
+ $deep-orange: (
273
+ "base": #ff5722,
274
+ "lighten-5": #fbe9e7,
275
+ "lighten-4": #ffccbc,
276
+ "lighten-3": #ffab91,
277
+ "lighten-2": #ff8a65,
278
+ "lighten-1": #ff7043,
279
+ "darken-1": #f4511e,
280
+ "darken-2": #e64a19,
281
+ "darken-3": #d84315,
282
+ "darken-4": #bf360c,
283
+ "accent-1": #ff9e80,
284
+ "accent-2": #ff6e40,
285
+ "accent-3": #ff3d00,
286
+ "accent-4": #dd2c00
287
+ );
288
+
289
+ $brown: (
290
+ "base": #795548,
291
+ "lighten-5": #efebe9,
292
+ "lighten-4": #d7ccc8,
293
+ "lighten-3": #bcaaa4,
294
+ "lighten-2": #a1887f,
295
+ "lighten-1": #8d6e63,
296
+ "darken-1": #6d4c41,
297
+ "darken-2": #5d4037,
298
+ "darken-3": #4e342e,
299
+ "darken-4": #3e2723
300
+ );
301
+
302
+ $blue-grey: (
303
+ "base": #607d8b,
304
+ "lighten-5": #eceff1,
305
+ "lighten-4": #cfd8dc,
306
+ "lighten-3": #b0bec5,
307
+ "lighten-2": #90a4ae,
308
+ "lighten-1": #78909c,
309
+ "darken-1": #546e7a,
310
+ "darken-2": #455a64,
311
+ "darken-3": #37474f,
312
+ "darken-4": #263238
313
+ );
314
+
315
+ $grey: (
316
+ "base": #9e9e9e,
317
+ "lighten-5": #fafafa,
318
+ "lighten-4": #f5f5f5,
319
+ "lighten-3": #eeeeee,
320
+ "lighten-2": #e0e0e0,
321
+ "lighten-1": #bdbdbd,
322
+ "darken-1": #757575,
323
+ "darken-2": #616161,
324
+ "darken-3": #424242,
325
+ "darken-4": #212121
326
+ );
327
+
328
+ $shades: (
329
+ "black": #000000,
330
+ "white": #FFFFFF,
331
+ "transparent": transparent
332
+ );
333
+
334
+ $gold: (
335
+ "base": #a68b4d,
336
+ "lighten-5": #f4f1ea,
337
+ "lighten-4": #e4dcca,
338
+ "lighten-3": #d2c5a6,
339
+ "lighten-2": #c1ae82,
340
+ "lighten-1": #b29a64,
341
+ "darken-1": #907943,
342
+ "darken-2": #746136,
343
+ "darken-3": #534626,
344
+ "darken-4": #322a17
345
+ );
346
+
347
+ $colors: (
348
+ "materialize-red": $materialize-red,
349
+ "red": $red,
350
+ "pink": $pink,
351
+ "purple": $purple,
352
+ "deep-purple": $deep-purple,
353
+ "indigo": $indigo,
354
+ "blue": $blue,
355
+ "light-blue": $light-blue,
356
+ "cyan": $cyan,
357
+ "teal": $teal,
358
+ "green": $green,
359
+ "light-green": $light-green,
360
+ "lime": $lime,
361
+ "yellow": $yellow,
362
+ "amber": $amber,
363
+ "orange": $orange,
364
+ "deep-orange": $deep-orange,
365
+ "brown": $brown,
366
+ "blue-grey": $blue-grey,
367
+ "grey": $grey,
368
+ "gold": $gold,
369
+ "shades": $shades
370
+ ) !default;
371
+
372
+
373
+ // usage: colorFunc("name_of_color", "type_of_color")
374
+ // to avoid to repeating map-get($colors, ...)
375
+ @function colorFunc($color, $type) {
376
+ @if map-has-key($colors, $color) {
377
+ $curr_color: map-get($colors, $color);
378
+ @if map-has-key($curr_color, $type) {
379
+ @return map-get($curr_color, $type);
380
+ }
381
+ }
382
+ @warn "Unknown `#{$color}` - `#{$type}` in $colors.";
383
+ @return null;
384
+ }
385
+
386
+
387
+ // Color Classes
388
+ @each $color_name, $color in $colors {
389
+ @each $color_type, $color_value in $color {
390
+ @if $color_type == "base" {
391
+ .#{$color_name} {
392
+ background-color: $color_value !important;
393
+ }
394
+ .#{$color_name}-text {
395
+ color: $color_value !important;
396
+ }
397
+ }
398
+ @else if $color_name != "shades" {
399
+ .#{$color_name}.#{$color_type} {
400
+ background-color: $color_value !important;
401
+ }
402
+ .#{$color_name}-text.text-#{$color_type} {
403
+ color: $color_value !important;
404
+ }
405
+ }
406
+ }
407
+ }
408
+
409
+ // Shade classes
410
+ @each $color, $color_value in $shades {
411
+ .#{$color} {
412
+ background-color: $color_value !important;
413
+ }
414
+ .#{$color}-text {
415
+ color: $color_value !important;
416
+ }
417
+ }