Add TailwindCSS (#1252)

* Setup TailwindCSS

* Fully setup configuration

* Refactor some tailwind variables
This commit is contained in:
Evan Song
2024-07-06 20:57:32 -07:00
committed by GitHub
parent 0f2ddb452c
commit abec2e48d4
176 changed files with 7905 additions and 7433 deletions

View File

@@ -1,7 +1,8 @@
/* eslint-disable no-undef */
export default defineNuxtPlugin(() => {
const nuxtApp = useNuxtApp()
const nuxtApp = useNuxtApp();
nuxtApp.hooks.hook('page:transition:finish', () => {
document.querySelector('[data-scroll]')?.scrollTo({ top: 0 })
})
})
nuxtApp.hooks.hook("page:transition:finish", () => {
document.querySelector("[data-scroll]")?.scrollTo({ top: 0 });
});
});