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

Missing styles after installation configuration #25

Open
st-clair-clarke opened this issue Nov 18, 2024 · 3 comments
Open

Missing styles after installation configuration #25

st-clair-clarke opened this issue Nov 18, 2024 · 3 comments

Comments

@st-clair-clarke
Copy link

I perform a clean install of sveltkit with typescript and tailwind support as shown in th screenshot below:

image

The application runs as expected.

As per your installation instruction the following was done with success:

image

As per your instruction I also configure the tailwind.config.ts file as shown below:

image

I use the following in my index.svelte file:

import { Button } from 'kampsy-ui';

<div class="w-full flex flex-wrap gap-4 justify-between">
	<Button type="secondary">upload</Button>
	<Button type="tertiary">upload</Button>
	<Button type="error">upload</Button>
	<Button type="warning">upload</Button>
</div>

The displayed page DOES NOT have any styles for the buttons -

image

How can I correct the missing styles?

@kampsy
Copy link
Owner

kampsy commented Nov 19, 2024

Hello, could you please update the content section in your TailwindCSS configuration to include kampsyUi.content

Screenshot_20241119_131936_Chrome.jpg

@st-clair-clarke
Copy link
Author

There is already a content property in the default that uses an array of string. It will not add your content as suggested.

@kampsy
Copy link
Owner

kampsy commented Nov 20, 2024

Add this to your content array './node_modules/kampsy-ui/dist/**/*.{html,js,svelte,ts}' is should look look like this

content: [ './src/**/*.{html,js,svelte,ts}', './node_modules/kampsy-ui/dist/**/*.{html,js,svelte,ts}' ],

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

2 participants