@salla.sa/twilight-tailwind-theme 3.0.0-alpha.0 → 3.0.0-beta.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.
- package/index.js +122 -2
- package/package.json +8 -8
- package/safe-list-css.txt +1294 -14
- package/utilities.json +1 -1
package/index.js
CHANGED
|
@@ -128,7 +128,51 @@ module.exports = plugin(function ({ addUtilities, addVariant, matchUtilities, th
|
|
|
128
128
|
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
addUtilities(require('./utilities.json'))
|
|
131
|
+
addUtilities(require('./utilities.json'))
|
|
132
|
+
|
|
133
|
+
addUtilities({
|
|
134
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
135
|
+
'.animate-fade-in-up, .animate-fade-in, .animate-fade-out': {
|
|
136
|
+
'animation': 'none !important',
|
|
137
|
+
'opacity': '1 !important',
|
|
138
|
+
'transform': 'none !important',
|
|
139
|
+
},
|
|
140
|
+
'.animate-translate-left, .animate-translate-right, .animate-translate-left-out, .animate-translate-right-out': {
|
|
141
|
+
'animation': 'none !important',
|
|
142
|
+
'opacity': '1 !important',
|
|
143
|
+
'transform': 'none !important',
|
|
144
|
+
},
|
|
145
|
+
'.animate-shrink-fly': {
|
|
146
|
+
'animation': 'none !important',
|
|
147
|
+
'opacity': '1 !important',
|
|
148
|
+
'transform': 'none !important',
|
|
149
|
+
},
|
|
150
|
+
'.animate-expand-height, .animate-collapse-height': {
|
|
151
|
+
'animation': 'none !important',
|
|
152
|
+
'opacity': '1 !important',
|
|
153
|
+
'height': 'auto !important',
|
|
154
|
+
},
|
|
155
|
+
'.animate-slide-down-share': {
|
|
156
|
+
'animation': 'none !important',
|
|
157
|
+
'opacity': '1 !important',
|
|
158
|
+
'transform': 'none !important',
|
|
159
|
+
},
|
|
160
|
+
'.animate-stagger-0, .animate-stagger-100, .animate-stagger-200, .animate-stagger-300, .animate-stagger-400, .animate-stagger-500': {
|
|
161
|
+
'animation': 'none !important',
|
|
162
|
+
'opacity': '1 !important',
|
|
163
|
+
'transform': 'none !important',
|
|
164
|
+
},
|
|
165
|
+
'.animate-stagger-70, .animate-stagger-140, .animate-stagger-210': {
|
|
166
|
+
'animation': 'none !important',
|
|
167
|
+
'opacity': '1 !important',
|
|
168
|
+
'transform': 'none !important',
|
|
169
|
+
},
|
|
170
|
+
'.animate-rubber-band': {
|
|
171
|
+
'animation': 'none !important',
|
|
172
|
+
'transform': 'none !important',
|
|
173
|
+
},
|
|
174
|
+
}
|
|
175
|
+
})
|
|
132
176
|
}, {
|
|
133
177
|
important: true,
|
|
134
178
|
darkMode: 'class', // or 'media' or 'class',
|
|
@@ -148,7 +192,8 @@ module.exports = plugin(function ({ addUtilities, addVariant, matchUtilities, th
|
|
|
148
192
|
'primary': 'var(--color-primary)',
|
|
149
193
|
'primary-d': 'var(--color-primary-dark)',
|
|
150
194
|
'primary-l': 'var(--color-primary-light)',
|
|
151
|
-
'primary-reverse': 'var(--color-primary-reverse)'
|
|
195
|
+
'primary-reverse': 'var(--color-primary-reverse)',
|
|
196
|
+
'dark': 'var(--color-dark)'
|
|
152
197
|
},
|
|
153
198
|
zIndex: {
|
|
154
199
|
'1': '1',
|
|
@@ -183,12 +228,87 @@ module.exports = plugin(function ({ addUtilities, addVariant, matchUtilities, th
|
|
|
183
228
|
'0%': { transform: 'translateY(-100%)', opacity: '0' },
|
|
184
229
|
'100%': { transform: 'translateY(-0%)', opacity: '1' }
|
|
185
230
|
},
|
|
231
|
+
fadeInUp: {
|
|
232
|
+
'0%': { transform: 'translateY(20px)', opacity: '0' },
|
|
233
|
+
'100%': { transform: 'translateY(0)', opacity: '1' },
|
|
234
|
+
},
|
|
235
|
+
fadeIn: {
|
|
236
|
+
'0%': { opacity: '0' },
|
|
237
|
+
'100%': { opacity: '1' },
|
|
238
|
+
},
|
|
239
|
+
fadeOut: {
|
|
240
|
+
'0%': { opacity: '1' },
|
|
241
|
+
'100%': { opacity: '0' },
|
|
242
|
+
},
|
|
243
|
+
translateLeft: {
|
|
244
|
+
'0%': { transform: 'translateX(110%)', opacity: '0' },
|
|
245
|
+
'100%': { transform: 'translateX(0)', opacity: '1' },
|
|
246
|
+
},
|
|
247
|
+
translateRight: {
|
|
248
|
+
'0%': { transform: 'translateX(-110%)', opacity: '0' },
|
|
249
|
+
'100%': { transform: 'translateX(0)', opacity: '1' },
|
|
250
|
+
},
|
|
251
|
+
translateLeftOut: {
|
|
252
|
+
'0%': { transform: 'translateX(0)', opacity: '1' },
|
|
253
|
+
'100%': { transform: 'translateX(110%)', opacity: '0' },
|
|
254
|
+
},
|
|
255
|
+
translateRightOut: {
|
|
256
|
+
'0%': { transform: 'translateX(0)', opacity: '1' },
|
|
257
|
+
'100%': { transform: 'translateX(-110%)', opacity: '0' },
|
|
258
|
+
},
|
|
259
|
+
shrinkFly: {
|
|
260
|
+
'0%': { transform: 'scale(1)', opacity: '1' },
|
|
261
|
+
'50%': { transform: 'scale(0.2)', opacity: '1' },
|
|
262
|
+
'100%': { transform: 'scale(0)', opacity: '0' },
|
|
263
|
+
},
|
|
264
|
+
expandHeight: {
|
|
265
|
+
'0%': { height: '0', opacity: '0' },
|
|
266
|
+
'100%': { opacity: '1' },
|
|
267
|
+
},
|
|
268
|
+
collapseHeight: {
|
|
269
|
+
'0%': { opacity: '1' },
|
|
270
|
+
'100%': { height: '0', opacity: '0' },
|
|
271
|
+
},
|
|
272
|
+
slideDownShare: {
|
|
273
|
+
'0%': { transform: 'translateY(-30px) scaleY(0)', opacity: '0' },
|
|
274
|
+
'100%': { transform: 'translateY(0) scaleY(1)', opacity: '1' },
|
|
275
|
+
},
|
|
276
|
+
rubberBand: {
|
|
277
|
+
'0%': { transform: 'scale(1)' },
|
|
278
|
+
'30%': { transform: 'scale(1.25, 0.75)' },
|
|
279
|
+
'40%': { transform: 'scale(0.75, 1.25)' },
|
|
280
|
+
'50%': { transform: 'scale(1.15, 0.85)' },
|
|
281
|
+
'65%': { transform: 'scale(0.95, 1.05)' },
|
|
282
|
+
'75%': { transform: 'scale(1.05, 0.95)' },
|
|
283
|
+
'100%': { transform: 'scale(1)' },
|
|
284
|
+
},
|
|
186
285
|
},
|
|
187
286
|
animation: {
|
|
188
287
|
slideUpFromBottom: 'slideUpFromBottom .6s linear',
|
|
189
288
|
slideDownFromBottom: 'slideDownFromBottom .6s linear',
|
|
190
289
|
slideDownFromTop: 'slideDownFromTop .6s linear',
|
|
191
290
|
slideUPFromTop: 'slideUPFromTop .6s linear',
|
|
291
|
+
'fade-in-up': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
292
|
+
'fade-in': 'fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
293
|
+
'fade-out': 'fadeOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
294
|
+
'translate-left': 'translateLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
295
|
+
'translate-right': 'translateRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
296
|
+
'translate-left-out': 'translateLeftOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
297
|
+
'translate-right-out': 'translateRightOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
298
|
+
'shrink-fly': 'shrinkFly 1.7s ease-out forwards',
|
|
299
|
+
'expand-height': 'expandHeight 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards',
|
|
300
|
+
'collapse-height': 'collapseHeight 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards',
|
|
301
|
+
'slide-down-share': 'slideDownShare 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards',
|
|
302
|
+
'rubber-band': 'rubberBand 0.8s ease-out',
|
|
303
|
+
'stagger-0': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards',
|
|
304
|
+
'stagger-100': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards',
|
|
305
|
+
'stagger-200': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards',
|
|
306
|
+
'stagger-300': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards',
|
|
307
|
+
'stagger-400': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards',
|
|
308
|
+
'stagger-500': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards',
|
|
309
|
+
'stagger-70': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.07s forwards',
|
|
310
|
+
'stagger-140': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.14s forwards',
|
|
311
|
+
'stagger-210': 'fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.21s forwards',
|
|
192
312
|
},
|
|
193
313
|
}
|
|
194
314
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-tailwind-theme",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twilight",
|
|
@@ -12,11 +12,6 @@
|
|
|
12
12
|
],
|
|
13
13
|
"description": "Tailwind theme for twilight (Salla Themes)",
|
|
14
14
|
"homepage": "https://salla.dev",
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "node generator.js",
|
|
17
|
-
"watch": "run-when-changed --watch './../twilight-components/src/components/**/utilities.json' --exec 'npm run build' --verbose",
|
|
18
|
-
"push": "npm version patch && npm run build && npm publish --access private"
|
|
19
|
-
},
|
|
20
15
|
"files": [
|
|
21
16
|
"index.js",
|
|
22
17
|
"package.json",
|
|
@@ -28,5 +23,10 @@
|
|
|
28
23
|
"run-when-changed": "^2.1.0",
|
|
29
24
|
"tailwindcss": "^3.1.8"
|
|
30
25
|
},
|
|
31
|
-
"gitHead": "
|
|
32
|
-
|
|
26
|
+
"gitHead": "e43ccbe0086ed916ecad8ac8cf952ece4e035e2e",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "node generator.js",
|
|
29
|
+
"watch": "run-when-changed --watch './../twilight-components/src/components/**/utilities.json' --exec 'npm run build' --verbose",
|
|
30
|
+
"push": "npm version patch && npm run build && npm publish --access private"
|
|
31
|
+
}
|
|
32
|
+
}
|