Is there an example somewhere how to add tailwind to framework7?
Ok, this seems to work for me.
-
npm install tailwindcss
-
./postcss.config.js
plugins: {
'postcss-preset-env': {},
tailwindcss: {},
autoprefixer: {},
},
};
- ./tailwind.config.js
module.exports = {
purge: {
content: ['./index.html', './src/**/*.{svelte,js,ts}'],
},
plugins: [],
}
- ./src/css/app.less
/* Your app custom styles here */
@tailwind base;
@tailwind components;
@tailwind utilities;
1 Like