33 lines
670 B
JavaScript
33 lines
670 B
JavaScript
// @ts-check
|
|
import { join } from 'path';
|
|
import forms from '@tailwindcss/forms';
|
|
import { skeleton } from '@skeletonlabs/tw-plugin';
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
// 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: [
|
|
forms,
|
|
skeleton({
|
|
themes: {
|
|
// Register each theme within this array:
|
|
preset: [
|
|
{ name: "skeleton", enhancements: true }
|
|
]
|
|
}
|
|
})
|
|
]
|
|
}
|