Fix tailwind config

This commit is contained in:
Mike Conrad
2025-05-08 21:00:30 -04:00
parent 8e5fc7d111
commit 70f17365a7
10 changed files with 306 additions and 16 deletions

15
plugins/cls.ts Normal file
View File

@ -0,0 +1,15 @@
/**
* A custom Nuxt plugin to merge all arguments into a single classname string.
*/
export default defineNuxtPlugin(() => {
return {
provide: {
/**
* Merge all arguments into a single classname string.
*/
cls: (...args: any[]) => {
return args.filter((x) => x).join(' ')
}
}
}
})

11
plugins/parallax/index.ts Normal file
View File

@ -0,0 +1,11 @@
import Rellax from "rellax";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.directive("parallax", {
mounted(el, binding, vnode, prevVnode) {
Rellax(el, {
round: true,
});
},
});
});