unpreset / unocss-preset-theme

The dynamic theme presets for UnoCSS.
https://unocss-preset-theme.todev.cc
131 stars 11 forks source link

Support unocss@0.52 #33

Closed ModyQyW closed 1 year ago

ModyQyW commented 1 year ago

Hi. Thanks for your great work!

I am developing unocss-preset-element-plus and unocss-preset-antd based on this preset. After I update to unocss 0.52, some type issues come out. Similar to https://github.com/Dunqing/unocss-preset-theme/issues/7.

image

Some ideas: How about update package.json?

https://github.com/Dunqing/unocss-preset-theme/blob/82135e1031553ba6139576c79c3c615bb22d2cac/package.json#L47-L53

To

{
    "peerDependencies": {
      "@unocss/core": ">=0.51"
    },
    "dependencies": {
      "@unocss/core": ">=0.51",
      "@unocss/preset-mini": ">=0.51"
    }
}
Dunqing commented 1 year ago

Now, The unocss-preset-theme@0.7.0 have supported unocss@0.52

I have updated peerDependencies to use >=, but the dependencies I think it's good now. Thank you for your advice!

ModyQyW commented 1 year ago

Thanks a lot!