Skip to content

Commit

Permalink
fix(playground): enable magic animates
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Mar 12, 2024
1 parent 04dc964 commit ab50a88
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<div class="ma prose">
<div fcc gap-8 un-children="fcc w-30 h-30 rd b b-red b-solid text-white text-xl">
<div fcc gap-8 un-children="fcc w-30 h-30 rd b">
<div hover="animate-puffIn">
puffIn
</div>
<div hover="animate-puffOut">
puffOut
</div>
<div hover="animate-magic">
<div hover-animate-magic>
magic
</div>
</div>
Expand All @@ -20,5 +20,6 @@
padding: 0;
box-sizing: border-box;
background: #222;
color: white;
}
</style>
1 change: 0 additions & 1 deletion playground/uno.config.ts

This file was deleted.

5 changes: 4 additions & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import UnoCSS from 'unocss/vite'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), UnoCSS()],
plugins: [
vue(),
UnoCSS('../uno.config.ts'),
],
})
1 change: 1 addition & 0 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
presets: [
presetUseful({
typography: true,
enableMagicAnimations: true,
}),
],
})

0 comments on commit ab50a88

Please sign in to comment.