25 lines
537 B
JavaScript
25 lines
537 B
JavaScript
const { skeleton } = require('@skeletonlabs/tw-plugin');
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
// 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
|
|
require('path').join(require.resolve(
|
|
'@skeletonlabs/skeleton'),
|
|
'../**/*.{html,js,svelte,ts}'
|
|
)
|
|
],
|
|
theme: {
|
|
extend: {},
|
|
},
|
|
plugins: [
|
|
skeleton({
|
|
themes: { preset: [ "skeleton" ] }
|
|
})
|
|
]
|
|
}
|