Skip to content

Commit

Permalink
feat(unocss): add justify-safe-center rule and update flex-center sho…
Browse files Browse the repository at this point in the history
…rtcut
  • Loading branch information
sunshj committed Nov 5, 2024
1 parent 487eab4 commit 33e17ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { defineConfig, presetUno } from 'unocss'

export default defineConfig({
presets: [presetUno({ important: '#__nuxt' })],
rules: [['justify-safe-center', { 'justify-content': 'safe center' }]],
shortcuts: {
'flex-center': 'flex justify-center items-center'
'flex-center': 'flex justify-safe-center items-center'
}
})

0 comments on commit 33e17ae

Please sign in to comment.