chore: add @tailwindcss/postcss and PostCSS setup for Tailwind v4

This commit is contained in:
Jennie Robinson Faber 2025-08-09 13:12:54 +01:00
parent 40c249264c
commit 1cee60953e
17 changed files with 263 additions and 7 deletions

View file

@ -0,0 +1,25 @@
import { useCounterStore } from '~/stores/counter'
export type AppSnapshot = {
counter: { count: number }
}
export function useFixtureIO() {
const exportAll = (): AppSnapshot => {
const counter = useCounterStore()
return {
counter: { count: counter.count }
}
}
const importAll = (snapshot: AppSnapshot) => {
const counter = useCounterStore()
if (snapshot?.counter) {
counter.$patch({ count: snapshot.counter.count ?? 0 })
}
}
return { exportAll, importAll }
}