Skip to content

Commit

Permalink
feat: using @unocss/rule-utils instead of @unocss/preset-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Sep 21, 2023
1 parent cf5b76b commit 0ab6fdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@unocss/core": "^0.56.0",
"@unocss/preset-mini": "^0.56.0"
"@unocss/rule-utils": "^0.56.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.43.0",
Expand Down
12 changes: 4 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Preset } from '@unocss/core'
import { mergeDeep } from '@unocss/core'
import { parseCssColor } from '@unocss/preset-mini/utils'
import { parseCssColor } from '@unocss/rule-utils'
import { getThemeVal, wrapCSSFunction, wrapVar } from './helpers'

const defaultThemeNames = ['dark', 'light']
Expand Down

0 comments on commit 0ab6fdf

Please sign in to comment.