Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue following installation guide #39

Open
MrAmericanMike opened this issue Apr 11, 2024 · 0 comments
Open

Issue following installation guide #39

MrAmericanMike opened this issue Apr 11, 2024 · 0 comments

Comments

@MrAmericanMike
Copy link

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: []
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant