vite-plugin-anyframe
v0.2.1
Published
AnyFrame integration vite.
Maintainers
Readme
vite-plugin-anyframe
TenoxUI and AnyFrame integration on vitejs.
Installation
npm i vite-plugin-anyframe @anyframe/core -DUsage
In your vite.config.js file :
import ViteAnyFrame from 'vite-plugin-anyframe'
export default {
plugins: [ViteAnyFrame()]
}Defining config inside anyframe.config.js file :
export default {
// see: https://github.com/anyframe-org/core?tab=readme-ov-file#configuration-options
property: {
bg: 'background'
},
apply: {
body: 'bg-red'
}
// ... other configuration here
}And finally, inside your main.js file :
import 'virtual:anyframe.css'And done! You can start writing your TenoxUI classes. For example :
<div class="bg-red [width,height]-200px"></div>Output :
.bg-red { background: red }
.\[width\,height\]-200px { width: 200px; height: 200px }That's all you need!
