v0.56.0
🚨 Breaking Changes
- Move common utils to the new
@unocss/rule-utils
package - by @Dunqing and @antfu in #3134 (454e1) - rule-utils: Move more utils - by @antfu (52a6e)
🚀 Features
- attributify-jsx: Allow pass component as prop - by @zhiyuanzmj in #3116 (c4263)
- core: Support factory with
definePreset
- by @chizukicn and @antfu in #3098 (25fdc) - svelte-scoped: Add config hmr - by @jacob-8 in #3111 (4e3cd)
- transformer-directives:
theme()
support color transparency - by @Dunqing in #3131 (cbfc2)
🐞 Bug Fixes
- astro: HMR not work in windows - by @Dunqing in #3100 (332d6)
- core: Uniq resolved presets - by @zyyv in #3078 (6bff2)
- eslint: Support attributify for
@unocss/blocklist
- by @antfu (6d760) - extractor-arbitrary-variants: Remove sourcemap before matching attributes - by @Dunqing in #3123 (58e90)
- preset-mini: Remove
font-smoothing
from antialiased rules - by @Nirlah and @zyyv in #3072 (e0982) - preset-typography: Move
font-family
css ofcode
in default preflights - by @zyyv and chris in #3114 (62abf) - vscode: RemToPx support important - by @chizukicn and Chris in #3083 (57436)
🏎 Performance
- attributify-jsx: Improve regular performance - by @zhiyuanzmj in #3088 (aef69)