@guebbit/css-toolkit 1.1.2 → 1.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.
Files changed (90) hide show
  1. package/LICENSE +661 -661
  2. package/README.md +5 -5
  3. package/docs/.postcssrc.cjs +11 -11
  4. package/docs/.vitepress/config.ts +88 -88
  5. package/docs/.vitepress/dist/404.html +5 -4
  6. package/docs/.vitepress/dist/assets/{app.CpyNzro9.js → app.Cez_7bx7.js} +1 -1
  7. package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.CkfJPSmi.js +1 -0
  8. package/docs/.vitepress/dist/assets/chunks/VPLocalSearchBox.lfLgIsvm.js +8 -0
  9. package/docs/.vitepress/dist/assets/chunks/framework.BQmytedh.js +18 -0
  10. package/docs/.vitepress/dist/assets/chunks/theme.ZIndENJH.js +2 -0
  11. package/docs/.vitepress/dist/assets/{colors_bootstrap.md.DiC9aO06.js → colors_bootstrap.md.B8QNot57.js} +1 -1
  12. package/docs/.vitepress/dist/assets/{colors_bootstrap.md.DiC9aO06.lean.js → colors_bootstrap.md.B8QNot57.lean.js} +1 -1
  13. package/docs/.vitepress/dist/assets/{colors_brands.md.Bp8_jfHR.js → colors_brands.md.DA7CAmLz.js} +1 -1
  14. package/docs/.vitepress/dist/assets/{colors_brands.md.Bp8_jfHR.lean.js → colors_brands.md.DA7CAmLz.lean.js} +1 -1
  15. package/docs/.vitepress/dist/assets/{colors_customs.md.DyEXln8b.js → colors_customs.md.B9XC2fYm.js} +1 -1
  16. package/docs/.vitepress/dist/assets/{colors_customs.md.DyEXln8b.lean.js → colors_customs.md.B9XC2fYm.lean.js} +1 -1
  17. package/docs/.vitepress/dist/assets/{functions_colors.md.CtYahXnA.js → functions_colors.md.8WIzA1Az.js} +1 -1
  18. package/docs/.vitepress/dist/assets/{functions_colors.md.CtYahXnA.lean.js → functions_colors.md.8WIzA1Az.lean.js} +1 -1
  19. package/docs/.vitepress/dist/assets/{functions_helpers.md.DZRTPA4t.js → functions_helpers.md.DlnJURDc.js} +1 -1
  20. package/docs/.vitepress/dist/assets/{functions_helpers.md.DZRTPA4t.lean.js → functions_helpers.md.DlnJURDc.lean.js} +1 -1
  21. package/docs/.vitepress/dist/assets/{functions_strings.md.BMMJdTdo.js → functions_strings.md.B-I-mSmy.js} +1 -1
  22. package/docs/.vitepress/dist/assets/{functions_strings.md.BMMJdTdo.lean.js → functions_strings.md.B-I-mSmy.lean.js} +1 -1
  23. package/docs/.vitepress/dist/assets/{index.md.2uetSBMH.js → index.md.DO-yHYeM.js} +1 -1
  24. package/docs/.vitepress/dist/assets/{index.md.2uetSBMH.lean.js → index.md.DO-yHYeM.lean.js} +1 -1
  25. package/docs/.vitepress/dist/assets/{mixins_build-aspect-ratio.md.8mabvpDg.js → mixins_build-aspect-ratio.md.Cjv_a3MY.js} +1 -1
  26. package/docs/.vitepress/dist/assets/{mixins_build-aspect-ratio.md.8mabvpDg.lean.js → mixins_build-aspect-ratio.md.Cjv_a3MY.lean.js} +1 -1
  27. package/docs/.vitepress/dist/assets/{mixins_build-compatibility.md.cOIJ58bq.js → mixins_build-compatibility.md.BO6wODYa.js} +1 -1
  28. package/docs/.vitepress/dist/assets/{mixins_build-compatibility.md.cOIJ58bq.lean.js → mixins_build-compatibility.md.BO6wODYa.lean.js} +1 -1
  29. package/docs/.vitepress/dist/assets/{mixins_build-scrollbar.md.DrR7vY38.js → mixins_build-scrollbar.md.BX34elgD.js} +1 -1
  30. package/docs/.vitepress/dist/assets/{mixins_build-scrollbar.md.DrR7vY38.lean.js → mixins_build-scrollbar.md.BX34elgD.lean.js} +1 -1
  31. package/docs/.vitepress/dist/assets/{mixins_create-colors.md.FiVBK2v9.js → mixins_create-colors.md.82HeTZt6.js} +1 -1
  32. package/docs/.vitepress/dist/assets/{mixins_create-colors.md.FiVBK2v9.lean.js → mixins_create-colors.md.82HeTZt6.lean.js} +1 -1
  33. package/docs/.vitepress/dist/assets/{mixins_create-helper-margin.md.B85aWiR9.js → mixins_create-helper-margin.md.D2-T7z0a.js} +1 -1
  34. package/docs/.vitepress/dist/assets/{mixins_create-helper-margin.md.B85aWiR9.lean.js → mixins_create-helper-margin.md.D2-T7z0a.lean.js} +1 -1
  35. package/docs/.vitepress/dist/assets/{mixins_create-helper-padding.md._fxbDV5T.js → mixins_create-helper-padding.md.Cp-laxuA.js} +1 -1
  36. package/docs/.vitepress/dist/assets/{mixins_create-helper-padding.md._fxbDV5T.lean.js → mixins_create-helper-padding.md.Cp-laxuA.lean.js} +1 -1
  37. package/docs/.vitepress/dist/assets/{mixins_create-instruction.md.DKI2LvdM.js → mixins_create-instruction.md.dJ83FO6R.js} +1 -1
  38. package/docs/.vitepress/dist/assets/{mixins_create-instruction.md.DKI2LvdM.lean.js → mixins_create-instruction.md.dJ83FO6R.lean.js} +1 -1
  39. package/docs/.vitepress/dist/assets/style.BKBz-tcN.css +1 -0
  40. package/docs/.vitepress/dist/colors/bootstrap.html +9 -8
  41. package/docs/.vitepress/dist/colors/brands.html +9 -8
  42. package/docs/.vitepress/dist/colors/customs.html +9 -8
  43. package/docs/.vitepress/dist/functions/colors.html +9 -8
  44. package/docs/.vitepress/dist/functions/helpers.html +9 -8
  45. package/docs/.vitepress/dist/functions/strings.html +9 -8
  46. package/docs/.vitepress/dist/hashmap.json +1 -1
  47. package/docs/.vitepress/dist/index.html +9 -8
  48. package/docs/.vitepress/dist/mixins/build-aspect-ratio.html +9 -8
  49. package/docs/.vitepress/dist/mixins/build-compatibility.html +9 -8
  50. package/docs/.vitepress/dist/mixins/build-scrollbar.html +9 -8
  51. package/docs/.vitepress/dist/mixins/create-colors.html +9 -8
  52. package/docs/.vitepress/dist/mixins/create-helper-margin.html +9 -8
  53. package/docs/.vitepress/dist/mixins/create-helper-padding.html +9 -8
  54. package/docs/.vitepress/dist/mixins/create-instruction.html +9 -8
  55. package/docs/.vitepress/dist/vp-icons.css +2 -0
  56. package/docs/.vitepress/theme/index.js +11 -11
  57. package/docs/functions/colors.md +65 -65
  58. package/docs/logo.svg +55 -55
  59. package/docs/logotype.svg +149 -149
  60. package/docs/mixins/build-compatibility.md +22 -22
  61. package/docs/mixins/build-scrollbar.md +18 -18
  62. package/docs/mixins/create-helper-margin.md +25 -25
  63. package/docs/mixins/create-helper-padding.md +24 -24
  64. package/docs/mixins/create-instruction.md +32 -32
  65. package/package.json +61 -61
  66. package/src/colors/_bootstrap.scss +179 -179
  67. package/src/colors/_brands.scss +19 -19
  68. package/src/colors/_customs.scss +52 -52
  69. package/src/colors/_index.scss +199 -199
  70. package/src/functions/_colors.scss +121 -117
  71. package/src/functions/_helpers.scss +42 -42
  72. package/src/functions/_strings.scss +30 -30
  73. package/src/index.scss +12 -12
  74. package/src/mixins/_build-aspect-ratio.scss +36 -36
  75. package/src/mixins/_build-compatibility.scss +27 -27
  76. package/src/mixins/_build-scrollbar.scss +31 -31
  77. package/src/mixins/_create-colors.scss +118 -118
  78. package/src/mixins/_create-helper-margin.scss +38 -38
  79. package/src/mixins/_create-helper-padding.scss +40 -40
  80. package/src/mixins/_create-instructions.scss +11 -11
  81. package/test/compile.test.js +105 -102
  82. package/test/lint.test.js +48 -50
  83. package/test/test.css +5819 -5816
  84. package/test/test.scss +158 -153
  85. package/vite.config.ts +25 -25
  86. package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.CYE7S9pS.js +0 -1
  87. package/docs/.vitepress/dist/assets/chunks/VPLocalSearchBox.DrgBd5f4.js +0 -7
  88. package/docs/.vitepress/dist/assets/chunks/framework.DJJi9g99.js +0 -17
  89. package/docs/.vitepress/dist/assets/chunks/theme.CviQ0biq.js +0 -2
  90. package/docs/.vitepress/dist/assets/style.DDLX1Ber.css +0 -1
@@ -1,200 +1,200 @@
1
- @forward "brands";
2
- @forward "customs";
3
- @forward "bootstrap";
4
-
5
- @use "bootstrap" as bootstrap;
6
- @use "customs" as customs;
7
- @use "brands" as brands;
8
-
9
- $colors-collection: (
10
- // BOOTSTRAP
11
- "grey": (
12
- "100": bootstrap.$gray-100,
13
- "200": bootstrap.$gray-200,
14
- "300": bootstrap.$gray-300,
15
- "400": bootstrap.$gray-400,
16
- "500": bootstrap.$gray-500,
17
- "600": bootstrap.$gray-600,
18
- "700": bootstrap.$gray-700,
19
- "800": bootstrap.$gray-800,
20
- "900": bootstrap.$gray-900,
21
- ),
22
- "blue": (
23
- "100": bootstrap.$blue-100,
24
- "200": bootstrap.$blue-200,
25
- "300": bootstrap.$blue-300,
26
- "400": bootstrap.$blue-400,
27
- "500": bootstrap.$blue-500,
28
- "600": bootstrap.$blue-600,
29
- "700": bootstrap.$blue-700,
30
- "800": bootstrap.$blue-800,
31
- "900": bootstrap.$blue-900,
32
- ),
33
- "indigo": (
34
- "100": bootstrap.$indigo-100,
35
- "200": bootstrap.$indigo-200,
36
- "300": bootstrap.$indigo-300,
37
- "400": bootstrap.$indigo-400,
38
- "500": bootstrap.$indigo-500,
39
- "600": bootstrap.$indigo-600,
40
- "700": bootstrap.$indigo-700,
41
- "800": bootstrap.$indigo-800,
42
- "900": bootstrap.$indigo-900,
43
- ),
44
- "purple": (
45
- "100": bootstrap.$purple-100,
46
- "200": bootstrap.$purple-200,
47
- "300": bootstrap.$purple-300,
48
- "400": bootstrap.$purple-400,
49
- "500": bootstrap.$purple-500,
50
- "600": bootstrap.$purple-600,
51
- "700": bootstrap.$purple-700,
52
- "800": bootstrap.$purple-800,
53
- "900": bootstrap.$purple-900,
54
- ),
55
- "pink": (
56
- "100": bootstrap.$pink-100,
57
- "200": bootstrap.$pink-200,
58
- "300": bootstrap.$pink-300,
59
- "400": bootstrap.$pink-400,
60
- "500": bootstrap.$pink-500,
61
- "600": bootstrap.$pink-600,
62
- "700": bootstrap.$pink-700,
63
- "800": bootstrap.$pink-800,
64
- "900": bootstrap.$pink-900,
65
- ),
66
- "red": (
67
- "100": bootstrap.$red-100,
68
- "200": bootstrap.$red-200,
69
- "300": bootstrap.$red-300,
70
- "400": bootstrap.$red-400,
71
- "500": bootstrap.$red-500,
72
- "600": bootstrap.$red-600,
73
- "700": bootstrap.$red-700,
74
- "800": bootstrap.$red-800,
75
- "900": bootstrap.$red-900,
76
- ),
77
- "orange": (
78
- "100": bootstrap.$orange-100,
79
- "200": bootstrap.$orange-200,
80
- "300": bootstrap.$orange-300,
81
- "400": bootstrap.$orange-400,
82
- "500": bootstrap.$orange-500,
83
- "600": bootstrap.$orange-600,
84
- "700": bootstrap.$orange-700,
85
- "800": bootstrap.$orange-800,
86
- "900": bootstrap.$orange-900,
87
- ),
88
- "yellow": (
89
- "100": bootstrap.$yellow-100,
90
- "200": bootstrap.$yellow-200,
91
- "300": bootstrap.$yellow-300,
92
- "400": bootstrap.$yellow-400,
93
- "500": bootstrap.$yellow-500,
94
- "600": bootstrap.$yellow-600,
95
- "700": bootstrap.$yellow-700,
96
- "800": bootstrap.$yellow-800,
97
- "900": bootstrap.$yellow-900,
98
- ),
99
- "green": (
100
- "100": bootstrap.$green-100,
101
- "200": bootstrap.$green-200,
102
- "300": bootstrap.$green-300,
103
- "400": bootstrap.$green-400,
104
- "500": bootstrap.$green,
105
- "600": bootstrap.$green-500,
106
- "700": bootstrap.$green-600,
107
- "800": bootstrap.$green-700,
108
- "900": bootstrap.$green-800,
109
- ),
110
- "teal": (
111
- "100": bootstrap.$teal-100,
112
- "200": bootstrap.$teal-200,
113
- "300": bootstrap.$teal-300,
114
- "400": bootstrap.$teal-400,
115
- "500": bootstrap.$teal-500,
116
- "600": bootstrap.$teal-600,
117
- "700": bootstrap.$teal-700,
118
- "800": bootstrap.$teal-800,
119
- "900": bootstrap.$teal-900,
120
- ),
121
- "cyan": (
122
- "100": bootstrap.$cyan-100,
123
- "200": bootstrap.$cyan-200,
124
- "300": bootstrap.$cyan-300,
125
- "400": bootstrap.$cyan-400,
126
- "500": bootstrap.$cyan-500,
127
- "600": bootstrap.$cyan-600,
128
- "700": bootstrap.$cyan-700,
129
- "800": bootstrap.$cyan-800,
130
- "900": bootstrap.$cyan-900,
131
- ),
132
- // CUSTOM
133
- "flatrica-green": (
134
- "100": customs.$flatrica-green-100,
135
- "200": customs.$flatrica-green-200,
136
- "300": customs.$flatrica-green-300,
137
- "400": customs.$flatrica-green-400,
138
- "500": customs.$flatrica-green-500,
139
- "600": customs.$flatrica-green-600,
140
- "700": customs.$flatrica-green-700,
141
- "800": customs.$flatrica-green-800,
142
- "900": customs.$flatrica-green-900,
143
- ),
144
- "manga-red": (
145
- "100": customs.$manga-red-100,
146
- "200": customs.$manga-red-200,
147
- "300": customs.$manga-red-300,
148
- "400": customs.$manga-red-400,
149
- "500": customs.$manga-red-500,
150
- "600": customs.$manga-red-600,
151
- "700": customs.$manga-red-700,
152
- "800": customs.$manga-red-800,
153
- "900": customs.$manga-red-900,
154
- ),
155
- // BRANDS
156
- "brand": (
157
- "facebook": brands.$brand-facebook,
158
- "youtube": brands.$brand-youtube,
159
- "twitter": brands.$brand-twitter,
160
- "skype": brands.$brand-skype,
161
- "linkedin": brands.$brand-linkedin,
162
- "whatsapp": brands.$brand-whatsapp,
163
- "telegram": brands.$brand-telegram,
164
- "twitch": brands.$brand-twitch,
165
- "pinterest": brands.$brand-pinterest,
166
- "reddit": brands.$brand-reddit,
167
- "tumblr": brands.$brand-tumblr,
168
- "patreon": brands.$brand-patreon,
169
- "kickstarter":brands.$brand-kickstarter,
170
- "instagram": brands.$brand-instagram,
171
- "tiktok": brands.$brand-tiktok,
172
- "google": brands.$brand-google,
173
- "paypal": brands.$brand-paypal,
174
- "paypal2": brands.$brand-paypal2,
175
- ),
176
- // CORE
177
- "core": (
178
- "blue": bootstrap.$blue,
179
- "indigo": bootstrap.$indigo,
180
- "purple": bootstrap.$purple,
181
- "pink": bootstrap.$pink,
182
- "red": bootstrap.$red,
183
- "orange": bootstrap.$orange,
184
- "yellow": bootstrap.$yellow,
185
- "green": bootstrap.$green,
186
- "teal": bootstrap.$teal,
187
- "cyan": bootstrap.$cyan,
188
- "black": bootstrap.$black,
189
- "white": bootstrap.$white,
190
- "gray": bootstrap.$gray-500,
191
- "gray-dark": bootstrap.$gray-900,
192
- "flatrica-green": customs.$flatrica-green,
193
- "manga-red": customs.$manga-red,
194
- ),
195
- // ADVANCED
196
- "advanced": (
197
- "brand-instagram": brands.$advanced-brand-instagram,
198
- "brand-tiktok": brands.$advanced-brand-tiktok,
199
- ),
1
+ @forward "brands";
2
+ @forward "customs";
3
+ @forward "bootstrap";
4
+
5
+ @use "bootstrap" as bootstrap;
6
+ @use "customs" as customs;
7
+ @use "brands" as brands;
8
+
9
+ $colors-collection: (
10
+ // BOOTSTRAP
11
+ "grey": (
12
+ "100": bootstrap.$gray-100,
13
+ "200": bootstrap.$gray-200,
14
+ "300": bootstrap.$gray-300,
15
+ "400": bootstrap.$gray-400,
16
+ "500": bootstrap.$gray-500,
17
+ "600": bootstrap.$gray-600,
18
+ "700": bootstrap.$gray-700,
19
+ "800": bootstrap.$gray-800,
20
+ "900": bootstrap.$gray-900,
21
+ ),
22
+ "blue": (
23
+ "100": bootstrap.$blue-100,
24
+ "200": bootstrap.$blue-200,
25
+ "300": bootstrap.$blue-300,
26
+ "400": bootstrap.$blue-400,
27
+ "500": bootstrap.$blue-500,
28
+ "600": bootstrap.$blue-600,
29
+ "700": bootstrap.$blue-700,
30
+ "800": bootstrap.$blue-800,
31
+ "900": bootstrap.$blue-900,
32
+ ),
33
+ "indigo": (
34
+ "100": bootstrap.$indigo-100,
35
+ "200": bootstrap.$indigo-200,
36
+ "300": bootstrap.$indigo-300,
37
+ "400": bootstrap.$indigo-400,
38
+ "500": bootstrap.$indigo-500,
39
+ "600": bootstrap.$indigo-600,
40
+ "700": bootstrap.$indigo-700,
41
+ "800": bootstrap.$indigo-800,
42
+ "900": bootstrap.$indigo-900,
43
+ ),
44
+ "purple": (
45
+ "100": bootstrap.$purple-100,
46
+ "200": bootstrap.$purple-200,
47
+ "300": bootstrap.$purple-300,
48
+ "400": bootstrap.$purple-400,
49
+ "500": bootstrap.$purple-500,
50
+ "600": bootstrap.$purple-600,
51
+ "700": bootstrap.$purple-700,
52
+ "800": bootstrap.$purple-800,
53
+ "900": bootstrap.$purple-900,
54
+ ),
55
+ "pink": (
56
+ "100": bootstrap.$pink-100,
57
+ "200": bootstrap.$pink-200,
58
+ "300": bootstrap.$pink-300,
59
+ "400": bootstrap.$pink-400,
60
+ "500": bootstrap.$pink-500,
61
+ "600": bootstrap.$pink-600,
62
+ "700": bootstrap.$pink-700,
63
+ "800": bootstrap.$pink-800,
64
+ "900": bootstrap.$pink-900,
65
+ ),
66
+ "red": (
67
+ "100": bootstrap.$red-100,
68
+ "200": bootstrap.$red-200,
69
+ "300": bootstrap.$red-300,
70
+ "400": bootstrap.$red-400,
71
+ "500": bootstrap.$red-500,
72
+ "600": bootstrap.$red-600,
73
+ "700": bootstrap.$red-700,
74
+ "800": bootstrap.$red-800,
75
+ "900": bootstrap.$red-900,
76
+ ),
77
+ "orange": (
78
+ "100": bootstrap.$orange-100,
79
+ "200": bootstrap.$orange-200,
80
+ "300": bootstrap.$orange-300,
81
+ "400": bootstrap.$orange-400,
82
+ "500": bootstrap.$orange-500,
83
+ "600": bootstrap.$orange-600,
84
+ "700": bootstrap.$orange-700,
85
+ "800": bootstrap.$orange-800,
86
+ "900": bootstrap.$orange-900,
87
+ ),
88
+ "yellow": (
89
+ "100": bootstrap.$yellow-100,
90
+ "200": bootstrap.$yellow-200,
91
+ "300": bootstrap.$yellow-300,
92
+ "400": bootstrap.$yellow-400,
93
+ "500": bootstrap.$yellow-500,
94
+ "600": bootstrap.$yellow-600,
95
+ "700": bootstrap.$yellow-700,
96
+ "800": bootstrap.$yellow-800,
97
+ "900": bootstrap.$yellow-900,
98
+ ),
99
+ "green": (
100
+ "100": bootstrap.$green-100,
101
+ "200": bootstrap.$green-200,
102
+ "300": bootstrap.$green-300,
103
+ "400": bootstrap.$green-400,
104
+ "500": bootstrap.$green,
105
+ "600": bootstrap.$green-500,
106
+ "700": bootstrap.$green-600,
107
+ "800": bootstrap.$green-700,
108
+ "900": bootstrap.$green-800,
109
+ ),
110
+ "teal": (
111
+ "100": bootstrap.$teal-100,
112
+ "200": bootstrap.$teal-200,
113
+ "300": bootstrap.$teal-300,
114
+ "400": bootstrap.$teal-400,
115
+ "500": bootstrap.$teal-500,
116
+ "600": bootstrap.$teal-600,
117
+ "700": bootstrap.$teal-700,
118
+ "800": bootstrap.$teal-800,
119
+ "900": bootstrap.$teal-900,
120
+ ),
121
+ "cyan": (
122
+ "100": bootstrap.$cyan-100,
123
+ "200": bootstrap.$cyan-200,
124
+ "300": bootstrap.$cyan-300,
125
+ "400": bootstrap.$cyan-400,
126
+ "500": bootstrap.$cyan-500,
127
+ "600": bootstrap.$cyan-600,
128
+ "700": bootstrap.$cyan-700,
129
+ "800": bootstrap.$cyan-800,
130
+ "900": bootstrap.$cyan-900,
131
+ ),
132
+ // CUSTOM
133
+ "flatrica-green": (
134
+ "100": customs.$flatrica-green-100,
135
+ "200": customs.$flatrica-green-200,
136
+ "300": customs.$flatrica-green-300,
137
+ "400": customs.$flatrica-green-400,
138
+ "500": customs.$flatrica-green-500,
139
+ "600": customs.$flatrica-green-600,
140
+ "700": customs.$flatrica-green-700,
141
+ "800": customs.$flatrica-green-800,
142
+ "900": customs.$flatrica-green-900,
143
+ ),
144
+ "manga-red": (
145
+ "100": customs.$manga-red-100,
146
+ "200": customs.$manga-red-200,
147
+ "300": customs.$manga-red-300,
148
+ "400": customs.$manga-red-400,
149
+ "500": customs.$manga-red-500,
150
+ "600": customs.$manga-red-600,
151
+ "700": customs.$manga-red-700,
152
+ "800": customs.$manga-red-800,
153
+ "900": customs.$manga-red-900,
154
+ ),
155
+ // BRANDS
156
+ "brand": (
157
+ "facebook": brands.$brand-facebook,
158
+ "youtube": brands.$brand-youtube,
159
+ "twitter": brands.$brand-twitter,
160
+ "skype": brands.$brand-skype,
161
+ "linkedin": brands.$brand-linkedin,
162
+ "whatsapp": brands.$brand-whatsapp,
163
+ "telegram": brands.$brand-telegram,
164
+ "twitch": brands.$brand-twitch,
165
+ "pinterest": brands.$brand-pinterest,
166
+ "reddit": brands.$brand-reddit,
167
+ "tumblr": brands.$brand-tumblr,
168
+ "patreon": brands.$brand-patreon,
169
+ "kickstarter":brands.$brand-kickstarter,
170
+ "instagram": brands.$brand-instagram,
171
+ "tiktok": brands.$brand-tiktok,
172
+ "google": brands.$brand-google,
173
+ "paypal": brands.$brand-paypal,
174
+ "paypal2": brands.$brand-paypal2,
175
+ ),
176
+ // CORE
177
+ "core": (
178
+ "blue": bootstrap.$blue,
179
+ "indigo": bootstrap.$indigo,
180
+ "purple": bootstrap.$purple,
181
+ "pink": bootstrap.$pink,
182
+ "red": bootstrap.$red,
183
+ "orange": bootstrap.$orange,
184
+ "yellow": bootstrap.$yellow,
185
+ "green": bootstrap.$green,
186
+ "teal": bootstrap.$teal,
187
+ "cyan": bootstrap.$cyan,
188
+ "black": bootstrap.$black,
189
+ "white": bootstrap.$white,
190
+ "gray": bootstrap.$gray-500,
191
+ "gray-dark": bootstrap.$gray-900,
192
+ "flatrica-green": customs.$flatrica-green,
193
+ "manga-red": customs.$manga-red,
194
+ ),
195
+ // ADVANCED
196
+ "advanced": (
197
+ "brand-instagram": brands.$advanced-brand-instagram,
198
+ "brand-tiktok": brands.$advanced-brand-tiktok,
199
+ ),
200
200
  );
@@ -1,118 +1,122 @@
1
- @use "sass:color";
2
- @use "sass:math";
3
- @use "sass:string";
4
-
5
- /**
6
- * Return opaque color
7
- * color-opaque(#fff, rgba(0, 0, 0, .5)) => #808080
8
- * function credited to https://getbootstrap.com/
9
- */
10
- @function color-opaque($background, $foreground) {
11
- @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
12
- }
13
-
14
-
15
- /**
16
- * Tint a color: mix a color with white
17
- * function credited to https://getbootstrap.com/
18
- */
19
- @function color-tint($color, $weight) {
20
- @return mix(white, $color, $weight);
21
- }
22
-
23
-
24
- /**
25
- * Shade a color: mix a color with black
26
- * function credited to https://getbootstrap.com/
27
- */
28
- @function color-shade($color, $weight) {
29
- @return mix(black, $color, $weight);
30
- }
31
-
32
-
33
- /**
34
- * Shade the color if the weight is positive, else tint it
35
- * function credited to https://getbootstrap.com/
36
- */
37
- @function color-shift($color, $weight) {
38
- @return if($weight > 0, color-shade($color, $weight), color-tint($color, -$weight));
39
- }
40
-
41
-
42
- /**
43
- * Compares contrast of a given color to the light/dark arguments and returns whichever is most "contrasty"
44
- */
45
- @function color-contrast($color: #fff, $dark: #000, $light: #fff) {
46
- @if type-of($color) != color or $color == transparent {
47
- @return inherit;
48
- }
49
- $color-brightness: color-brightness($color);
50
- $light-text-brightness: color-brightness($light);
51
- $dark-text-brightness: color-brightness($dark);
52
-
53
- @return if(abs($color-brightness - $light-text-brightness) > abs($color-brightness - $dark-text-brightness), $light, $dark);
54
- }
55
-
56
-
57
-
58
- // Return WCAG2.1 relative luminance
59
- // See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
60
- // See https://en.wikipedia.org/wiki/Relative_luminance
61
- // Gives %, less than 50 darker is better, less than 50, lighter.
62
- @function color-brightness($color) {
63
- // fallback
64
- @if $color == transparent or type-of($color) != color {
65
- @return 100;
66
- }
67
- @return math.div(((red($color) * .299) + (green($color) * .587) + (blue($color) * .114)), 255 * 100%);
68
- }
69
-
70
- /**
71
- * NEW numeric annotation
72
- * Hex to RGB (only numbers, transparentize would add rgba(*))
73
- * $color
74
- * $alpha:
75
- * - 0: never 4° digit
76
- * - 1: always digit
77
- * - 2: 4° digit only when needed
78
- * $classic: false = new number annotation
79
- */
80
- @function extract-colors($color: #fff, $mode: 2, $classic: false){
81
- // colors only
82
- @if $color == transparent or type-of($color) != color {
83
- @return $color;
84
- }
85
- // new annotation
86
- $delimiter: " ";
87
- $delimiter-alpha: " / ";
88
- // old annotation
89
- @if $classic{
90
- $delimiter: ", ";
91
- $delimiter-alpha: ", ";
92
- }
93
- $alpha: alpha($color);
94
- @if $mode == 1 or ($mode == 2 and $alpha == 1) {
95
- @return red($color) + $delimiter + green($color) + $delimiter + blue($color);
96
- }
97
- // Regular RGBA compliant result ("number" notation)
98
- @return red($color) + $delimiter + green($color) + $delimiter + blue($color) + $delimiter-alpha + alpha($color); // * 100%
99
- }
100
-
101
- /**
102
- * Create default collection
103
- */
104
- @function create-collection($color){
105
- $list: (
106
- "100": color-tint($color, 80%),
107
- "200": color-tint($color, 60%),
108
- "300": color-tint($color, 40%),
109
- "400": color-tint($color, 20%),
110
- "500": $color,
111
- "600": color-shade($color, 20%),
112
- "700": color-shade($color, 40%),
113
- "800": color-shade($color, 60%),
114
- "900": color-shade($color, 80%)
115
- );
116
-
117
- @return $list
1
+ @use "sass:color";
2
+ @use "sass:math";
3
+ @use "sass:string";
4
+ @use "sass:meta";
5
+
6
+ /**
7
+ * Return opaque color
8
+ * color-opaque(#fff, rgba(0, 0, 0, .5)) => #808080
9
+ * function credited to https://getbootstrap.com/
10
+ */
11
+ @function color-opaque($background, $foreground) {
12
+ @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
13
+ }
14
+
15
+
16
+ /**
17
+ * Tint a color: mix a color with white
18
+ * function credited to https://getbootstrap.com/
19
+ */
20
+ @function color-tint($color, $weight) {
21
+ @return mix(#fff, $color, $weight);
22
+ }
23
+
24
+
25
+ /**
26
+ * Shade a color: mix a color with black
27
+ * function credited to https://getbootstrap.com/
28
+ */
29
+ @function color-shade($color, $weight) {
30
+ @return mix(#000, $color, $weight);
31
+ }
32
+
33
+
34
+ /**
35
+ * Shade the color if the weight is positive, else tint it
36
+ * function credited to https://getbootstrap.com/
37
+ */
38
+ @function color-shift($color, $weight) {
39
+ @return if($weight > 0,
40
+ color-shade($color, $weight),
41
+ color-tint($color, -$weight)
42
+ );
43
+ }
44
+
45
+
46
+ /**
47
+ * Compares contrast of a given color to the light/dark arguments and returns whichever is most "contrasty"
48
+ */
49
+ @function color-contrast($color: #fff, $dark: #000, $light: #fff) {
50
+ @if meta.type-of($color) != color or $color == transparent {
51
+ @return inherit;
52
+ }
53
+ $color-brightness: color-brightness($color);
54
+ $light-text-brightness: color-brightness($light);
55
+ $dark-text-brightness: color-brightness($dark);
56
+
57
+ @return if(abs($color-brightness - $light-text-brightness) > abs($color-brightness - $dark-text-brightness), $light, $dark);
58
+ }
59
+
60
+
61
+
62
+ // Return WCAG2.1 relative luminance
63
+ // See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
64
+ // See https://en.wikipedia.org/wiki/Relative_luminance
65
+ // Gives %, less than 50 darker is better, less than 50, lighter.
66
+ @function color-brightness($color) {
67
+ // fallback
68
+ @if $color == transparent or meta.type-of($color) != color {
69
+ @return 100;
70
+ }
71
+ @return math.div(((red($color) * .299) + (green($color) * .587) + (blue($color) * .114)), 255 * 100%);
72
+ }
73
+
74
+ /**
75
+ * NEW numeric annotation
76
+ * Hex to RGB (only numbers, transparentize would add rgba(*))
77
+ * $color
78
+ * $alpha:
79
+ * - 0: never 4° digit
80
+ * - 1: always digit
81
+ * - 2: 4° digit only when needed
82
+ * $classic: false = new number annotation
83
+ */
84
+ @function extract-colors($color: #fff, $mode: 2, $classic: false){
85
+ // colors only
86
+ @if $color == transparent or meta.type-of($color) != color {
87
+ @return $color;
88
+ }
89
+ // new annotation
90
+ $delimiter: " ";
91
+ $delimiter-alpha: " / ";
92
+ // old annotation
93
+ @if $classic{
94
+ $delimiter: ", ";
95
+ $delimiter-alpha: ", ";
96
+ }
97
+ $alpha: alpha($color);
98
+ @if $mode == 1 or ($mode == 2 and $alpha == 1) {
99
+ @return red($color) + $delimiter + green($color) + $delimiter + blue($color);
100
+ }
101
+ // Regular RGBA compliant result ("number" notation)
102
+ @return red($color) + $delimiter + green($color) + $delimiter + blue($color) + $delimiter-alpha + alpha($color); // * 100%
103
+ }
104
+
105
+ /**
106
+ * Create default collection
107
+ */
108
+ @function create-collection($color){
109
+ $list: (
110
+ "100": color-tint($color, 80%),
111
+ "200": color-tint($color, 60%),
112
+ "300": color-tint($color, 40%),
113
+ "400": color-tint($color, 20%),
114
+ "500": $color,
115
+ "600": color-shade($color, 20%),
116
+ "700": color-shade($color, 40%),
117
+ "800": color-shade($color, 60%),
118
+ "900": color-shade($color, 80%)
119
+ );
120
+
121
+ @return $list
118
122
  }