27 lines
535 B
TypeScript
27 lines
535 B
TypeScript
|
import { join } from 'path';
|
||
|
import type { Config } from 'tailwindcss';
|
||
|
|
||
|
// Import the Skeleton plugin
|
||
|
import { skeleton } from '@skeletonlabs/tw-plugin';
|
||
|
|
||
|
const config = {
|
||
|
// Opt for dark mode to be handled via the class method
|
||
|
darkMode: 'class',
|
||
|
content: [
|
||
|
'./src/**/*.{html,js,svelte,ts}',
|
||
|
join(require.resolve(
|
||
|
'@skeletonlabs/skeleton'),
|
||
|
'../**/*.{html,js,svelte,ts}'
|
||
|
)
|
||
|
],
|
||
|
theme: {
|
||
|
extend: {},
|
||
|
},
|
||
|
plugins: [
|
||
|
skeleton({
|
||
|
themes: { preset: [ "skeleton" ] }
|
||
|
})
|
||
|
]
|
||
|
} satisfies Config;
|
||
|
|
||
|
export default config;
|