| Giorgi Lekveishvili | c77ec42 | 2023-05-30 13:21:15 +0400 | [diff] [blame] | 1 | /** @type {import('tailwindcss').Config} */ |
| 2 | module.exports = { |
| 3 | // 1. Apply the dark mode class setting: |
| 4 | darkMode: 'class', |
| 5 | content: [ |
| 6 | './src/**/*.{html,js,svelte,ts}', |
| 7 | // 2. Append the path for the Skeleton NPM package and files: |
| 8 | require('path').join(require.resolve( |
| 9 | '@skeletonlabs/skeleton'), |
| 10 | '../**/*.{html,js,svelte,ts}' |
| 11 | ) |
| 12 | ], |
| 13 | theme: { |
| 14 | extend: {}, |
| 15 | }, |
| 16 | plugins: [ |
| 17 | // 3. Append the Skeleton plugin to the end of this list |
| 18 | ...require('@skeletonlabs/skeleton/tailwind/skeleton.cjs')() |
| 19 | ] |
| 20 | } |