figma-kit 1.0.0-beta.12 → 1.0.0-beta.13
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/dist/tailwind.preset.js +20 -1
- package/package.json +1 -1
package/dist/tailwind.preset.js
CHANGED
|
@@ -242,7 +242,7 @@ export default {
|
|
|
242
242
|
large: 'var(--line-height-5)',
|
|
243
243
|
},
|
|
244
244
|
borderRadius: {
|
|
245
|
-
none:
|
|
245
|
+
none: 0,
|
|
246
246
|
'extra-small': 'var(--radius-extra-small)',
|
|
247
247
|
small: 'var(--radius-small)',
|
|
248
248
|
medium: 'var(--radius-medium)',
|
|
@@ -284,4 +284,23 @@ export default {
|
|
|
284
284
|
};
|
|
285
285
|
},
|
|
286
286
|
},
|
|
287
|
+
plugins: [
|
|
288
|
+
function ({ addUtilities, theme }) {
|
|
289
|
+
const iconColors = {
|
|
290
|
+
current: 'currentColor',
|
|
291
|
+
inherit: 'inherit',
|
|
292
|
+
transparent: 'transparent',
|
|
293
|
+
...theme('colors').icon,
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
const newUtilities = Object.keys(iconColors).reduce((acc, colorName) => {
|
|
297
|
+
acc[`.icon-${colorName}`] = {
|
|
298
|
+
'--color-icon': iconColors[colorName],
|
|
299
|
+
};
|
|
300
|
+
return acc;
|
|
301
|
+
}, {});
|
|
302
|
+
|
|
303
|
+
addUtilities(newUtilities, ['responsive', 'hover']);
|
|
304
|
+
},
|
|
305
|
+
],
|
|
287
306
|
};
|
package/package.json
CHANGED