Skeleton version migration

This commit is contained in:
Luke Hagar
2023-10-15 15:07:43 -05:00
parent 6d426e3930
commit 2eea1fb9d1
6 changed files with 502 additions and 462 deletions

24
tailwind.config.ts Normal file
View File

@@ -0,0 +1,24 @@
import { join } from 'path';
import type { Config } from 'tailwindcss';
// 1. Import the Skeleton plugin
import { skeleton } from '@skeletonlabs/tw-plugin';
const config = {
// 2. Opt for dark mode to be handled via the class method
darkMode: 'class',
content: [
'./src/**/*.{html,js,svelte,ts}',
// 3. Append the path to the Skeleton package
join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')
],
theme: {
extend: {}
},
plugins: [
// 4. Append the Skeleton plugin (after other plugins)
skeleton({ themes: { preset: [{ name: 'skeleton', enhancements: true }] } })
]
} satisfies Config;
export default config;