milesmcc / a17t

An atomic design toolkit for pragmatists
https://a17t.miles.land
MIT License
491 stars 17 forks source link

How to integrate with Tailwind + svelte? #5

Closed wighawag closed 4 years ago

wighawag commented 4 years ago

Hey a17t looks great, would like to use in my svelte-based project

I looked at #2 but when I am using svelte, I cannot seem to import css file. I am using the following template : https://github.com/sarioglu/svelte-tailwindcss-template (https://dev.to/sarioglu/using-svelte-with-tailwindcss-a-better-approach-47ph)

and I cannot see how I can add a17t to the process. Any idea?

milesmcc commented 4 years ago

a17t is pretty framework agnostic, so there shouldn’t be anything too special about using it with Svelte.

Are you able to do @import “a17t”; in the Tailwindcss.svelte file?

wighawag commented 4 years ago

I tried that andd added postcss-import but could not get it to work. nothing get added in the bundled css.

milesmcc commented 4 years ago

Hmm, I’m not exactly sure then. I don’t know much about how Svelte handles css. Do the folks at tailwindcss-svelte have any idea? They might be more knowledgeable about Svelte’s internals.