Skip to content

Commit

Permalink
feat: ✨ add unocss presetIcons
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangshu233 committed Mar 1, 2024
1 parent 581f72b commit dc0c979
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 77 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@types/node": "^20.10.5",
"@types/qs": "^6.9.11",
"@unocss/eslint-plugin": "^0.58.4",
"@unocss/preset-icons": "^0.58.5",
"@unocss/preset-rem-to-px": "^0.58.5",
"@unocss/transformer-directives": "^0.58.4",
"@unocss/transformer-variant-group": "^0.58.4",
Expand Down
78 changes: 3 additions & 75 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
presetWebFonts,
} from 'unocss'
import presetIcons from '@unocss/preset-icons'
import presetRemToPx from '@unocss/preset-rem-to-px'
import transformerVariantGroup from '@unocss/transformer-variant-group'
import transformerDirectives from '@unocss/transformer-directives'
Expand All @@ -26,10 +26,10 @@ export default defineConfig({

// 图标预设: https://unocss.dev/presets/icons
presetIcons({
cdn: 'https://esm.sh/',
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
// ...
},
}),

Expand Down

0 comments on commit dc0c979

Please sign in to comment.