konstaui.com
konstaui.com copied to clipboard
Issue following installation guide
I am following the installation guide at https://konstaui.com/svelte/installation
After completing the suggested installation guide for installing Tailwind https://tailwindcss.com/docs/guides/sveltekit (Maybe this is what I'm doing wrong)
My tailwind.config.js file looks like this:
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {}
},
plugins: []
};
So when it comes to the step on the guide that says to modify it to look like this:
const konstaConfig = require('konsta/config');
// wrap your config with konstaConfig
module.exports = konstaConfig({
// rest of your usual Tailwind CSS config here
...
});
I'm not sure at that point on what I should do. Should I have followed this guide https://tailwindcss.com/docs/installation and not the SvelteKit one?
Or maybe the documentation should include also this code?
import konstaConfig from "konsta/config";
/** @type {import('tailwindcss').Config} */
export default konstaConfig({
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {}
},
plugins: []
});