import { defineConfig, type Preset } from "unocss"; import { presetWind4 } from "@unocss/preset-wind4"; import presetAnimations from "unocss-preset-animations"; import { presetShadcn } from "unocss-preset-shadcn"; export default defineConfig({ presets: [ presetWind4(), // These community presets are typed against a slightly different UnoCSS // Theme generic than preset-wind4; cast to the shared Preset type so the // presets array type-checks. Runtime behavior is unaffected. presetAnimations() as Preset, presetShadcn({ darkSelector: '[data-kb-theme="dark"]', }) as Preset, ], content: { pipeline: { include: [ /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/, "(src|components)/**/*.{js,ts}", ], }, }, });